/*
 * simongiftvoucher — cart line & order summary styles.
 * Loaded on every front-end page via displayHeader so the slide-out
 * mini-cart is styled too (it can appear on any page).
 */

/* ─────────────────────────────────────────────────────────────
   Cart-line details (below product line in cart/checkout/mini-cart)
   ───────────────────────────────────────────────────────────── */
.gv-cart-lines {
    margin-top: 0.5rem;
    line-height: 1.5;
    font-size: 1.3rem;
    color: #555;
}

.gv-cart-line {
    padding: 0.4rem 0;
}

.gv-cart-line-additional {
    border-top: 1px dashed #e0e0e0;
    margin-top: 0.4rem;
    padding-top: 0.6rem;
}

.gv-cart-line-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.gv-cart-line-icon {
    font-size: 1.4rem;
    line-height: 1;
}

.gv-cart-line-icon-sm {
    font-size: 1.1rem;
    line-height: 1;
    color: #888;
    margin-right: 0.2rem;
}

.gv-cart-line-amount {
    font-weight: 700;
    color: #2b2b2b;
    font-size: 1.4rem;
}

.gv-cart-line-template {
    font-size: 1.1rem;
    color: #888;
    padding: 0.1rem 0.5rem;
    background: #f5f5f5;
    border-radius: 10px;
}

.gv-cart-line-names,
.gv-cart-line-delivery {
    margin-top: 0.3rem;
    font-size: 1.2rem;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.3rem;
}

.gv-cart-line-label {
    color: #999;
    font-weight: 500;
}

.gv-cart-line-value {
    color: #333;
    font-weight: 500;
    margin-right: 0.8rem;
}

.gv-cart-line-email,
.gv-cart-line-schedule {
    color: #666;
    font-size: 1.15rem;
}

.gv-cart-line-message {
    margin-top: 0.4rem;
    padding: 0.5rem 0.8rem;
    border-left: 2px solid #d0d0d0;
    font-style: italic;
    font-size: 1.2rem;
    color: #666;
    background: #fafafa;
    border-radius: 2px;
}

/* Context-specific tweaks */

/* Cart page product table */
td.product-name .gv-cart-lines,
.cart-item .gv-cart-lines {
    margin-top: 0.6rem;
}

/* Checkout right-hand summary (compact) */
.cart-summary .gv-cart-lines,
.cart-summary-products .gv-cart-lines,
#cart-summary-product-list .gv-cart-lines {
    margin-top: 0.3rem;
    font-size: 1.15rem;
}

.cart-summary .gv-cart-line-amount,
.cart-summary-products .gv-cart-line-amount {
    font-size: 1.25rem;
}

.cart-summary .gv-cart-line-message,
.cart-summary-products .gv-cart-line-message {
    display: none; /* too verbose for the narrow sidebar */
}

/* Slide-out mini cart (Akira & generic) */
#canvas-mini-cart .gv-cart-lines,
.widget_shopping_cart .gv-cart-lines,
.cart-item-product .gv-cart-lines,
#blockcart-modal .gv-cart-lines {
    margin-top: 0.3rem;
    font-size: 1.15rem;
}

#canvas-mini-cart .gv-cart-line-message,
.widget_shopping_cart .gv-cart-line-message {
    display: none; /* too verbose for the slide-out */
}

/* ─────────────────────────────────────────────────────────────
   Order confirmation / order detail summary
   ───────────────────────────────────────────────────────────── */
.gv-order-summary {
    margin: 1.5rem 0;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    background: #fff;
    overflow: hidden;
}

.gv-order-summary .card-header {
    padding: 1rem 1.25rem;
    background: #f8f8f8;
    border-bottom: 1px solid #e5e5e5;
}

.gv-order-summary .card-header h3 {
    margin: 0;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gv-order-summary-icon {
    font-size: 1.8rem;
}

.gv-order-summary .card-block {
    padding: 1rem 1.25rem;
}

.gv-order-voucher {
    padding: 0.6rem 0;
}

.gv-order-voucher-additional {
    border-top: 1px dashed #e0e0e0;
    margin-top: 0.8rem;
    padding-top: 1rem;
}

.gv-order-voucher-head {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
}

.gv-order-amount {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2b2b2b;
}

.gv-order-recipient {
    font-size: 1.3rem;
    color: #666;
}

.gv-order-voucher-body p {
    margin: 0.3rem 0;
    font-size: 1.3rem;
    color: #555;
}

.gv-order-code {
    margin-top: 0.6rem;
    padding: 0.5rem 0.8rem;
    background: #f5f5f5;
    border-radius: 4px;
    font-size: 1.3rem;
}

.gv-order-code-label {
    color: #888;
    margin-right: 0.4rem;
}

.gv-order-code code {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #2b2b2b;
    background: transparent;
    padding: 0;
}

/* ─────────────────────────────────────────────────────────────
   My gift cards — customer account page
   ───────────────────────────────────────────────────────────── */

.gv-account-link .link-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.gv-account-link .material-icons {
    font-size: 1.6rem;
    line-height: 1;
    flex-shrink: 0;
}

/* In Akira-style single-column lists, make the link behave like
   the theme's other account links */
.account-links .gv-account-link,
.links .gv-account-link {
    display: block;
    padding: 1rem 1.5rem;
}

.gv-my-cards {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.gv-section {
    padding: 0;
}

.gv-section-title {
    margin: 0 0 1rem;
    font-size: 1.8rem;
    color: #2b2b2b;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.gv-section-count {
    font-size: 1.4rem;
    color: #999;
    font-weight: normal;
}

.gv-empty-state {
    padding: 2rem 1.5rem;
    background: #f8f8f8;
    border-radius: 6px;
    text-align: center;
}

.gv-empty-state p {
    margin: 0.3rem 0;
}

/* Cards grid — responsive columns */
.gv-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(26rem, 1fr));
    gap: 1.5rem;
}

.gv-card {
    padding: 1.5rem;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.gv-card:hover {
    border-color: #2396c7;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.gv-card-empty {
    opacity: 0.6;
    background: #fafafa;
}

.gv-card-expired {
    opacity: 0.55;
    background: #fafafa;
    border-style: dashed;
}

.gv-card-purchased {
    border-left: 3px solid #2396c7;
}

.gv-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.3rem;
}

.gv-card-icon {
    font-size: 2rem;
}

.gv-card-status {
    font-size: 1.1rem;
    padding: 0.2rem 0.6rem;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    background: #e8f4f9;
    color: #2396c7;
}

.gv-card-status.status-redeemed,
.gv-card-status.status-void,
.gv-card-status.status-expired {
    background: #f0f0f0;
    color: #999;
}

.gv-card-status.status-active {
    background: #d9f0e0;
    color: #156d2e;
}

.gv-card-amount {
    font-size: 2.8rem;
    font-weight: 700;
    color: #2b2b2b;
    line-height: 1;
}

.gv-card-amount-sub {
    font-size: 1.1rem;
    margin-top: -0.2rem;
}

.gv-card-from {
    font-size: 1.3rem;
    color: #555;
    margin-top: 0.3rem;
}

.gv-card-code {
    margin-top: 0.3rem;
    padding: 0.6rem 0.8rem;
    background: #f5f5f5;
    border-radius: 4px;
    text-align: center;
}

.gv-card-code code {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #2b2b2b;
    background: transparent;
    padding: 0;
    font-size: 1.4rem;
}

.gv-card-expires {
    font-size: 1.15rem;
    color: #888;
}

.gv-card-expires.text-danger {
    color: #c0392b;
    font-weight: 500;
}

.gv-card-date {
    font-size: 1.1rem;
}

.gv-card-actions {
    margin-top: auto;
    padding-top: 0.5rem;
}

.gv-card-actions .btn {
    font-size: 1.2rem;
}

/* Buy CTA block */
.gv-buy-cta {
    padding: 2rem;
    background: linear-gradient(135deg, #e8f4f9 0%, #d8ebf3 100%);
    border-radius: 8px;
    text-align: center;
}

.gv-buy-cta h3 {
    margin: 0 0 0.5rem;
    color: #2b2b2b;
}

.gv-buy-cta p {
    margin: 0 0 1rem;
    color: #555;
}

/* Balance checker */
.gv-balance-checker {
    padding: 1.5rem;
    background: #f8f8f8;
    border-radius: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
}

.gv-balance-checker .form-group {
    margin: 0;
    flex: 1 1 20rem;
}

.gv-balance-checker input {
    width: 100%;
    padding: 0.8rem 1rem;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.1em;
}

.gv-balance-result {
    padding: 0 0.5rem;
    font-weight: 500;
}

/* Order confirmation — status + next-steps block */
.gv-order-status {
    padding: 1rem;
    background: #f0f9ff;
    border-left: 3px solid #2396c7;
    border-radius: 0 4px 4px 0;
    margin: 0.8rem 0;
    line-height: 1.6;
}

.gv-order-code-pending {
    font-size: 1.2rem;
    color: #888;
    background: #fafafa;
    border: 1px dashed #ddd;
    padding: 0.8rem;
}

.gv-order-next-steps {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e5e5;
}

.gv-order-next-steps h4 {
    margin: 0 0 0.8rem;
    font-size: 1.4rem;
    color: #2b2b2b;
}

.gv-order-next-steps ul {
    margin: 0;
    padding-left: 1.5rem;
    font-size: 1.3rem;
    color: #555;
    line-height: 1.7;
}

.gv-order-next-steps ul li {
    margin-bottom: 0.3rem;
}

.gv-order-next-steps a {
    color: #2396c7;
}


/* ─────────────────────────────────────────────────────────────
   Per-cart-line gift voucher details.
   Rendered via hookDisplayCartExtraProductInfo inside the
   product-name cell, directly below the product title on the
   main cart page. On the Axon/ProCast theme this places the
   voucher info exactly where physical-product attributes would
   appear - the natural position for "product options" info.
   ───────────────────────────────────────────────────────────── */
.gv-cart-info {
    margin: 0.6rem 0 0.2rem;
    padding: 0.8rem 1rem;
    background: #f0f9ff;
    border: 1px solid #d5e9f5;
    border-radius: 5px;
    font-size: 1.2rem;
    line-height: 1.5;
    color: #2b2b2b;
    max-width: 520px;
}

.gv-cart-info-item {
    padding: 0.2rem 0;
}

.gv-cart-info-item-additional {
    border-top: 1px dashed #c5dbea;
    margin-top: 0.5rem;
    padding-top: 0.6rem;
}

.gv-cart-info-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem 1rem;
    margin: 0.25rem 0;
    align-items: baseline;
}

.gv-cart-info-amount-row {
    gap: 0.7rem;
    align-items: center;
    margin-bottom: 0.4rem;
}

.gv-cart-info-icon {
    font-size: 1.4rem;
    line-height: 1;
}

.gv-cart-info-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2b2b2b;
}

.gv-cart-info-delivery-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.15rem 0.6rem;
    background: #fff;
    border: 1px solid #b9d7e8;
    border-radius: 11px;
    font-size: 1rem;
    color: #2396c7;
    font-weight: 500;
    white-space: nowrap;
}

.gv-cart-info-label {
    color: #888;
    font-weight: 500;
    margin-right: 0.2rem;
}

.gv-cart-info-email {
    color: #888;
}

.gv-cart-info-message {
    background: #fff;
    padding: 0.5rem 0.7rem;
    border-radius: 4px;
    border-left: 3px solid #c9a670;
    color: #5a5a5a;
}

.gv-cart-info-message em {
    font-style: italic;
}

/* Collapse to stacked rows on narrow viewports */
@media (max-width: 480px) {
    .gv-cart-info-amount-row,
    .gv-cart-info-names {
        flex-direction: column;
        align-items: flex-start;
    }
}
