.checkout .cart-block.cart-coupon-block {
    display: block;
}

.checkout .cart-block.cart-block-footer.cart-coupon-block > div {
    display: block;
    float: none;
    width: 100%;
    text-align: left;
}

.checkout .cart-block.cart-block-footer.cart-coupon-block .form-coupon {
    position: static;
    display: block;
    width: 100%;
    margin: 12px 0 0;
}

.checkout .coupon-wrap .coupon-entry-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 12px;
    margin: 0;
}

.checkout .coupon-wrap .form-input {
    min-width: 0;
}

.checkout .coupon-wrap .coupon-entry-row .form-control {
    width: 100%;
    height: 44px;
    margin: 0;
    text-align: left;
}

.checkout .coupon-wrap .btn-apply-coupon {
    min-height: 44px;
    height: auto;
    max-width: 100%;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 22px;
    white-space: normal;
}

.checkout .coupon-feedback {
    display: block;
    clear: both;
    width: 100%;
    height: auto;
    margin: 12px 0;
    padding: 12px 14px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
}

.checkout .coupon-feedback-error {
    color: #9f251b;
    background-color: #fff2f0;
    border: 1px solid #edb9b3;
    border-left-width: 3px;
}

@media (max-width: 480px) {
    .checkout .coupon-wrap .coupon-entry-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .checkout .coupon-wrap .btn-apply-coupon {
        width: 100%;
    }
}
