:root {
    --hp-orange-50: #e8f8ee;
    --hp-orange-100: #d0f0dd;
    --hp-orange-200: #a1e0bb;
    --hp-orange-300: #72d099;
    --hp-orange-400: #43c077;
    --hp-orange-500: #15ac55;
    --hp-orange-600: #0d8a45;
    --hp-orange-700: #0a6d37;
    --hp-green: #ff6f61;
    --hp-green-bg: #fff0ee;
    --hp-red: #dc2626;
    --hp-red-bg: #fef2f2;
    --hp-blue: #2563eb;
    --hp-blue-bg: #eff6ff;
    --hp-purple: #7c3aed;
    --hp-purple-bg: #f5f3ff;
    --hp-pink: #db2777;
    --hp-pink-bg: #fdf2f8;
    --hp-gray-50: #f9fafb;
    --hp-gray-100: #f3f4f6;
    --hp-gray-200: #e5e7eb;
    --hp-gray-300: #d1d5db;
    --hp-gray-400: #9ca3af;
    --hp-gray-500: #6b7280;
    --hp-gray-600: #4b5563;
    --hp-gray-700: #374151;
    --hp-gray-800: #1f2937;
    --hp-gray-900: #111827;

    --hp-radius: 12px;
    --hp-radius-sm: 8px;
    --hp-radius-xs: 6px;
    --hp-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --hp-shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
    --hp-shadow-lg: 0 10px 40px rgba(0,0,0,0.10), 0 4px 12px rgba(0,0,0,0.06);
    --hp-bg: #ffffff;
    --hp-bg-muted: var(--hp-gray-50);
    --hp-text: var(--hp-gray-800);
    --hp-text-muted: var(--hp-gray-500);
    --hp-border: var(--hp-gray-200);
}

@media (prefers-color-scheme: dark) {
    :root {
        --hp-bg: #0f172a;
        --hp-bg-muted: #1e293b;
        --hp-text: #f1f5f9;
        --hp-text-muted: #94a3b8;
        --hp-border: #334155;
        --hp-shadow: 0 1px 3px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.2);
        --hp-shadow-md: 0 4px 16px rgba(0,0,0,0.4), 0 2px 4px rgba(0,0,0,0.3);
        --hp-shadow-lg: 0 10px 40px rgba(0,0,0,0.5), 0 4px 12px rgba(0,0,0,0.3);
    }
    .hishka-dash-card,
    .hishka-reward-card,
    .hishka-table { background: var(--hp-bg-muted) !important; }
    .hishka-tier-item { background: #1e293b !important; }
    .hishka-tier-active { background: #2d1b0e !important; }
    .hishka-table th { background: #0f172a !important; }
    .hishka-table tr:hover td { background: #1e293b !important; }
    .hishka-current-user td { background: #2d1b0e !important; }
    .hishka-big-number { color: #f1f5f9 !important; }
    .hishka-table td { border-color: #334155 !important; }
    .hishka-page { border-color: #334155; color: #e2e8f0; }
    .hishka-checkout-points { background: #1e293b; border-color: #334155; }
    .hishka-login-msg { background: #1e293b; border-color: #334155; }
}

.hishka-dashboard,
.hishka-history,
.hishka-rewards,
.hishka-tier,
.hishka-referral,
.hishka-leaderboard {
    max-width: 100%;
    margin: 24px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #1a1a1a;
    line-height: 1.6;
}

.hishka-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.hishka-dashboard-grid.hishka-grid-2col {
    grid-template-columns: repeat(2, 1fr);
}

.hishka-dash-card {
    background: var(--hp-bg);
    border: 1px solid var(--hp-border);
    border-radius: var(--hp-radius);
    padding: 24px 20px 20px;
    text-align: center;
    box-shadow: var(--hp-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}

.hishka-dash-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--hp-orange-400), var(--hp-orange-500));
    border-radius: var(--hp-radius) var(--hp-radius) 0 0;
}

.hishka-dash-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--hp-shadow-md);
}

.hishka-dash-card h3 {
    margin: 0 0 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--hp-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.hishka-big-number {
    font-size: 38px;
    font-weight: 800;
    color: var(--hp-gray-900);
    line-height: 1.1;
    letter-spacing: -1px;
}

.hishka-dash-card p {
    margin: 0;
    font-size: 12px;
    color: var(--hp-text-muted);
}

/* ── referral link box ─────────────────── */
.hishka-referral-link-box {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.hishka-referral-input {
    flex: 1;
    min-width: 0;
    padding: 8px 10px;
    font-size: 12px;
    border: 1px solid var(--hp-border, #e5e7eb);
    border-radius: var(--hp-radius-xs, 6px);
    background: var(--hp-bg-muted, #f9fafb);
    color: var(--hp-text-muted, #6b7280);
    font-family: inherit;
    cursor: default;
    outline: none;
}
.hishka-referral-actions {
    display: flex;
    gap: 6px;
}
.hishka-referral-actions .hishka-btn {
    flex: 1;
    justify-content: center;
    text-decoration: none;
}

/* ── redeemed badge ────────────────────── */
.hishka-redeemed-badge {
    display: inline-block;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 20px;
    width: fit-content;
    margin: 0 auto 8px;
    background: var(--hp-orange-50, #e8f8ee);
    color: var(--hp-orange-600, #0d8a45);
}

.hishka-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--hp-bg);
    border: 1px solid var(--hp-border);
    border-radius: var(--hp-radius-sm);
    overflow: hidden;
    box-shadow: var(--hp-shadow);
}

.hishka-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--hp-text-muted);
    background: var(--hp-bg-muted);
    border-bottom: 1px solid var(--hp-border);
}

.hishka-table td {
    padding: 12px 16px;
    font-size: 14px;
    border-bottom: 1px solid var(--hp-border);
    color: var(--hp-text);
}

.hishka-table tbody tr:last-child td {
    border-bottom: none;
}

.hishka-table tbody tr {
    transition: background 0.15s ease;
}

.hishka-table tbody tr:hover td {
    background: var(--hp-bg-muted);
}

.hishka-points-positive {
    color: var(--hp-green);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.hishka-points-negative {
    color: var(--hp-red);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.hishka-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.hishka-badge-earn { background: var(--hp-green-bg); color: var(--hp-green); }
.hishka-badge-redeem { background: var(--hp-orange-100); color: var(--hp-orange-700); }
.hishka-badge-signup { background: var(--hp-blue-bg); color: var(--hp-blue); }
.hishka-badge-referral { background: var(--hp-purple-bg); color: var(--hp-purple); }
.hishka-badge-birthday { background: var(--hp-pink-bg); color: var(--hp-pink); }
.hishka-badge-expire { background: var(--hp-red-bg); color: var(--hp-red); }
.hishka-badge-adjustment { background: var(--hp-gray-100); color: var(--hp-gray-600); }
.hishka-badge-purchase { background: var(--hp-green-bg); color: var(--hp-green); }
.hishka-badge-estimation { background: var(--hp-blue-bg); color: var(--hp-blue); }
.hishka-badge-pending { background: #fff3cd; color: #856404; }
.hishka-badge-approved { background: #d4edda; color: #155724; }
.hishka-badge-completed { background: #cce5ff; color: #004085; }
.hishka-badge-cancelled { background: #fef2f2; color: #dc2626; }
.hishka-badge-rejected { background: #fef2f2; color: #dc2626; }
.hishka-dash-pending .hishka-big-number { color: var(--hp-orange-400, #fb923c); }

.hishka-rewards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 20px;
}

.hishka-reward-card {
    background: var(--hp-bg);
    border: 1px solid var(--hp-border);
    border-radius: var(--hp-radius);
    padding: 28px 24px 24px;
    text-align: center;
    box-shadow: var(--hp-shadow);
    transition: transform 0.2s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}

.hishka-reward-card:hover {
    box-shadow: var(--hp-shadow-lg);
    transform: translateY(-4px);
}

.hishka-reward-card img {
    max-width: 100%;
    height: auto;
    max-height: 140px;
    object-fit: contain;
    margin-bottom: 16px;
    border-radius: var(--hp-radius-sm);
}

.hishka-reward-card h3 {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 700;
    color: var(--hp-text);
}

.hishka-reward-desc {
    font-size: 13px;
    color: var(--hp-text-muted);
    margin: 0 0 16px;
    line-height: 1.5;
    flex: 1;
}

.hishka-reward-points {
    font-size: 14px;
    margin: 0 0 12px;
    color: var(--hp-text-muted);
}

.hishka-reward-points strong {
    font-size: 28px;
    font-weight: 800;
    color: var(--hp-orange-500);
    letter-spacing: -0.5px;
}

.hishka-reward-stock {
    font-size: 12px;
    color: var(--hp-text-muted);
    margin: 0 0 16px;
}

.hishka-affordable {
    border-color: var(--hp-green);
    border-width: 1.5px;
}

.hishka-unaffordable {
    opacity: 0.7;
}

.hishka-need-more {
    font-size: 12px;
    color: var(--hp-text-muted);
    margin: 8px 0 0;
}

.hishka-dashboard button,
.hishka-dashboard input[type="button"],
.hishka-dashboard input[type="submit"],
.hishka-history button,
.hishka-rewards button,
.hishka-tier button,
.hishka-referral button,
.hishka-leaderboard button {
    color: #374151;
}
.hishka-dashboard button.hishka-btn-primary,
.hishka-history button.hishka-btn-primary,
.hishka-rewards button.hishka-btn-primary,
.hishka-tier button.hishka-btn-primary,
.hishka-referral button.hishka-btn-primary,
.hishka-leaderboard button.hishka-btn-primary {
    color: #fff;
}
.hishka-btn,
a.hishka-btn,
button.hishka-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 24px;
    border-radius: var(--hp-radius-xs);
    font-size: 14px;
    font-weight: 600 !important;
    text-decoration: none !important;
    line-height: 1.4;
    border: 1px solid var(--hp-border);
    background: #fff;
    color: #374151 !important;
    cursor: pointer;
    transition: all 0.15s ease;
    height: auto; min-height: 0;
}

.hishka-btn:hover,
a.hishka-btn:hover,
button.hishka-btn:hover {
    background: var(--hp-bg-muted);
    border-color: var(--hp-gray-300);
    color: #374151 !important;
    text-decoration: none !important;
}

.hishka-btn-primary,
a.hishka-btn-primary,
button.hishka-btn-primary {
    background-color: #15ac55;
    background: linear-gradient(135deg, var(--hp-orange-400), var(--hp-orange-500));
    border-color: transparent;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(21,172,85,0.3);
}

.hishka-btn-primary:hover,
a.hishka-btn-primary:hover,
button.hishka-btn-primary:hover {
    background-color: #0d8a45;
    background: linear-gradient(135deg, var(--hp-orange-400), var(--hp-orange-500));
    box-shadow: 0 4px 14px rgba(21,172,85,0.4);
    transform: translateY(-1px);
    color: #fff !important;
    text-decoration: none !important;
}

.hishka-btn-green,
a.hishka-btn-green,
button.hishka-btn-green {
    background-color: #15ac55;
    background: linear-gradient(135deg, #22c55e, #15ac55);
    border-color: transparent;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(21,172,85,0.3);
}

.hishka-btn-green:hover,
a.hishka-btn-green:hover,
button.hishka-btn-green:hover {
    background-color: #0d8a45;
    background: linear-gradient(135deg, #16a34a, #0d8a45);
    box-shadow: 0 4px 14px rgba(21,172,85,0.4);
    transform: translateY(-1px);
    color: #fff !important;
    text-decoration: none !important;
}

.hishka-btn-copy {
    white-space: nowrap;
}

.hishka-btn-purple,
a.hishka-btn-purple,
button.hishka-btn-purple {
    background-color: #7c3aed;
    background: linear-gradient(135deg, #9061f9, #7c3aed);
    border-color: transparent;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(124,58,237,0.3);
}

.hishka-btn-purple:hover,
a.hishka-btn-purple:hover,
button.hishka-btn-purple:hover {
    background-color: #6d28d9;
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    box-shadow: 0 4px 14px rgba(124,58,237,0.4);
    transform: translateY(-1px);
    color: #fff !important;
    text-decoration: none !important;
}

.hishka-btn-secondary,
a.hishka-btn-secondary,
button.hishka-btn-secondary {
    background: transparent;
    border-color: var(--hp-border);
    color: var(--hp-text) !important;
}
.hishka-btn-secondary:hover,
a.hishka-btn-secondary:hover,
button.hishka-btn-secondary:hover {
    background: var(--hp-bg-muted);
    color: var(--hp-text) !important;
    text-decoration: none !important;
}

.hishka-tier-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 24px;
    border-radius: 100px;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    margin: 8px 0;
}

.hishka-progress-bar {
    width: 100%;
    height: 8px;
    background: var(--hp-gray-200);
    border-radius: 100px;
    overflow: hidden;
    margin: 10px 0;
}

.hishka-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--hp-orange-400), var(--hp-orange-500));
    border-radius: 100px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hishka-tier-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hishka-tier-item {
    padding: 14px 18px;
    border-left: 4px solid transparent;
    background: var(--hp-bg-muted);
    border-radius: var(--hp-radius-xs);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background 0.15s ease;
}

.hishka-tier-active {
    border-left-color: var(--hp-orange-500);
    background: rgba(230, 126, 34, 0.06);
}

.hishka-tier-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hishka-tier-item strong {
    font-size: 15px;
    font-weight: 600;
}

.hishka-tier-info {
    margin-left: auto;
    font-size: 12px;
    color: var(--hp-text-muted);
    white-space: nowrap;
}

.hishka-referral {
    max-width: 600px;
}

.hishka-referral h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px;
}

.hishka-notice {
    padding: 14px 18px;
    border-radius: var(--hp-radius-sm);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
    border: 1px solid;
}
.hishka-notice-success {
    background: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}
.hishka-notice-error {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fecaca;
}

.hishka-referral-link-box {
    display: flex;
    gap: 8px;
    margin: 16px 0;
}

.hishka-referral-link-box input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--hp-border);
    border-radius: var(--hp-radius-xs);
    font-size: 14px;
    font-family: 'SF Mono', 'Fira Code', monospace;
    background: var(--hp-bg-muted);
    color: var(--hp-text);
    outline: none;
    transition: border-color 0.15s ease;
}

.hishka-referral-link-box input:focus {
    border-color: var(--hp-orange-400);
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.1);
}

.hishka-filters {
    margin-bottom: 16px;
}

.hishka-filters select {
    padding: 8px 32px 8px 12px;
    border: 1px solid var(--hp-border);
    border-radius: var(--hp-radius-xs);
    font-size: 14px;
    background: var(--hp-bg);
    color: var(--hp-text);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    cursor: pointer;
    outline: none;
    transition: border-color 0.15s ease;
}

.hishka-filters select:focus {
    border-color: var(--hp-orange-400);
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.1);
}

.hishka-pagination {
    display: flex;
    gap: 4px;
    justify-content: center;
    margin-top: 20px;
}

.hishka-page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--hp-border);
    border-radius: var(--hp-radius-xs);
    text-decoration: none;
    color: var(--hp-text);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.15s ease;
}

.hishka-page:hover {
    background: var(--hp-bg-muted);
    border-color: var(--hp-orange-300);
}

.hishka-page.active {
    background: var(--hp-orange-500);
    color: #fff;
    border-color: var(--hp-orange-500);
}

.hishka-current-user td {
    background: rgba(230, 126, 34, 0.06) !important;
    font-weight: 600;
}

.hishka-checkout-points {
    background: var(--hp-green-bg);
    border: 1px solid var(--hp-green);
    border-radius: var(--hp-radius);
    padding: 20px 24px;
    margin-bottom: 24px;
}

.hishka-checkout-points p {
    margin: 0 0 12px;
    font-size: 14px;
}

.hishka-checkout-points-input {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.hishka-checkout-points-input input {
    width: 120px;
    padding: 8px 12px;
    border: 1px solid var(--hp-border);
    border-radius: var(--hp-radius-xs);
    font-size: 14px;
    outline: none;
    transition: border-color 0.15s ease;
}

.hishka-checkout-points-input input:focus {
    border-color: var(--hp-orange-400);
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.1);
}

#hishka_points_message {
    font-size: 13px;
    font-weight: 500;
}

.hishka-login-msg {
    padding: 20px 24px;
    background: var(--hp-bg-muted);
    border: 1px solid var(--hp-border);
    border-radius: var(--hp-radius);
    text-align: center;
}

.hishka-login-msg a {
    color: var(--hp-orange-500);
    font-weight: 600;
    text-decoration: none;
}

.hishka-login-msg a:hover {
    text-decoration: underline;
}

.hishka-dash-recent {
    margin-top: 8px;
}

.hishka-dash-recent h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 12px;
    color: var(--hp-text);
}

@media (max-width: 768px) {
    .hishka-dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .hishka-dash-card {
        padding: 18px 14px 16px;
    }

    .hishka-big-number {
        font-size: 28px;
    }

    .hishka-rewards-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 14px;
    }

    .hishka-table td,
    .hishka-table th {
        padding: 10px 12px;
    }
}

@media (max-width: 600px) {
    .hishka-dashboard-grid.hishka-grid-2col {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hishka-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .hishka-referral-link-box {
        flex-direction: column;
    }

    .hishka-rewards-grid {
        grid-template-columns: 1fr;
    }

    .hishka-table {
        font-size: 13px;
    }
}

/* ── accordion sections ─────────────────── */
.hishka-accordion {
    border: 1px solid var(--hp-border);
    border-radius: var(--hp-radius);
    margin-bottom: 12px;
    background: var(--hp-bg);
    overflow: hidden;
    box-shadow: var(--hp-shadow);
}
.hishka-accordion-summary {
    cursor: pointer;
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 700;
    color: var(--hp-text);
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
    transition: background 0.15s ease;
}
.hishka-accordion-summary::-webkit-details-marker { display: none; }
.hishka-accordion-summary:hover { background: var(--hp-bg-muted); }
.hishka-accordion-summary::after {
    content: '›';
    font-size: 20px;
    font-weight: 700;
    color: var(--hp-orange-500);
    transition: transform 0.2s ease;
    line-height: 1;
}
.hishka-accordion[open] .hishka-accordion-summary::after { transform: rotate(90deg); }
.hishka-accordion-body { padding: 0 20px 20px; }

/* ── checkout rewards catalog ─────────────────── */
.hishka-checkout-rewards-wrapper {
    background: var(--hp-bg) !important;
    border: 1px solid var(--hp-border) !important;
    border-radius: var(--hp-radius);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--hp-shadow);
    text-align: left;
}
.hishka-checkout-rewards-wrapper h4 {
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--hp-text);
}
.hishka-checkout-points p {
    font-size: 13px;
    color: var(--hp-text-muted);
    margin: 0 0 12px;
}
.hishka-checkout-points-input {
    display: flex;
    gap: 8px;
    align-items: center;
    max-width: 450px;
}
.hishka-checkout-points-input input[type="number"] {
    width: 100px;
    height: 40px;
    border: 1px solid var(--hp-border);
    border-radius: var(--hp-radius-xs);
    padding: 0 10px;
    font-size: 14px;
    color: var(--hp-text);
    background: var(--hp-bg-muted);
    outline: none;
}
.hishka-checkout-coupons-list {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 36px) / 4);
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
}
.hishka-checkout-coupons-list::-webkit-scrollbar {
    height: 4px;
}
.hishka-checkout-coupons-list::-webkit-scrollbar-track {
    background: transparent;
}
.hishka-checkout-coupons-list::-webkit-scrollbar-thumb {
    background-color: var(--hp-border, #e5e7eb);
    border-radius: 4px;
}
.hishka-checkout-coupons-list::-webkit-scrollbar-thumb:hover {
    background-color: var(--hp-text-muted, #9ca3af);
}

@media (max-width: 768px) {
    .hishka-checkout-coupons-list {
        grid-auto-columns: calc((100% - 12px) / 2);
        gap: 12px;
    }
}

.hishka-checkout-rewards-list {
    display: flex;
    flex-direction: row;
    gap: 8px;
}
.hishka-checkout-coupon-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
    background: var(--hp-bg-muted) !important;
    border: 1px solid var(--hp-border) !important;
    border-radius: var(--hp-radius-sm);
    padding: 14px;
    gap: 12px;
    text-align: left;
}
.hishka-checkout-coupon-item .hishka-btn {
    width: 100%;
    margin-top: auto;
}
.hishka-checkout-reward-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--hp-bg-muted) !important;
    border: 1px solid var(--hp-border) !important;
    border-radius: var(--hp-radius-sm);
    padding: 12px 16px;
    gap: 12px;
}
.hishka-checkout-coupon-item .hishka-coupon-code {
    font-family: monospace;
    font-weight: 700;
    color: var(--hp-orange-600, #0d8a45) !important;
    background: var(--hp-orange-50, #e8f8ee) !important;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 13px;
}
.hishka-checkout-coupon-item .hishka-coupon-desc {
    font-size: 13px;
    font-weight: 600;
    color: var(--hp-text);
    flex: 1;
}
.hishka-checkout-reward-item .hishka-reward-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}
.hishka-checkout-reward-item .hishka-reward-info strong {
    font-size: 14px;
    color: var(--hp-text);
    font-weight: 600;
}
.hishka-checkout-reward-item .hishka-reward-info span {
    font-size: 12px;
    color: var(--hp-text-muted);
}
.hishka-checkout-reward-item.unaffordable {
    opacity: 0.6;
}
.hishka-checkout-reward-item.unaffordable .hishka-reward-info strong {
    color: var(--hp-text-muted);
}
.hishka-checkout-reward-item.unaffordable .hishka-btn {
    background: #f3f4f6 !important;
    border-color: #e5e7eb !important;
    color: #9ca3af !important;
    cursor: not-allowed !important;
}



/* Hide standard WooCommerce checkout coupon toggles and forms */
body.woocommerce-checkout .woocommerce-form-coupon-toggle,
body.woocommerce-checkout form.checkout_coupon,
.woocommerce-form-coupon-toggle,
form.checkout_coupon {
    display: none !important;
}

.hishka-coupon-code-label {
    font-size: 12px;
    color: var(--hp-text-muted);
    margin: 2px 0 0;
}

.hishka-checkout-rewards-cta {
    background: var(--hp-bg-muted, #f9fafb);
    border: 1px dashed var(--hp-border, #e5e7eb);
    border-radius: var(--hp-radius-sm, 8px);
    padding: 24px;
    text-align: center;
    margin-bottom: 20px;
}
.hishka-checkout-rewards-cta h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--hp-text, #1f2937);
    margin: 0 0 6px !important;
}
.hishka-checkout-rewards-cta p {
    font-size: 13px;
    color: var(--hp-text-muted, #6b7280);
    margin: 0 0 16px !important;
}
.hishka-checkout-rewards-cta .hishka-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    height: auto;
    width: auto;
    text-decoration: none !important;
}
.hishka-checkout-rewards-cta .hishka-cta-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Tooltip styling for tier benefits */
.hishka-tooltip-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    vertical-align: middle;
}

.hishka-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--hp-gray-200, #e5e7eb);
    color: var(--hp-gray-600, #4b5563);
    font-size: 10px;
    font-weight: 700;
    font-family: inherit;
    transition: background-color 0.2s, color 0.2s;
}

.hishka-tooltip-container:hover .hishka-info-icon,
.hishka-tooltip-container:focus .hishka-info-icon {
    background: var(--hp-purple, #7c3aed) !important;
    color: #ffffff !important;
}

.hishka-tooltip-bubble {
    visibility: hidden;
    width: 250px;
    background-color: #1f2937;
    color: #ffffff;
    text-align: left;
    border-radius: 8px;
    padding: 12px;
    position: absolute;
    z-index: 100;
    bottom: 140%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.2s, visibility 0.2s;
    box-shadow: var(--hp-shadow-lg);
    font-size: 12px;
    line-height: 1.4;
    pointer-events: none; /* Avoid blocking other hovers */
}

/* Arrow indicator */
.hishka-tooltip-bubble::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -6px;
    border-width: 6px;
    border-style: solid;
    border-color: #1f2937 transparent transparent transparent;
}

.hishka-tooltip-container:hover .hishka-tooltip-bubble,
.hishka-tooltip-container:focus-within .hishka-tooltip-bubble {
    visibility: visible;
    opacity: 1;
}

.hishka-tooltip-title {
    display: block;
    margin-bottom: 6px;
    color: #a78bfa;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hishka-tooltip-list {
    margin: 0;
    padding-left: 16px;
    list-style-type: disc;
    color: #ffffff !important;
}

.hishka-tooltip-list li {
    margin-bottom: 4px;
    color: #ffffff !important;
}
.hishka-tooltip-list li:last-child {
    margin-bottom: 0;
}

