﻿
.payment-section {
    margin-bottom: 10px;
}

.add-options {
    margin-top: 40px;
    margin-bottom: 40px;
}

.add-heading {
    margin-bottom: 10px;
    font-family: Montserrat, sans-serif;
    font-size: 17px;
    font-weight: 700;
}

.add-options-box {
    padding-top: 15px;
    padding-bottom: 15px;
    padding-left: 50px;
    padding-right: 50px;
    border-style: solid;
    border-width: 1px;
    border-color: #d1d1d1;
    border-radius: 5px;
    margin-bottom: 30px;
}

.coupon-area {
    display: flex;
    height: 38px;
}

.coupon-code-input {
    width: calc(100% - 130px);
    display: inline;
}

.coupon-btn {
    margin-left: auto;
    padding-top: 4px;
    padding-bottom: 4px;
}

.update-intent-loading {
    text-align: center;
}

.credit {
    margin-bottom: 40px;
}
.credit-box {
    grid-column-gap: 10px;
    grid-row-gap: 19px;
    justify-content: start;
    display: flex;
}

.credit-link {
    padding: unset;
    width: unset;
}

.credit-code-field {
    position: relative;
    flex: 1;
    min-width: 0;
}

.credit-code-field #credit-code {
    margin-bottom: 0;
}

.credit-code-field + .credit-link {
    flex: 1;
    min-width: 0;
    width: auto;
}

#credit-code[aria-invalid="true"] {
    border-color: #dc3545;
}

.credit-code-loading {
    position: absolute;
    inset: 1px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    border-radius: inherit;
    background-color: #f7f7f7;
    color: #555;
    font-size: 14px;
    pointer-events: none;
}

#checkout-code-status.is-success {
    display: inline-block;
    padding: 4px 10px;
    border: 1px solid #a7f1a8;
    background-color: #edf9eb;
    color: #166534;
    font-size: 13px;
    font-weight: 600;
    animation: checkout-code-badge-dismiss 2500ms ease-in-out forwards;
}

/* Keep the live-region text and its space after the visual confirmation hides. */
@keyframes checkout-code-badge-dismiss {
    0%, 100% { opacity: 0; }
    4%, 94% { opacity: 1; }
}

@keyframes checkout-code-badge-dismiss-reduced {
    from { opacity: 1; }
    to { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    #checkout-code-status.is-success {
        animation-name: checkout-code-badge-dismiss-reduced;
        animation-timing-function: step-end;
    }
}

.credit-code {
    width: 49%;
}

.from-payment-section {
    flex-direction: column;
}

.payment-button {
    padding: 12px 60px;
}

.payment-button.is-submitting {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: wait;
    opacity: 0.82;
}

.payment-button.is-submitting::before {
    width: 16px;
    height: 16px;
    box-sizing: border-box;
    flex: 0 0 16px;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: #fff;
    border-radius: 50%;
    content: "";
    animation: payment-button-spin 0.8s linear infinite;
}

@keyframes payment-button-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .payment-button.is-submitting::before {
        animation: none;
    }
}

.cart-item-divider {
    border-top: 1px solid #cececf;
    margin-bottom: 10px;
}

.discount-toast {
    margin-top: 15px;
}

.discount-box {
    border: #A7F1A8 2px solid;
    border-radius: 5px;
    background: #EDF9EB;
    padding: 15px;
    font-size: 14px;
}

.gift-card-type{
    font-weight: 700;
}

@media screen and (max-width: 610px) {
    .credit-code {
        width: 100%;
    }

    .credit-link {
        display: block;
    }
}
