.cart__coupon-wrapper .coupon__input {
    margin-bottom: 0px;
}

.cart__coupon-wrapper .coupon__button {
    flex-shrink: 0;
    margin-left: 6px;
}

.cart__coupon-wrapper .coupon-error-message {
    margin: 8px 0 0 0;
}

.cart__coupon-wrapper .cart__coupon-list {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
    display: flex;
    flex-wrap: wrap;
}

.cart__coupon-wrapper .cart__coupon-list .coupon__list-item {
    background-color: rgba(var(--color-text), 0.1);
    border-radius: 4px;
    display: flex;
    align-items: center;
    padding: 5px 8px;
    margin-right: 6px;
    margin-top: 8px;
}

.cart__coupon-wrapper .cart__coupon-list .coupon__list-item .icon-discount-tag {
    margin-right: 6px;
    width: 20px;
    height: 20px;
    opacity: 0.3;
}

.cart__coupon-wrapper .cart__coupon-list .coupon__list-item .coupon__close {
    display: flex;
    cursor: pointer;
    margin-left: 20px;
}

/* The ipad end responds to the mobile end in vertical screen */

/* @custom-media --tablet (max-width: 959px); */

/* @custom-media --gt-mobile (min-width: 751px); */

/* detectingScreen need to consider the configuration of the tablet */
cart-coupon label.discount-label {
    line-height: 1.25;
    letter-spacing: 0;
    display: block;
    margin-bottom: 8px;
    font-weight: 400;
    font-size: 16px;
    color: #1A1A1A;
}

.cart__coupon-wrapper .display-flex {
    display: flex;
    flex-wrap: wrap;
}

.cart__coupon-wrapper .coupon__input {
    width: calc(100% - 108px);
    height: 40px;
}

.cart__coupon-wrapper .coupon__button {
    margin: 0;
    width: 108px;
    height: 40px;
    box-shadow: unset;
    font-size: 14px;
    line-height: 1.25;
    color: #FFFFFF;
    font-family: 'GT America Bold';
    padding: 10px;
}

.cart__coupon-wrapper .coupon__button::after,
.cart__coupon-wrapper .coupon__button::before {
    content: none;
}

.cart__coupon-wrapper .coupon__input .field__container {
    width: 100%;
    height: 100%;
}

.cart__coupon-wrapper .coupon__input::after {
    content: none;
}

.cart__coupon-wrapper .coupon__input input.field__input {
    border: 1px solid #B5B5B5;
    height: 40px;
    min-height: 40px;
    border-right: 0;
    padding: 12px 20px;
    appearance: unset;
    opacity: 1;
    font-weight: 400;
    font-size: 12px;
    line-height: 1.25;
    color: #000000;
}

.cart__coupon-wrapper .coupon__input input.field__input::placeholder {
    opacity: 1;
    font-weight: 400;
    font-size: 12px;
    line-height: 1.25;
    color: #B5B5B5;
}

.cart__coupon-wrapper .cart__coupon-list .coupon__list-item {
    background: #FF1E00;
    border-radius: 4px;
    color: #fff;
    padding: 6px 7px 5px;
    overflow: hidden;
    margin: 4px 6px 0 0;
}

.cart__coupon-wrapper .cart__coupon-list .coupon__list-item .icon-discount-tag {
    width: 15px;
    height: 15px;
    opacity: 1;
}

.cart__coupon-wrapper .coupon__list-item .coupon__code {
    font-weight: 400;
    font-size: 12px;
    line-height: 1.25;
    color: #FFFFFF;
}

.cart__coupon-wrapper .cart__coupon-list .coupon__list-item .coupon__close {
    display: flex;
    cursor: pointer;
    margin-left: 16px;
}

.cart__coupon-wrapper .cart__coupon-list {
    margin-bottom: 8px;
}

.cart__coupon-wrapper .coupon-error-message,
.cart__coupon-wrapper .coupon-success-message {
    margin: 8px 0 0 0;
    background: #EFF6F1;
    border-radius: 4px;
    overflow: hidden;
    padding: 8px 30px 8px 13px;
    font-weight: 400;
    font-size: 12px;
    line-height: 1.25;
    color: #131313;
    text-transform: capitalize;
    position: relative;
    cursor: pointer;
}

.cart__coupon-wrapper .coupon-error-message:after,
.cart__coupon-wrapper .coupon-success-message:after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 5px;
    width: 15px;
    height: 15px;
    background-image: url('https://img.myshopline.com/image/store/1724049484189/close-svgrepo-com-(2).svg?w=64&h=64');
    background-repeat: no-repeat;
    background-size: 100%;
}

.cart__coupon-wrapper .coupon-error-message {
    background: #FFCCCB;
    display: none;
}

.cart__coupon-wrapper:has(.field--error) .coupon-error-message {
    display: block;
}

.cart__checkout-subtotal label.discount-label {
    display: none;
}

.cart__checkout-subtotal .cart__coupon-wrapper .display-flex {
    gap: clamp(3.5px, 0.37vw, 7px);
}

.cart__checkout-subtotal .cart__coupon-wrapper .coupon__button {
    width: clamp(54.5px, 5.68vw, 109px);
    height: clamp(24.5px, 2.56vw, 49px);
    font-size: clamp(8px, 0.84vw, 16px);
    line-height: 1.25;
    padding: clamp(5px, 0.53vw, 10px);
    border-radius: clamp(2px, 0.21vw, 4px);
    background-color: #000000;
}

.cart__checkout-subtotal .cart__coupon-wrapper .coupon__input {
    width: calc(100% - clamp(54.5px, 5.68vw, 109px) - clamp(3.5px, 0.37vw, 7px));
    height: clamp(24.5px, 2.56vw, 49px);
}

.cart__checkout-subtotal .cart__coupon-wrapper .coupon__input input.field__input {
    height: clamp(24.5px, 2.56vw, 49px);
    min-height: clamp(24.5px, 2.56vw, 49px);
    border: 1px solid #000;
    border-radius: clamp(1px, 0.11vw, 2px);
    overflow: hidden;
    padding: clamp(5px, 0.53vw, 10px) clamp(8.5px, 0.89vw, 17px);
    font-weight: 400;
    font-size: clamp(8px, 0.84vw, 16px);
    font-family: 'GT America-Regular';
    color: #000000;
}

.cart__checkout-subtotal .cart__coupon-wrapper .coupon__input input.field__input::placeholder {
    font-weight: 400;
    font-size: clamp(8px, 0.84vw, 16px);
    color: #9F9F9F;
}


@media(max-width:749px) {
    cart-coupon label.discount-label {
        margin-bottom: 6px;
        font-size: 12px;
    }

    .cart__coupon-wrapper .coupon__button {
        width: 90px;
        height: 32px;
        font-size: 12px;
        padding: 5px;
    }

    .cart__coupon-wrapper .coupon__input {
        width: calc(100% - 90px);
        height: 32px;
    }

    .cart__coupon-wrapper .coupon__input input.field__input {
        height: 32px;
        min-height: 32px;
        padding: 8px 10px;
        font-size: 11px;
    }

    .cart__coupon-wrapper .coupon__input input.field__input::placeholder {
        font-size: 11px;
    }

    .cart__coupon-wrapper .coupon__list-item .coupon__code {
        font-size: 10px;
    }

    .cart__coupon-wrapper .cart__coupon-list .coupon__list-item .icon-discount-tag {
        width: 13px;
        height: 13px;
    }

    .cart__coupon-wrapper .cart__coupon-list .coupon__list-item .coupon__close {
        margin-left: 13px;
    }

    .cart__coupon-wrapper .coupon-error-message,
    .cart__coupon-wrapper .coupon-success-message {
        margin: 4px 0 0 0;
        padding: 8px 20px 8px 8px;
        font-size: 12px;
    }

    .cart__coupon-wrapper .cart__coupon-list {
        margin-bottom: 6px;
    }

    .cart__checkout-subtotal .cart__coupon-wrapper .display-flex {
        gap: 7px;
    }

    .cart__checkout-subtotal .cart__coupon-wrapper .coupon__input {
        width: calc(100% - 7px - 109px);
        height: 49px;
    }

    .cart__checkout-subtotal .cart__coupon-wrapper .coupon__input input.field__input {
        height: 49px;
        min-height: 49px;
        border-radius: 2px;
        padding: 15px 17px;
        font-size: 16px;
    }

    .cart__checkout-subtotal .cart__coupon-wrapper .coupon__input input.field__input::placeholder {
        font-size: 16px;
    }

    .cart__checkout-subtotal .cart__coupon-wrapper .coupon__button {
        width: 109px;
        height: 49px;
        font-size: 16px;
        padding: 10px;
        border-radius: 2px;
    }

    .cart__checkout-subtotal ul.cart__amount-wrapper {
        margin: 20px 0;
    }

    .cart__checkout-subtotal ul.cart__amount-wrapper li {
        gap: 10px;
        justify-content: space-between;
        margin-bottom: 20px;
    }

    .cart__checkout-subtotal .totals-subtotal p.totals-subtotal-label,
    .cart__checkout-subtotal .totals-subtotal p.totals-subtotal-value,
    .cart__checkout-subtotal .totals-discount p.total-discount-label,
    .cart__checkout-subtotal .totals-discount p.total-discount-value,
    .cart__checkout-subtotal .totals h2.totals__total,
    .cart__checkout-subtotal .totals p.totals__total-value {
        font-size: 18px;
    }

    .cart__checkout-wrapper .cart__checkout {
        margin: 16px 0;
    }

    .cart__checkout-wrapper button#checkout {
        padding: 10px;
        height: 41px;
        font-size: 18px;
        line-height: 1.25;
    }

    .cart__checkout-wrapper .cart__taxes__desc {
        font-size: 16px;
        line-height: 1.563;
    }
}