/* Keep both custom summaries aligned with WooCommerce's calculated totals. */
body:is(.woocommerce-cart, .woocommerce-checkout) .hym-cart-summary.cart_totals {
    float: none;
    width: 100%;
}

body:is(.woocommerce-cart, .woocommerce-checkout) .hym-cart-summary__totals {
    display: flex;
    flex-direction: column;
    gap: 17px;
}

body:is(.woocommerce-cart, .woocommerce-checkout) .hym-cart-summary__total-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    font-size: 13px;
    line-height: 1.5;
}

body:is(.woocommerce-cart, .woocommerce-checkout) .hym-cart-summary__total-row strong,
body:is(.woocommerce-cart, .woocommerce-checkout) .hym-cart-summary__total-amount {
    color: var(--gcid-heading-color, #1c1209);
    font-family: var(--et_global_heading_font, 'EB Garamond'), Georgia, serif;
    font-size: 16px;
    font-weight: 400;
    white-space: nowrap;
}

body:is(.woocommerce-cart, .woocommerce-checkout) .hym-cart-summary__total-row--order-total {
    padding-top: 24px;
    margin-top: 7px;
    border-top: 1px solid rgba(28, 18, 9, 0.14);
}

.hym-cart-summary__coupon-code {
    overflow-wrap: anywhere;
}

.hym-cart-summary__coupon-note {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.5;
}

.hym-coupons {
    margin: 24px 0;
    color: var(--gcid-body-color, #6b5e4a);
    font-size: 13px;
    line-height: 1.5;
}

.hym-coupons summary {
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hym-coupons__fields {
    margin-top: 12px;
}

.hym-coupons__fields label {
    display: block;
    margin-bottom: 6px;
}

.hym-coupons__controls {
    display: flex;
    gap: 8px;
}

body:is(.woocommerce-cart, .woocommerce-checkout) input.hym-coupons__code {
    flex: 1;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid rgba(28, 18, 9, 0.3);
    border-radius: 0;
    background: #fff;
    color: var(--gcid-heading-color, #1c1209);
    font: inherit;
    font-size: 16px;
}

.hym-coupons__apply,
.hym-coupon-remove {
    border: 1px solid currentColor;
    border-radius: 0;
    background: transparent;
    color: var(--gcid-heading-color, #1c1209);
    font: inherit;
    cursor: pointer;
}

.hym-coupons__apply {
    min-height: 44px;
    padding: 10px 16px;
}

.hym-coupon-remove {
    min-height: 32px;
    margin-left: 8px;
    padding: 2px 6px;
    border: 0;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hym-coupons__notice:not(:empty) {
    margin-top: 12px;
}

.hym-coupons__notice--error {
    color: #9b1c1c;
}

.hym-coupons button:disabled {
    opacity: 0.55;
    cursor: wait;
}

.hym-coupons :focus-visible,
.hym-coupon-remove:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}
