.glc-panel,
.glc-account,
.glc-connect-card,
.glc-stat-card,
.glc-account-coupon {
    box-sizing: border-box;
}

.glc-panel {
    width: 100%;
    padding: 18px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(15, 23, 42, .06);
    text-align: left;
}

.glc-panel--compact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.glc-panel--compact p {
    margin: 5px 0 0;
    color: #64748b;
}

.glc-panel__header,
.glc-panel__footer,
.glc-account__meta,
.glc-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.glc-panel__header h3,
.glc-section-heading h3,
.glc-connect-card h3,
.glc-account__hero h2,
.glc-account-coupon h4 {
    margin: 3px 0 0;
    color: #0f172a;
}

.glc-eyebrow {
    display: inline-block;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.glc-balance-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.glc-balance-pills span,
.glc-status-badge,
.glc-coupon-type {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
    font-size: 12px;
    font-weight: 700;
}

.glc-status-badge--success {
    background: #ecfdf5;
    color: #047857;
}

.glc-field-group {
    display: block;
    margin-top: 16px;
}

.glc-label {
    display: block;
    margin-bottom: 8px;
    color: #334155;
    font-weight: 700;
}

.glc-field-group small {
    display: block;
    margin-top: 6px;
    color: #64748b;
    font-size: 12px;
}

.glc-coupon-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.glc-coupon-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.glc-coupon-card:hover {
    border-color: #94a3b8;
    box-shadow: 0 6px 16px rgba(15, 23, 42, .06);
    transform: translateY(-1px);
}

.glc-coupon-card input {
    margin-top: 3px;
}

.glc-coupon-card__content {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
}

.glc-coupon-card__content strong {
    color: #0f172a;
}

.glc-coupon-card__content small {
    margin: 0;
    color: #64748b;
}

.glc-input-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.glc-input-grid input[type="number"],
.glc-connect-form input[type="text"] {
    width: 100%;
    min-height: 42px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
}

.glc-input-grid input[type="number"] {
    padding: 0 12px;
    box-sizing: border-box;
}

.glc-panel__footer {
    margin-top: 18px;
}

.glc-status {
    color: #64748b;
    font-size: 13px;
}

.glc-status.is-success {
    color: #047857;
}

.glc-status.is-error {
    color: #b91c1c;
}

.glc-alert {
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 13px;
}

.glc-alert--error {
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

.glc-alert--warning {
    border: 1px solid #fde68a;
    background: #fffbeb;
    color: #92400e;
}

.glc-account {
    --glc-border: #e2e8f0;
    --glc-muted: #64748b;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.glc-account__hero {
    padding: 24px;
    border: 1px solid var(--glc-border);
    border-radius: 18px;
    background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
}

.glc-account__hero p {
    margin: 8px 0 0;
    color: var(--glc-muted);
}

.glc-account__meta {
    justify-content: flex-start;
    color: var(--glc-muted);
    font-size: 13px;
}

.glc-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.glc-stat-card {
    padding: 18px;
    border: 1px solid var(--glc-border);
    border-radius: 16px;
    background: #fff;
}

.glc-stat-card span {
    display: block;
    margin-bottom: 8px;
    color: var(--glc-muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.glc-stat-card strong {
    color: #0f172a;
    font-size: 24px;
    line-height: 1.1;
}

.glc-stat-card__conversion {
    display: block;
    margin-top: 6px;
    color: var(--glc-muted);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
}

.glc-account-coupons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.glc-account-coupon {
    display: flex;
    min-height: 140px;
    padding: 18px;
    border: 1px solid var(--glc-border);
    border-radius: 16px;
    background: #fff;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
}

.glc-account-coupon__meta {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
    color: var(--glc-muted);
}

.glc-account-coupon__meta strong {
    color: #0f172a;
    font-size: 20px;
}

.glc-empty-state,
.glc-connect-card {
    padding: 22px;
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
    background: #f8fafc;
}

.glc-empty-state p,
.glc-connect-card p {
    color: var(--glc-muted);
}

.glc-connect-form {
    margin-top: 18px;
}

.glc-registration-names.hidden {
    display: none;
}

.glc-classic-benefits-row > td {
    padding-top: 14px !important;
    padding-bottom: 14px !important;
}

.glc-block-panel {
    margin: 14px 0;
}

@media (max-width: 720px) {
    .glc-coupon-grid,
    .glc-input-grid,
    .glc-stat-grid,
    .glc-account-coupons {
        grid-template-columns: 1fr;
    }

    .glc-panel__header,
    .glc-panel--compact,
    .glc-panel__footer,
    .glc-account-coupon__meta {
        align-items: stretch;
        flex-direction: column;
    }

    .glc-balance-pills {
        justify-content: flex-start;
    }
}

.glc-section-heading--cart {
    margin-top: 8px;
}

.glc-account-benefit-form {
    margin-top: -6px;
}

.glc-current-cart .button {
    margin-top: 8px;
}

.glc-gift-card-lookup {
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
}

.glc-gift-card-control {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px;
    align-items: center;
}

.glc-gift-card-control input[type="text"] {
    width: 100%;
    min-height: 42px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
}

.glc-gift-card-control .button,
.glc-gift-card-control .wc-block-components-button {
    white-space: nowrap;
}

.glc-gift-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin-top: 8px;
    color: #64748b;
    font-size: 12px;
}

.glc-gift-card-meta strong {
    color: #0f172a;
}

.glc-gift-card-status {
    display: block;
    margin-top: 8px;
}

@media (max-width: 480px) {
    .glc-gift-card-control {
        grid-template-columns: minmax(0, 1fr) auto;
    }
}

.wp-block-woocommerce-cart-order-summary-totals-block .wc-block-components-totals-wrapper.slot-wrapper .glc-block-panel {
    margin: 14px 0 0;
}

.wp-block-woocommerce-cart-order-summary-totals-block .glc-block-panel.glc-panel {
    padding: 16px;
}

.wp-block-woocommerce-cart-order-summary-totals-block .glc-block-panel .glc-field-group {
    margin-top: 14px;
}

.wp-block-woocommerce-cart-order-summary-totals-block .glc-block-panel .glc-panel__footer {
    margin-top: 16px;
}

.wp-block-woocommerce-cart-order-summary-totals-block .glc-block-panel .glc-gift-card-lookup {
    padding: 14px;
}


.glc-coupon-select {
    width: 100%;
    min-height: 44px;
    padding: 0 38px 0 12px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background-color: #fff;
    color: #0f172a;
}

.glc-selected-coupons {
    display: flex;
    margin-top: 10px;
    flex-direction: column;
    gap: 8px;
}

.glc-selected-coupon {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
}

.glc-selected-coupon__content {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}

.glc-selected-coupon__content strong {
    overflow: hidden;
    color: #0f172a;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.glc-selected-coupon__content small {
    margin: 0;
    color: #64748b;
    font-size: 12px;
}

.glc-selected-coupon__remove {
    display: inline-flex;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #e2e8f0;
    color: #334155;
    font-size: 20px;
    line-height: 1;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex: 0 0 auto;
}

.glc-selected-coupon__remove:hover {
    background: #cbd5e1;
}



.glc-card-selector {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding: 20px;
    border: 1px solid var(--glc-border, #e2e8f0);
    border-radius: 16px;
    background: #fff;
}

.glc-card-selector__copy h3 {
    margin: 3px 0 0;
    color: #0f172a;
}

.glc-card-selector__copy p {
    margin: 8px 0 0;
    color: var(--glc-muted, #64748b);
}

.glc-card-selector__form {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 10px;
}

.glc-card-selector__form .glc-label {
    margin-bottom: -2px;
}

.glc-card-selector__form select {
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
}

.glc-card-selector__form .button {
    align-self: flex-start;
}

@media (max-width: 720px) {
    .glc-card-selector {
        grid-template-columns: 1fr;
    }

    .glc-card-selector__form .button {
        width: 100%;
    }
}

.glc-card-selector__form small {
    color: var(--glc-muted, #64748b);
    line-height: 1.4;
}

.glc-benefit-panel {
    padding: 16px;
    color: #0f172a;
    font-size: 14px;
    line-height: 1.45;
}

.glc-benefit-panel .glc-panel__header {
    align-items: center;
}

.glc-benefit-panel .glc-panel__header h3 {
    margin: 3px 0 0;
    color: #0f172a;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.15;
}

.glc-benefit-panel .glc-eyebrow {
    font-size: 11px;
    line-height: 1.4;
}

.glc-benefit-panel .glc-field-group {
    margin-top: 14px;
}

.glc-benefit-panel .glc-label {
    margin-bottom: 8px;
    color: #334155;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

.glc-benefit-panel .glc-field-group small {
    margin-top: 6px;
    color: #64748b;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
}

.glc-benefit-panel .glc-input-grid input[type="number"],
.glc-benefit-panel .glc-gift-card-control input[type="text"],
.glc-benefit-panel .glc-coupon-select {
    width: 100%;
    min-height: 42px;
    margin: 0;
    padding: 0 12px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
    color: #0f172a;
    box-shadow: none;
    font: inherit;
    line-height: normal;
    box-sizing: border-box;
}

.glc-benefit-panel .glc-panel__footer {
    margin-top: 16px;
}

.glc-benefit-panel .glc-apply-benefits,
.glc-benefit-panel .glc-block-apply,
.glc-classic-benefits-row .glc-benefit-panel button.glc-apply-benefits {
    display: inline-flex;
    width: auto;
    min-width: 244px;
    min-height: 56px;
    margin: 0;
    padding: 0 32px;
    border: 1px solid #111;
    border-radius: 0;
    background: #111;
    color: #fff;
    box-shadow: none;
    font-size: 16px;
    font-weight: 400;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    appearance: none;
}

.glc-benefit-panel .glc-apply-benefits:hover,
.glc-benefit-panel .glc-apply-benefits:focus,
.glc-benefit-panel .glc-block-apply:hover,
.glc-benefit-panel .glc-block-apply:focus,
.glc-classic-benefits-row .glc-benefit-panel button.glc-apply-benefits:hover,
.glc-classic-benefits-row .glc-benefit-panel button.glc-apply-benefits:focus {
    border-color: #111;
    background: #111;
    color: #fff;
}

.glc-benefit-panel .glc-apply-benefits:disabled,
.glc-benefit-panel .glc-block-apply:disabled,
.glc-classic-benefits-row .glc-benefit-panel button.glc-apply-benefits:disabled {
    cursor: not-allowed;
    opacity: .55;
}

.glc-classic-benefits-row .glc-benefit-panel,
.glc-classic-benefits-row .glc-benefit-panel label,
.glc-classic-benefits-row .glc-benefit-panel input,
.glc-classic-benefits-row .glc-benefit-panel select,
.glc-classic-benefits-row .glc-benefit-panel button {
    font-family: inherit;
}

@media (max-width: 720px) {
    .glc-benefit-panel .glc-apply-benefits,
    .glc-benefit-panel .glc-block-apply,
    .glc-classic-benefits-row .glc-benefit-panel button.glc-apply-benefits {
        width: 100%;
        min-width: 0;
    }
}

.glc-block-panel [hidden] {
    display: none !important;
}

.wp-block-woocommerce-cart-order-summary-totals-block .glc-block-panel .glc-panel__header {
    gap: 10px;
}

.wp-block-woocommerce-cart-order-summary-totals-block .glc-block-panel .glc-panel__header > :first-child {
    min-width: 0;
    flex: 1 1 auto;
}

.wp-block-woocommerce-cart-order-summary-totals-block .glc-block-panel .glc-panel__header h3 {
    white-space: nowrap;
}

.wp-block-woocommerce-cart-order-summary-totals-block .glc-block-panel .glc-balance-pills {
    flex: 0 0 auto;
    flex-wrap: nowrap;
    gap: 6px;
}

.glc-benefit-panel .glc-gift-card-control .glc-check-gift-card {
    display: inline-flex;
    width: auto;
    min-width: 0;
    min-height: 42px;
    margin: 0;
    padding: 0 16px;
    border: 1px solid #111;
    border-radius: 0;
    background: #111;
    color: #fff;
    box-shadow: none;
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    appearance: none;
}

.glc-benefit-panel .glc-gift-card-control .glc-check-gift-card:hover,
.glc-benefit-panel .glc-gift-card-control .glc-check-gift-card:focus {
    border-color: #111;
    background: #111;
    color: #fff;
}

.glc-benefit-panel .glc-coupon-select:disabled,
.glc-benefit-panel .glc-input-grid input[type="number"]:disabled {
    border-color: #e2e8f0 !important;
    background: #f1f5f9 !important;
    color: #94a3b8 !important;
    box-shadow: none !important;
    cursor: not-allowed;
    opacity: .62;
}

.glc-benefit-panel .glc-coupon-select:disabled:hover,
.glc-benefit-panel .glc-coupon-select:disabled:focus,
.glc-benefit-panel .glc-input-grid input[type="number"]:disabled:hover,
.glc-benefit-panel .glc-input-grid input[type="number"]:disabled:focus {
    border-color: #e2e8f0 !important;
    background: #f1f5f9 !important;
    color: #94a3b8 !important;
    outline: none;
}
