/* Right-side full-height panel modal */
.auction-purchase-modal.modal.fade .modal-dialog {
    transform: translateX(100%);
    transition: transform 0.4s ease-in-out;
}

.auction-purchase-modal.modal.show .modal-dialog {
    transform: translateX(0);
}

.auction-purchase-modal__dialog {
    position: fixed;
    top: 0;
    right: 0;
    margin: 0;
    width: 468px;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
}

/* Background scroll lock */
html.modal-open,
body.modal-open {
    overflow: hidden !important;
    height: 100% !important;
    width: 100% !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
}

.auction-purchase-modal__dialog .modal-content {
    height: 100%;
    border-radius: 0;
    border: none;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.auction-purchase-modal__dialog .modal-body {
    flex: 1 1 auto;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
}

.auction-purchase-modal__step {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    margin-top: 8px;
}

.auction-purchase-modal__footer {
    padding: 0;
    flex-shrink: 0;
}

.auction-purchase-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0 10px 0;
}

.auction-purchase-modal__title {
    color: #000;
    font-family: Montserrat, sans-serif;
    font-size: 24px;
    font-style: normal;
    font-weight: 600;
    line-height: 100%;
    margin: 0;
}

.auction-purchase-modal__close {
    cursor: pointer;
}

.auction-purchase-modal__back {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
}

.auction-purchase-modal__back span {
    color: #868686;
    font-family: Montserrat, sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: 100%;
}

.auction-purchase-modal__image img {
    height: 240px !important;
    object-fit: cover;
    border-radius: 8px;
}

.auction-purchase-modal__item-name {
    color: #000;
    text-align: center;
    font-family: Montserrat, sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    margin: 8px 0;
}

.auction-purchase-modal__divider {
    border-bottom: 1px solid #E2E2E2 !important;
    width: 100% !important;
    margin: 10px 0 !important;
    display: block !important;
    height: 1px !important;
    min-height: 1px !important;
    flex-shrink: 0 !important;
}

.auction-purchase-modal__divider.bold {
    border-bottom: 1px solid #000 !important;
}

.auction-purchase-modal__prices {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.auction-purchase-modal__price-btn {
    border: 2px solid #000;
    background: #FFF;
    display: flex;
    width: 100%;
    max-width: 320px;
    height: 44px;
    padding: 4px 20px;
    justify-content: center;
    align-items: center;
    cursor: pointer;

    color: #000;
    text-align: center;
    font-family: Montserrat, sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    transition: all 0.2s ease;
    border-radius: 8px;
}

.auction-purchase-modal__price-btn.active {
    background: #000;
    color: #fff;
}

.auction-purchase-modal__remaining {
    text-align: center;
    font-family: Montserrat, sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    margin-top: 10px;
    width: 100%;
    color: #999;
}

.auction-purchase-modal__quantity-wrapper {
    display: flex;
    justify-content: center;
    margin: 25px 0;
}

.auction-purchase-modal__quantity {
    display: flex;
    width: 160px;
    height: 56px;
    padding: 6px;
    justify-content: space-between;
    align-items: center;
    border-radius: 40px;
    background: #F2F2F2;
}

.auction-purchase-modal__qty-btn {
    display: flex;
    width: 44px;
    height: 44px;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    transition: opacity 0.2s;
}

.auction-purchase-modal__qty-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.auction-purchase-modal__qty-btn--decrease {
    background: #999;
}

.auction-purchase-modal__qty-btn--increase {
    background: var(--primary-color);
}

.auction-purchase-modal__qty-btn ev-icon-minus,
.auction-purchase-modal__qty-btn ev-icon-plus {
    color: #fff !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auction-purchase-modal__qty-btn svg {
    fill: currentColor;
    width: 20px;
    height: 20px;
}

.auction-purchase-modal__qty-value {
    color: #000;
    font-family: Montserrat, sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    min-width: 30px;
    text-align: center;
}

.auction-purchase-modal__total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    margin-top: auto;
}

.auction-purchase-modal__total-value {
    color: #000;
    font-family: Montserrat, sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
}

.auction-purchase-modal__total-value span {
    font-weight: 400;
}

.auction-purchase-modal__total-amount {
    color: #000;
    font-family: Montserrat, sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
}

.auction-purchase-modal__continue-btn {
    background: var(--primary-color) !important;
    color: #fff !important;
    border-color: var(--primary-color);
    border-radius: 8px;
    font-family: Montserrat, sans-serif;
    font-weight: 600;
    letter-spacing: 1.2px;
    padding: 12px;
    text-transform: uppercase;
    /*margin: 0 20px 20px 20px;*/
    /*width: calc(100% - 40px);*/
}

.auction-purchase-modal__back-btn {
    display: flex;
    height: 52px;
    padding: 12px 31px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex: 1 0 0;
    border-radius: 8px;
    background: #E5E5E5;

    color: #000;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 100%; /* 18px */
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

/* Step 2: Checkout Styling */
.modal-checkout__summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.modal-checkout__summary-title {
    color: #000;
    font-family: Montserrat, sans-serif;
    font-size: 20px;
    font-weight: 500;
    line-height: normal;
}

.modal-checkout__item-count {
    color: #999;
    font-family: Montserrat, sans-serif;
    font-size: 14px;
    font-weight: 500;
}

.modal-checkout__item-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 0;
}

.modal-checkout__item-thumb {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
}

.modal-checkout__item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.modal-checkout__item-info {
    flex: 1;
}

.modal-checkout__item-name {
    color: #000;
    font-family: Montserrat, sans-serif;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 2px;
}

.modal-checkout__item-type {
    color: #999;
    font-family: Montserrat, sans-serif;
    font-size: 13px;
    font-weight: 400;
}

.modal-checkout__item-price {
    color: #999;
    font-family: Montserrat, sans-serif;
    font-size: 15px;
    font-weight: 400;
    text-align: right;
    min-width: 80px;
}

.modal-checkout__fee-section {
    padding: 15px 0;
}

.modal-checkout__checkbox-label {
    color: #000 !important;
    font-family: Montserrat, sans-serif !important;
    font-size: 15px !important;
    font-weight: 500 !important;
}

.modal-checkout__calc-lines {
    padding: 15px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-checkout__calc-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-checkout__calc-label {
    color: #999;
    font-family: Montserrat, sans-serif;
    font-size: 15px;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-checkout__calc-value {
    color: #999;
    font-family: Montserrat, sans-serif;
    font-size: 15px;
    font-weight: 400;
}

.modal-checkout__calc-line--total {
    justify-content: space-between;
    gap: 30px;
    margin-top: 15px;
    padding-top: 0;
    border-top: none;
}

.modal-checkout__calc-line--total .modal-checkout__calc-label {
    color: #000;
    font-size: 20px;
    font-weight: 700;
}

.modal-checkout__calc-line--total .modal-checkout__calc-value {
    color: #000;
    font-size: 20px;
    font-weight: 700;
}

/* Step 3: Payment Summary Styling */
.modal-payment__subtotal-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.modal-payment__subtotal-label {
    color: #000;
    font-family: Montserrat, sans-serif;
    font-size: 20px;
    font-weight: 600;
}

.modal-payment__subtotal-value {
    color: #000;
    font-family: Montserrat, sans-serif;
    font-size: 20px;
    font-weight: 600;
}

.modal-checkout__policy-section {
    padding: 20px 0;
}

.auction-purchase-modal-checkout__actions {
    margin-top: auto;
    display: flex;
    gap: 15px;
}

.checkout-modal__form-group {
    margin-bottom: 20px !important;
}

.checkout-modal__form-control,
.form-group.checkout-modal__form-group input.form-control {
    height: 48px !important;
    background-color: #F8F9FB !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 12px 16px !important;
    font-family: Montserrat, sans-serif !important;
    font-size: 14px !important;
    color: #333 !important;
    box-shadow: none !important;
    display: block;
    width: 100%;
}

.checkout-modal__form-control::placeholder,
.form-group.checkout-modal__form-group input.form-control::placeholder {
    color: #A0AEC0 !important;
    font-weight: 400;
}

.checkout-modal__form-group .control-label {
    color: #1A202C !important;
    font-family: Montserrat, sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    margin-bottom: 8px !important;
    text-transform: none !important;
    display: inline-block;
}

.checkout-modal__payment-title {
    color: #000;
    font-family: Montserrat, sans-serif;
    font-style: normal;
    margin-top: 10px;
    padding-bottom: 4px;
    font-size: 18px;
    font-weight: 500;
    line-height: 100%;
}

/* Summary rows for payment page */
.modal-checkout__summary {
    padding-top: 10px;
}

/* intl-tel-input Bootstrap 3 compatibility */
.iti {
    display: block;
    width: 100%;
}

.iti input.form-control.checkout-modal__form-control {
    padding-left: 52px !important;
}

.iti--show-selected-dial-code input.form-control.checkout-modal__form-control {
    padding-left: 90px !important;
}

.iti__flag-container {
    z-index: 10;
}

.iti__dropdown-content {
    z-index: 1060;
}

.iti input.text-danger {
    border-color: red !important;
}

.iti input.text-danger {
    border-color: red !important;
}

/* Tooltip Popup Styling (matching New Checkout UI) */
.tooltip {
    opacity: 1 !important;
}

.tooltip-inner {
    background-color: #ffffff !important;
    color: #111 !important;
    padding: 14px 18px !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2) !important;
    font-family: Montserrat, sans-serif !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    text-align: center !important;
    opacity: 1 !important;
    max-width: 280px !important;
    font-weight: 500 !important;
    text-transform: capitalize !important;
}

/* Tooltip Arrow Styling */
.tooltip.top .tooltip-arrow {
    border-top-color: #ffffff !important;
    border-width: 8px 8px 0 !important;
    bottom: -3px !important;
}

.tooltip.bottom .tooltip-arrow {
    border-bottom-color: #ffffff !important;
    border-width: 0 8px 8px !important;
    top: -3px !important;
}

.tooltip.left .tooltip-arrow {
    border-left-color: #ffffff !important;
    border-width: 8px 0 8px 8px !important;
    right: -3px !important;
}

.tooltip.right .tooltip-arrow {
    border-right-color: #ffffff !important;
    border-width: 8px 8px 8px 0 !important;
    left: -3px !important;
}

/* Terms and Conditions Checkbox */
.auction-checkout__checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    justify-content: flex-start;
    margin-top: 15px;
    padding: 0 4px;
}

.auction-checkout__checkbox input {
    display: none !important;
}

.auction-checkout__checkbox-mark {
    width: 20px;
    height: 20px;
    border: 2px solid #000000;
    border-radius: 4px;
    position: relative;
    flex-shrink: 0;
    margin-top: 1px;
    transition: all 0.2s ease;
}

.auction-checkout__checkbox-mark::after {
    content: "";
    position: absolute;
    display: none;
    left: 5px;
    top: 1px;
    width: 6px;
    height: 11px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.auction-checkout__checkbox input:checked ~ .auction-checkout__checkbox-mark {
    background-color: #000000;
}

.auction-checkout__checkbox input:checked ~ .auction-checkout__checkbox-mark::after {
    display: block;
}

.auction-checkout__checkbox-text {
    color: #000;
    font-family: Montserrat, sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 1.4;
}

.auction-checkout__checkbox-text a {
    color: #000;
    text-decoration: underline;
    font-weight: 700;
}

.auction-checkout__checkbox--center {
    align-items: center !important;
}

/* Pure-CSS info tooltip — no Bootstrap JS positioning */
.ev-info-tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: default;
}

.ev-info-tooltip__bubble {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    color: #111111;
    padding: 10px 14px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
    width: max-content;
    max-width: 220px;
    font-family: Montserrat, sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    text-align: center;
    white-space: normal;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
    z-index: 1070;
}

/* Arrow pointing down to the trigger */
.ev-info-tooltip__bubble::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 7px solid transparent;
    border-top-color: #ffffff;
}

.ev-info-tooltip:hover .ev-info-tooltip__bubble {
    opacity: 1;
}
