/* Compact gift voucher form shared by cart and checkout. */
body.checkout-cart-index .column.main .cart-discount1,
body.checkout-index-index .column.main .cart-discount1 {
    box-sizing: border-box;
    float: none;
    clear: both;
    width: 100%;
    max-width: 330px;
    padding: 16px;
}
body .cart-discount1 #block-giftcard > .title > strong,
body .cart-discount1 #block-giftcard > .title > .label {
    display: block;
}
body .cart-discount1 #block-giftcard > .title > .label { margin: 6px 0 16px; }
body .cart-discount1 #block-giftcard > .content {
    box-sizing: border-box;
    width: 100%;
    margin: 0;
}
body .cart-discount1 #activate-gift-voucher .fieldset.giftcard {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    margin: 0;
}
body .cart-discount1 #activate-gift-voucher .fieldset.giftcard::before,
body .cart-discount1 #activate-gift-voucher .fieldset.giftcard::after { display: none; }
body .cart-discount1 #activate-gift-voucher .field {
    flex: 0 1 calc(16ch + 24px);
    width: auto;
    min-width: 0;
    margin: 0;
}
body .cart-discount1 #activate-gift-voucher .control { width: 100%; }
body .cart-discount1 #activate-gift-voucher input.input-text {
    box-sizing: border-box;
    width: calc(16ch + 24px);
    max-width: 100%;
    padding: 10px 12px;
    height: 46px;
    font-size: 16px;
    background: #fff;
}
body .cart-discount1 #activate-gift-voucher .actions-toolbar,
body .cart-discount1 #activate-gift-voucher .actions-toolbar > .primary {
    flex: 0 0 auto;
    float: none;
    width: auto;
    min-width: 0;
    margin: 0;
}
body .cart-discount1 #activate-gift-voucher button.action.GiftVoucher {
    box-sizing: border-box;
    width: auto;
    min-width: 0;
    height: 46px;
    padding: 10px 14px;
    margin: 0;
    font-size: 16px;
    line-height: 24px;
    text-transform: none;
    white-space: nowrap;
}
body .cart-discount1 #activate-gift-voucher button.action.GiftVoucher span { font-size: inherit; }

/* Compact coupon controls in both cart and checkout. */
body.checkout-cart-index #discount-coupon-form .fieldset.coupon,
body.checkout-index-index .checkout-payment-method .payment-option-content form.form.form-discount {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    max-width: 550px;
}
body.checkout-cart-index #discount-coupon-form .fieldset.coupon::before,
body.checkout-cart-index #discount-coupon-form .fieldset.coupon::after,
body.checkout-index-index form.form.form-discount::before,
body.checkout-index-index form.form.form-discount::after { display: none; }
body.checkout-cart-index #discount-coupon-form .fieldset.coupon > .field,
body.checkout-index-index .checkout-payment-method .payment-option-content form.form.form-discount > .payment-option-inner {
    flex: 0 1 calc(18ch + 24px);
    width: auto;
    min-width: 0;
    margin: 0;
}
body.checkout-cart-index #discount-coupon-form .fieldset.coupon > .field > .label {
    position: absolute;
    width: 1px;
    height: 1px;
    clip: rect(0,0,0,0);
    overflow: hidden;
}
body.checkout-cart-index #discount-coupon-form .control,
body.checkout-index-index .checkout-payment-method form.form.form-discount .control { width: 100%; }
body.checkout-cart-index #discount-coupon-form input.input-text,
body.checkout-index-index .checkout-payment-method .payment-option-content form.form.form-discount input.input-text {
    box-sizing: border-box;
    width: calc(18ch + 24px);
    max-width: 100%;
    padding: 10px 12px;
    height: 46px;
    font-size: 16px;
    background: #fff;
}
body.checkout-cart-index #discount-coupon-form .actions-toolbar,
body.checkout-cart-index #discount-coupon-form .actions-toolbar > .primary,
body.checkout-index-index .checkout-payment-method .payment-option-content form.form.form-discount > .actions-toolbar,
body.checkout-index-index .checkout-payment-method .payment-option-content form.form.form-discount > .actions-toolbar > .primary {
    flex: 0 0 auto;
    float: none;
    width: auto;
    min-width: 0;
    margin: 0;
}
body.checkout-cart-index #discount-coupon-form .actions-toolbar button.action,
body.checkout-index-index .checkout-payment-method .payment-option-content form.form.form-discount .actions-toolbar .primary button.action {
    box-sizing: border-box;
    width: auto;
    min-width: 0;
    height: 46px;
    margin: 0;
    padding: 10px 14px;
    font-size: 16px;
    line-height: 24px;
    text-transform: none;
    white-space: nowrap;
}
body.checkout-cart-index #discount-coupon-form button.action span,
body.checkout-index-index form.form.form-discount button.action span { font-size: inherit; }

/* Equal gift and coupon cards above cart totals. */
.checkout-cart-index .theraline-promo-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 330px));
    align-items: stretch;
    gap: 16px;
    clear: both;
    margin: 22px 0 20px;
}
body.checkout-cart-index .column.main .theraline-promo-cards > .cart-discount1,
.checkout-cart-index .cart-container .theraline-promo-cards > #block-discount {
    box-sizing: border-box;
    width: 100%;
    max-width: 330px;
    min-width: 0;
    padding: 16px;
    margin: 0;
    border: 1px solid #80808082;
    border-radius: 6px;
    background: #fff;
}
.checkout-cart-index .cart-container .theraline-promo-cards #block-discount > .title {
    display: block;
    padding: 0;
    border: 0;
    cursor: default;
}
.checkout-cart-index .theraline-promo-cards #block-discount > .title::after { display: none; }
.checkout-cart-index .theraline-promo-cards #block-discount-heading,
.checkout-cart-index .theraline-promo-cards #block-giftcard .title > strong {
    display: block;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
    color: #000;
}
.checkout-cart-index .theraline-promo-cards .promo-description,
.checkout-cart-index .theraline-promo-cards #block-giftcard .title > .label {
    display: block;
    min-height: 48px;
    margin: 6px 0 16px;
    font-size: 16px;
    line-height: 24px;
}
.checkout-cart-index .cart-container .theraline-promo-cards #block-discount > .content {
    box-sizing: border-box;
    padding: 10px;
    margin: 0;
    background: #d4c9bf;
    border-radius: 5px;
}
.checkout-cart-index .theraline-promo-cards #discount-coupon-form .fieldset.coupon { margin: 0; }
@media (max-width: 767px) {
    .checkout-cart-index .theraline-promo-cards { grid-template-columns: minmax(0, 1fr); }
    body.checkout-cart-index .column.main .theraline-promo-cards > .cart-discount1,
    .checkout-cart-index .cart-container .theraline-promo-cards > #block-discount { max-width: none; }
}

/* Cart-summary accordion styles must not affect these always-open cards. */
.checkout-cart-index .cart-summary .theraline-promo-cards .block > .title {
    display: block;
    border: 0;
    padding: 0;
    margin: 0;
    cursor: default;
    overflow: visible;
}
.checkout-cart-index .cart-summary .theraline-promo-cards .block > .title::after { display: none; }
.checkout-cart-index .cart-summary .theraline-promo-cards .block > .content {
    display: block !important;
    margin: 0;
    padding: 10px;
}
.checkout-cart-index .cart-summary .theraline-promo-cards .block { margin: 0; }
.checkout-cart-index .cart-summary .theraline-promo-cards .block > .title strong {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
}
.checkout-cart-index .cart-summary .theraline-promo-cards .promo-description,
.checkout-cart-index .cart-summary .theraline-promo-cards #block-giftcard .title > .label {
    font-weight: 400;
    min-height: 48px;
    padding: 0;
    margin: 6px 0 12px;
}
.checkout-cart-index .cart-summary .theraline-promo-cards form,
.checkout-cart-index .cart-summary .theraline-promo-cards .fieldset,
.checkout-cart-index .cart-summary .theraline-promo-cards .actions-toolbar,
.checkout-cart-index .cart-summary .theraline-promo-cards .actions-toolbar > .primary {
    margin-top: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}

.checkout-cart-index .cart-summary .theraline-promo-cards #discount-coupon-form,
.checkout-cart-index .cart-summary .theraline-promo-cards #activate-gift-voucher { margin: 0; }
.checkout-cart-index .cart-summary .theraline-promo-cards .actions-toolbar button.action {
    height: 46px;
    min-height: 0;
    margin: 0;
}

/* Tight, consistent card spacing and controls in the full cart summary. */
body.checkout-cart-index .column.main .theraline-promo-cards > .cart-discount1,
.checkout-cart-index .cart-container .theraline-promo-cards > #block-discount { padding: 10px 16px; }
.checkout-cart-index .cart-summary .theraline-promo-cards .block > .title strong {
    font-size: 19.2px;
    margin: 0;
}
.checkout-cart-index .cart-summary .theraline-promo-cards .promo-description,
.checkout-cart-index .cart-summary .theraline-promo-cards #block-giftcard .title > .label {
    min-height: 0;
    margin: 6px 0 10px;
}
.checkout-cart-index .cart-container .theraline-promo-cards #discount-coupon-form,
.checkout-cart-index .cart-container .theraline-promo-cards #activate-gift-voucher,
.checkout-cart-index .cart-container .theraline-promo-cards .fieldset,
.checkout-cart-index .cart-container .theraline-promo-cards .actions-toolbar,
.checkout-cart-index .cart-container .theraline-promo-cards .actions-toolbar > .primary {
    margin: 0 !important;
    padding: 0;
}
.checkout-cart-index .cart-container .theraline-promo-cards input.input-text { display: block; }
.checkout-cart-index .cart-container .theraline-promo-cards .actions-toolbar button.action {
    height: 46px !important;
    min-height: 0;
    margin: 0;
    padding: 10px 14px;
    background: #000 !important;
    color: #fff !important;
    border: 1px solid #000;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    text-transform: none;
}

.checkout-cart-index .cart-summary .theraline-promo-cards #block-discount-heading,
.checkout-cart-index .cart-summary .theraline-promo-cards #gift-voucher-heading { font-size: 19.2px; }

/* Reserve identical text and control rows in both cards. */
.checkout-cart-index .cart-summary .theraline-promo-cards .promo-description,
.checkout-cart-index .cart-summary .theraline-promo-cards #block-giftcard .title > .label {
    min-height: 48px;
    line-height: 24px;
}
.checkout-cart-index .cart-summary .theraline-promo-cards #activate-gift-voucher .fieldset,
.checkout-cart-index .cart-summary .theraline-promo-cards #discount-coupon-form .fieldset {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 104px;
    gap: 10px;
}
.checkout-cart-index .cart-summary .theraline-promo-cards #activate-gift-voucher .field,
.checkout-cart-index .cart-summary .theraline-promo-cards #discount-coupon-form .field { width: 100%; }
.checkout-cart-index .cart-summary .theraline-promo-cards input.input-text {
    height: 46px !important;
    width: 100% !important;
    margin: 0;
    box-sizing: border-box;
}
.checkout-cart-index .cart-summary .theraline-promo-cards .actions-toolbar,
.checkout-cart-index .cart-summary .theraline-promo-cards .actions-toolbar > .primary {
    display: flex;
    align-items: flex-start;
    line-height: 0;
}
.checkout-cart-index .cart-summary .theraline-promo-cards .actions-toolbar button.action {
    width: 104px !important;
    height: 46px !important;
    box-sizing: border-box;
}

.checkout-cart-index .cart-summary .theraline-promo-cards #block-giftcard .title > strong#gift-voucher-heading { font-size: 19.2px; }
.checkout-cart-index .cart-summary .theraline-promo-cards #discount-coupon-form,
.checkout-cart-index .cart-summary .theraline-promo-cards #activate-gift-voucher,
.checkout-cart-index .cart-summary .theraline-promo-cards #discount-coupon-form .fieldset.coupon,
.checkout-cart-index .cart-summary .theraline-promo-cards #activate-gift-voucher .fieldset.giftcard {
    width: 100%; max-width: none;
}

.checkout-cart-index .cart-summary .theraline-promo-cards #block-giftcard > .content,
.checkout-cart-index .cart-summary .theraline-promo-cards #block-discount > .content {
    box-sizing: border-box;
    min-height: 72px;
}

/* Remove the decorative border from coupon inputs. */
body.checkout-cart-index #discount-coupon-form input#coupon_code,
body.checkout-index-index .checkout-payment-method form.form.form-discount input#discount-code {
    border: 0;
    box-shadow: none;
}
body.checkout-cart-index #discount-coupon-form input#coupon_code:focus-visible,
body.checkout-index-index .checkout-payment-method form.form.form-discount input#discount-code:focus-visible {
    outline: 2px solid #666;
    outline-offset: 2px;
}
