.coupon-discount-button {
    color: #fff;
    border: none;
    border-radius: 0px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    overflow: hidden;
    position: relative;
    font-size: 20px;
    line-height: 30px;
    width: 100%;
    padding: 16px 20px;
    max-width: 470px;
    transition: 0.5s;
}

.coupon-discount-button:hover {
    background: #000;
}

/* .coupon-discount-button::after {
    content: '';
    transition-duration: 0.8s !important;
    position: absolute;
    width: 200%;
    height: 200%;
    content: "";
    top: -205%;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50%;
    z-index: -1;
    background-color: #000;
}

.coupon-discount-button:hover::after {
    top: -40%;
} */

.coupon-discount-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.coupon-discount-loading {
    color: #666;
    font-style: italic;
}

.coupon-form:has(input:disabled) {
    background-color: #f0f0f0;
}

.coupon-form button#apply-coupon-button:disabled:hover {
   color: #fbaf6b96;
    background: #f0f0f0;
}

.coupon-form button#apply-coupon-button:disabled {
    background: #f0f0f0;
     color: #fbaf6b96;
}

#coupon-code-input:disabled {
    background-color: #f0f0f0;
}


.coupon-form {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    max-width: 470px;
    border: 1px solid #ddd;
    line-height: 0;
    transition: 0.5s;
    justify-content: space-between;
    padding-right: 10px;
    margin-bottom: 10px;
    position: relative;
}

.coupon-form input#coupon-code-input {
    width: 73%;
    padding: 10px;
    border: 1px solid transparent;
    border-radius: 0;
    transition: 0.5s;
    font-size: 20px;
    line-height: 30px;
}

.coupon-form input#coupon-code-input:focus {
    /* border: 1px solid #fbaf6b; */
    outline: none;
}

.coupon-form button#apply-coupon-button {
    width: auto;
    border-radius: 0;
    background: transparent;
    border: none;
    transition: 0.5s;
    color: #fbaf6b;
    font-weight: 600;
    padding: 0;
}

.coupon-form:has(input:focus) {
    border: 1px solid #fbaf6b;
}

.coupon-form button#apply-coupon-button:focus,
.coupon-form button#apply-coupon-button:hover {
    background: transparent;
    border-radius: 0;
    outline: none;
    color: #000;
}

span#coupon-form-message {
    margin-top: 0;
    position: absolute;
    bottom: -13px;
    width: 100%;
    padding-top: 0;
}





@media only screen and (max-width: 1024px) {
    .coupon-discount-wrapper {
        width: 100%;
        max-width: 470px;
        font-size: 18px;
        line-height: 28px;
    }

    .coupon-form input#coupon-code-input {
        font-size: 18px;
        line-height: 28px;
    }

    
}

@media only screen and (max-width: 767px) {
    .coupon-discount-wrapper {
         font-size: 16px;
        line-height: 26px;
    }

     .coupon-form input#coupon-code-input {
        font-size: 16px;
        line-height: 26px;
    }

    .coupon-form button#apply-coupon-button {
        font-size: 16px;
        line-height: 26px;
    }

    .coupon-form {
        flex-wrap: nowrap;
    }
}

@media only screen and (max-width: 576px) {
    .coupon-discount-wrapper {
        width: 100%;
        max-width: 100%;
    }
    .coupon-discount-button {
        max-width: 100%;
    }

    .coupon-form {
        max-width: 100%;
        padding-right: 12px;
    }

    .coupon-form button#apply-coupon-button {
        font-size: 14px;
    }
}

@media only screen and (max-width: 479px) {
    /* .coupon-form {
        flex-direction: column;
    }
    .coupon-form input#coupon-code-input {
        width: 100%;
    }
    .coupon-form button#apply-coupon-button {
        width: 100%;
    } */
}