.woocommerce-flow-page .wc-block-components-totals-coupon .wc-block-components-panel__button {
    padding-block: 1.2rem;
    font-size: max(15px, 1.5rem);
    font-weight: 500;
    line-height: 1.4;
}

.woocommerce-flow-page #wc-block-components-totals-coupon__form {
    display: flex;
    align-items: stretch;
    gap: 10px;
    margin: 12px 0 4px;
}

/* Match Tailwind's layer: its !important checkout fields outrank unlayered CSS. */
@layer components {
.woocommerce-flow-page #wc-block-components-totals-coupon__form .wc-block-components-totals-coupon__input {
    display: block !important;
    position: relative !important;
    flex: 1 1 0;
    min-width: 0;
    margin: 0 !important;
}

.woocommerce-flow-page #wc-block-components-totals-coupon__form .wc-block-components-totals-coupon__input input {
    box-sizing: border-box;
    width: 100%;
    height: 52px !important;
    min-height: 52px !important;
    margin: 0 !important;
    padding: 20px 16px 6px !important;
    border: 1px solid rgba(60, 60, 60, .3) !important;
    border-radius: 26px !important;
    background: #fff !important;
    color: #3C3C3C !important;
    font-family: inherit;
    font-size: 16px !important;
    line-height: 1.3 !important;
}

.woocommerce-flow-page #wc-block-components-totals-coupon__form .wc-block-components-totals-coupon__input label {
    position: absolute !important;
    pointer-events: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    max-width: calc(100% - 32px) !important;
    left: 16px !important;
    top: 50% !important;
    margin: 0 !important;
    color: #666 !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
    transform: translateY(-50%) !important;
    transform-origin: left top;
}

.woocommerce-flow-page #wc-block-components-totals-coupon__form .wc-block-components-totals-coupon__input.is-active label {
    top: 7px !important;
    max-width: calc(125% - 40px) !important;
    font-size: 16px !important;
    transform: scale(.8) !important;
}
}

.woocommerce-flow-page #wc-block-components-totals-coupon__form .wc-block-components-totals-coupon__button {
    flex: 0 0 auto;
    width: auto !important;
    height: 52px !important;
    min-height: 52px !important;
    margin: 0 !important;
    padding: 0 20px !important;
    border: 1px solid #3C3C3C !important;
    border-radius: 26px !important;
    background: #3C3C3C !important;
    color: #fff !important;
    font-family: inherit;
    font-size: 14px !important;
    font-weight: 500;
    line-height: 1.2 !important;
    transition: background-color .15s ease, border-color .15s ease;
}

.woocommerce-flow-page #wc-block-components-totals-coupon__form .wc-block-components-totals-coupon__button::after {
    display: none !important;
}

.woocommerce-flow-page #wc-block-components-totals-coupon__form .wc-block-components-totals-coupon__button:disabled {
    border-color: #ddd !important;
    background: #f2f2f2 !important;
    color: #767676 !important;
    opacity: 1 !important;
    cursor: not-allowed;
}

.woocommerce-flow-page #wc-block-components-totals-coupon__form .wc-block-components-totals-coupon__button:hover:not(:disabled) {
    background: #252525 !important;
}

.woocommerce-flow-page #wc-block-components-totals-coupon__form .wc-block-components-totals-coupon__input input:focus,
.woocommerce-flow-page #wc-block-components-totals-coupon__form .wc-block-components-totals-coupon__button:focus-visible {
    outline: 2px solid #DF3F55 !important;
    outline-offset: 3px;
    box-shadow: none !important;
}

.woocommerce-flow-page #wc-block-components-totals-coupon__form .wc-block-components-totals-coupon__input.has-error input {
    border-color: #DF3F55 !important;
}

.woocommerce-flow-page .wc-block-components-totals-coupon .wc-block-components-validation-error {
    margin-top: 8px;
    font-size: max(13px, 1.3rem);
    line-height: 1.5;
}

.woocommerce-flow-page .wc-block-components-totals-coupon .wc-block-components-validation-error p {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin: 0 !important;
    font-size: inherit !important;
    line-height: inherit !important;
}

.woocommerce-flow-page .wc-block-components-totals-coupon .wc-block-components-validation-error svg {
    flex: 0 0 14px;
    width: 14px;
    height: 14px;
    margin-top: 3px;
}

.woocommerce-flow-page .wc-block-components-product-price del {
    color: #767676;
    opacity: 1;
    font-size: .85em;
}

.woocommerce-checkout .woocommerce-flow-page .wc-block-components-order-summary-item__image img {
    border-radius: 0 !important;
    object-fit: contain !important;
    object-position: center;
}

@media (max-width: 360px) {
    .woocommerce-flow-page #wc-block-components-totals-coupon__form {
        flex-wrap: wrap;
    }
    .woocommerce-flow-page #wc-block-components-totals-coupon__form .wc-block-components-totals-coupon__button {
        width: 100% !important;
    }
}
