/*
 * shop-v2.css — Light-theme product/services shop page
 *
 * Reusable styles for:
 *   /product/{sku}/{catSlug}
 *   /product/{sku}/ref/{refCode}
 *
 * Design system: opsus360 (DM Sans, green #2d8653, light backgrounds)
 * All --sh-* tokens are defined here so the template can stay token-agnostic.
 */

/* ── Design tokens ─────────────────────────────────────────────── */
:root {
    --sh-primary:           #2d8653;
    --sh-primary-hover:     #1e6b3f;
    --sh-primary-soft:      #e8f5ee;
    --sh-primary-border:    rgba(45, 134, 83, .28);
    --sh-success:           #16a34a;
    --sh-warning:           #f59e0b;
    --sh-danger:            #ef4444;

    --sh-card:              #ffffff;
    --sh-card-2:            #f8fafb;
    --sh-border:            #e5e7eb;
    --sh-text:              #1f2937;
    --sh-muted:             #6b7280;
    --sh-radius:            16px;
    --sh-radius-sm:         10px;
    --sh-shadow:            0 2px 12px rgba(17, 24, 39, .06);
    --sh-shadow-hover:      0 10px 32px rgba(17, 24, 39, .11);
    --sh-font:              'DM Sans', system-ui, -apple-system, sans-serif;
}

/* ── Embed mode ────────────────────────────────────────────────── */
body.shop-embed .navbar,
body.shop-embed footer,
body.shop-embed .navbar-footer { display: none !important; }

html, body {
    height: auto !important;
    overflow-y: auto !important;
}

/* Bare content wrapper used in place of the sidebar/topbar shell when
   rendering inside a 3rd-party iframe (anonymous or logged-in). */
#embed-root {
    padding: 16px;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0;
}

/* ── Page shell ────────────────────────────────────────────────── */
.sh-page {
    color: var(--sh-text);
    min-height: 100vh;
    font-family: var(--sh-font);
}

/* ── Hero banner ───────────────────────────────────────────────── */
.sh-hero {
    background: #ffffff;
    border: 1px solid var(--sh-border);
    border-radius: 12px;
    padding: 28px 15px;
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: stretch;
    gap: 16px;
    flex-wrap: wrap;
    box-shadow: 0 1px 4px rgba(17, 24, 39, .05);
    transition: border-color .18s ease, box-shadow .18s ease;
}
.sh-hero:hover {
    border-color: rgba(45, 134, 83, .32);
    box-shadow: 0 8px 24px rgba(17, 24, 39, .08);
}

/* Decorative radial glow in top-right */
.sh-hero::after {
    content: '';
    position: absolute;
    right: -40px;
    top: -40px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(45, 134, 83, .11) 0%, transparent 68%);
    pointer-events: none;
}

/* Icon badge */
.sh-hero-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--sh-primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

/* Text body */
.sh-hero-body {
    flex: 1;
    min-width: 0;
    padding-left: 14px;
}

/* Stat chips on the right */
.sh-hero-stats {
    display: none !important; /* hidden by default, only used in the image-overlay variant */
    gap: 10px;
    flex-shrink: 0;
    flex-wrap: wrap;
    align-items: center;
}
.sh-hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--sh-primary-soft);
    border: 1px solid var(--sh-primary-border);
    border-radius: 10px;
    padding: 8px 16px;
    min-width: 60px;
    text-align: center;
    font-family: var(--sh-font);
}
.sh-hero-stat-num {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--sh-primary);
    line-height: 1;
    margin-bottom: 3px;
}
.sh-hero-stat-label {
    font-size: .62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--sh-muted);
}

.sh-eyebrow {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--sh-primary);
    margin-bottom: 4px;
    font-family: var(--sh-font);
}

.sh-title {
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--sh-text);
    margin-bottom: 5px;
    font-family: var(--sh-font);
}

.sh-desc {
    color: var(--sh-muted);
    font-size: .875rem;
    line-height: 1.6;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sh-bullets {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 5px 16px;
}
.sh-bullets li {
    color: var(--sh-muted);
    font-size: .82rem;
}
.sh-bullets li::before {
    content: "✓";
    color: var(--sh-success);
    font-weight: 800;
    margin-right: 5px;
}

/* ── Breadcrumb ────────────────────────────────────────────────── */
.sh-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .8rem;
    color: var(--sh-muted);
    margin-bottom: 24px;
    font-family: var(--sh-font);
}
.sh-breadcrumb a {
    color: var(--sh-primary);
    text-decoration: none;
    font-weight: 600;
}
.sh-breadcrumb a:hover { text-decoration: underline; }
.sh-breadcrumb span { opacity: .5; }

/* ── Section heading block ─────────────────────────────────────── */
.sh-section-header {
    margin-bottom: 24px;
}
.sh-section-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--sh-text);
    margin: 0 0 4px;
    font-family: var(--sh-font);
}
.sh-section-subtitle {
    font-size: .875rem;
    color: var(--sh-muted);
    margin: 0;
}

.sh-section-label {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--sh-muted);
    margin-bottom: 16px;
    font-family: var(--sh-font);
}

/* ── Tabs (subcategory nav) ────────────────────────────────────── */
.sh-tabs-wrap {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 28px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--sh-border);
    overflow-x: auto;
}
.sh-tab {
    padding: 8px 18px;
    border-radius: 999px;
    border: 1px solid var(--sh-border);
    color: var(--sh-muted);
    background: #fff;
    text-decoration: none;
    white-space: nowrap;
    font-size: .87rem;
    font-weight: 600;
    transition: .18s ease;
    flex-shrink: 0;
    font-family: var(--sh-font);
}
.sh-tab:hover {
    color: var(--sh-primary);
    border-color: var(--sh-primary-border);
    background: var(--sh-primary-soft);
}
.sh-tab.active {
    color: #fff;
    background: var(--sh-primary);
    border-color: var(--sh-primary);
    font-weight: 700;
}

/* ── Dynamic description block ─────────────────────────────────── */
.sh-cat-desc {
    margin-bottom: 28px;
    padding: 12px 0;
    color: var(--sh-muted);
    font-size: .92rem;
    line-height: 1.72;
}

/* ─────────────────────────────────────────────────────────────────
   VIEW 1 — Category Cards  (horizontal layout)
   ───────────────────────────────────────────────────────────────── */
.sh-cat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-top: 8px;
}

.sh-cat-card {
    background: var(--sh-card);
    border: 1px solid var(--sh-border);
    border-radius: var(--sh-radius);
    padding: 20px;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    box-shadow: var(--sh-shadow);
    cursor: pointer;
}
.sh-cat-card:hover {
    transform: translateY(-3px);
    border-color: var(--sh-primary-border);
    box-shadow: var(--sh-shadow-hover);
    color: inherit;
    text-decoration: none;
}

.sh-cat-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    border-radius: 14px;
    background: var(--sh-primary-soft);
    border: 1px solid var(--sh-primary-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.55rem;
    color: var(--sh-primary);
    flex-shrink: 0;
    transition: background .22s ease, color .22s ease, border-color .22s ease;
}
.sh-cat-card:hover .sh-cat-icon {
    background: var(--sh-primary);
    color: #fff;
    border-color: var(--sh-primary);
}

.sh-cat-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.sh-cat-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--sh-text);
    margin: 0 0 6px;
    font-family: var(--sh-font);
    line-height: 1.3;
}

.sh-cat-desc-text {
    font-size: .83rem;
    color: var(--sh-muted);
    line-height: 1.65;
    flex-grow: 1;
    margin: 0 0 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: var(--sh-font);
}

.sh-cat-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sh-cat-count {
    font-size: .75rem;
    font-weight: 600;
    color: var(--sh-muted);
    font-family: var(--sh-font);
}

.sh-cat-cta {
    font-size: .83rem;
    font-weight: 700;
    color: var(--sh-primary);
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: var(--sh-font);
}
.sh-cat-cta::after {
    content: "→";
    transition: transform .18s ease;
}
.sh-cat-card:hover .sh-cat-cta::after { transform: translateX(4px); }
.sh-cat-card:hover .sh-cat-cta { color: var(--sh-primary-hover); }

/* ─────────────────────────────────────────────────────────────────
   VIEW 2 — Service Cards
   ───────────────────────────────────────────────────────────────── */
.sh-svc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.sh-svc-card {
    /* Reset <button> browser defaults */
    appearance: none;
    -webkit-appearance: none;
    display: flex;
    flex-direction: column;
    width: 100%;
    text-align: left;
    font-family: var(--sh-font);
    font-size: inherit;
    color: var(--sh-text);

    background: #fff;
    border: 1.5px solid var(--sh-border);
    border-radius: var(--sh-radius);
    padding: 0;
    overflow: hidden;
    cursor: pointer;
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
    position: relative;
    box-shadow: var(--sh-shadow);
}
.sh-svc-card:hover {
    transform: translateY(-3px);
    border-color: var(--sh-primary-border);
    box-shadow: var(--sh-shadow-hover);
}
.sh-svc-card.selected {
    border-color: var(--sh-primary);
    background: var(--sh-primary-soft);
    box-shadow: 0 0 0 3px rgba(45, 134, 83, .12);
}

.sh-svc-check {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--sh-primary);
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}
.sh-svc-card.selected .sh-svc-check { display: flex; }

.sh-svc-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--sh-text);
    padding-right: 30px;
    margin-bottom: 10px;
    line-height: 1.4;
    font-family: var(--sh-font);
}

.sh-svc-bullets {
    list-style: none;
    padding: 0;
    margin: 0 0 14px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.sh-svc-bullets li {
    font-size: .8rem;
    color: var(--sh-muted);
    display: flex;
    align-items: flex-start;
    gap: 6px;
    line-height: 1.4;
}
.sh-svc-bullets li::before {
    content: "✓";
    color: var(--sh-success);
    font-weight: 800;
    font-size: .72rem;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Price row */
.sh-price-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}
.sh-amount {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--sh-text);
    font-family: var(--sh-font);
}
.sh-amount-sale { color: var(--sh-primary); }
.sh-strike {
    color: var(--sh-muted);
    text-decoration: line-through;
    font-size: .9rem;
}
.sh-interval {
    color: var(--sh-muted);
    font-size: .78rem;
}

/* Badges */
.sh-badges { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; }
.sh-badge {
    font-size: .66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    padding: 3px 9px;
    border-radius: 999px;
    font-family: var(--sh-font);
}
.sh-badge-sub      { background: #eff6ff;  color: #1d4ed8; }
.sh-badge-onetime  { background: #f0fdf4;  color: #15803d; }
.sh-badge-bundle   { background: #fef3c7;  color: #92400e; }
.sh-badge-contact  { background: #f3f4f6;  color: #4b5563; }
.sh-badge-discount { background: #f0fdf4;  color: #15803d; }

.sh-svc-note {
    color: var(--sh-muted);
    font-size: .78rem;
    margin-top: 8px;
    font-style: italic;
}

/* ── Detail / Buy panel ────────────────────────────────────────── */
.sh-panel {
    margin-top: 24px;
    padding: 0;
    border: 1.5px solid var(--sh-primary-border);
    background: #fff;
    border-radius: var(--sh-radius);
    display: none;
    box-shadow: var(--sh-shadow);
    overflow: hidden;
    animation: shPanelIn .28s ease;
}
.sh-panel.visible { display: block; }

@keyframes shPanelIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Light green top header */
.sh-panel-top {
    background: var(--sh-primary-soft);
    border-bottom: 1px solid var(--sh-primary-border);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.sh-panel-top-label {
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .9px;
    text-transform: uppercase;
    color: var(--sh-primary);
    margin-bottom: 2px;
    font-family: var(--sh-font);
    display: flex;
    align-items: center;
    gap: 4px;
}
.sh-panel-name {
    font-size: .95rem;
    font-weight: 700;
    color: var(--sh-primary);
    font-family: var(--sh-font);
    line-height: 1.3;
}
.sh-panel-price {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--sh-primary);
    font-family: var(--sh-font);
    line-height: 1.1;
    margin-left: auto;
    white-space: nowrap;
}

/* White body below the header */
.sh-panel-body {
    padding: 22px 26px 24px;
}

/* Trial notice */
.sh-trial-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    margin-bottom: 16px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    color: #92400e;
    font-size: .83rem;
    font-family: var(--sh-font);
}

/* Billing summary */
.sh-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    padding: 0;
    border: 1px solid var(--sh-border);
    border-radius: var(--sh-radius-sm);
    margin-bottom: 18px;
    overflow: hidden;
}
.sh-summary > div {
    flex: 1;
    min-width: 100px;
    padding: 12px 16px;
    border-right: 1px solid var(--sh-border);
    background: var(--sh-card-2);
}
.sh-summary > div:last-child { border-right: 0; }
.sh-summary small {
    display: block;
    font-size: .63rem;
    text-transform: uppercase;
    letter-spacing: .7px;
    color: var(--sh-muted);
    margin-bottom: 4px;
    font-family: var(--sh-font);
}
.sh-summary strong {
    font-size: .88rem;
    color: var(--sh-text);
    font-family: var(--sh-font);
    font-weight: 700;
}

/* "What's Included" panel */
.sh-included {
    margin-bottom: 18px;
    padding: 16px 18px;
    background: #fef9ed;
    border: 1px solid rgba(245, 158, 11, .3);
    border-radius: var(--sh-radius-sm);
}
.sh-included-label {
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: #92400e;
    margin-bottom: 10px;
    font-family: var(--sh-font);
}
.sh-included-body {
    font-size: .88rem;
    color: var(--sh-muted);
    line-height: 1.7;
}

.sh-panel-note {
    font-size: .82rem;
    color: var(--sh-muted);
    font-style: italic;
    margin-bottom: 16px;
}

.sh-buy-btn {
    width: 100%;
    padding: 15px 20px;
    border: 0;
    border-radius: var(--sh-radius-sm);
    background: var(--sh-primary);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .3px;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
    font-family: var(--sh-font);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-bottom: 14px;
}
.sh-buy-btn i { font-size: 1.1rem; }
.sh-buy-btn:hover {
    background: var(--sh-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(45, 134, 83, .35);
}
.sh-buy-btn:active { transform: translateY(0); box-shadow: none; }

/* Trust badges row */
.sh-trust-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px 18px;
}
.sh-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: .72rem;
    color: var(--sh-muted);
    font-family: var(--sh-font);
}
.sh-trust-item i { color: var(--sh-primary); font-size: .82rem; }

/* ── Overview / info block ─────────────────────────────────────── */
.sh-info-block {
    margin-top: 40px;
    padding: 26px;
    border: 1px solid var(--sh-border);
    border-radius: var(--sh-radius);
    background: #fff;
    box-shadow: var(--sh-shadow);
}
.sh-info-block h3 {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--sh-muted);
    margin-bottom: 14px;
    font-family: var(--sh-font);
}
.sh-info-block p {
    color: var(--sh-muted);
    line-height: 1.75;
    margin: 0;
    font-size: .92rem;
}

/* ── Empty state ───────────────────────────────────────────────── */
.sh-empty {
    text-align: center;
    padding: 60px 20px;
    border: 1px dashed var(--sh-border);
    border-radius: var(--sh-radius);
    color: var(--sh-muted);
    background: #fff;
}
.sh-empty-icon {
    font-size: 2.2rem;
    opacity: .4;
    margin-bottom: 14px;
}

/* ── Embed code block ──────────────────────────────────────────── */
.sh-embed-block {
    margin-top: 32px;
    padding: 20px 22px;
    background: #fff;
    border: 1px solid var(--sh-border);
    border-radius: var(--sh-radius-sm);
    box-shadow: var(--sh-shadow);
}

.sh-embed-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.sh-embed-icon-wrap {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 10px;
    background: var(--sh-primary-soft);
    border: 1px solid var(--sh-primary-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--sh-primary);
    flex-shrink: 0;
}

.sh-embed-meta { flex: 1; min-width: 0; }

.sh-embed-title {
    font-size: .9rem;
    font-weight: 700;
    color: var(--sh-text);
    font-family: var(--sh-font);
    margin-bottom: 2px;
}

.sh-embed-subtitle {
    font-size: .75rem;
    color: var(--sh-muted);
    font-family: var(--sh-font);
}

.sh-embed-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border: 1.5px solid var(--sh-primary-border);
    border-radius: 8px;
    background: var(--sh-primary-soft);
    color: var(--sh-primary);
    font-size: .8rem;
    font-weight: 700;
    font-family: var(--sh-font);
    cursor: pointer;
    transition: background .18s, border-color .18s, color .18s, box-shadow .18s;
    flex-shrink: 0;
    white-space: nowrap;
}
.sh-embed-copy-btn:hover {
    background: var(--sh-primary);
    border-color: var(--sh-primary);
    color: #fff;
    box-shadow: 0 4px 14px rgba(45, 134, 83, .22);
}
.sh-embed-copy-btn--done,
.sh-embed-copy-btn--done:hover {
    background: var(--sh-primary);
    border-color: var(--sh-primary);
    color: #fff;
}

.sh-embed-code-wrap {
    background: var(--sh-primary);
    border-radius: 8px;
    padding: 14px 16px;
    overflow-x: auto;
}
.sh-embed-code-wrap code {
    display: block;
    font-size: .75rem;
    color: #fff!important;
    word-break: break-all;
    line-height: 1.7;
    font-family: 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
    white-space: pre-wrap;
    background: transparent!important;
}

/* Fix container overflow for subcategory tabs */
.container { overflow: visible !important; }

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 767px) {
    .sh-page { padding-top: 24px; }
    .sh-hero { padding: 16px 18px; gap: 12px; }
    .sh-hero-stats { width: 100%; justify-content: flex-start; }
    .sh-cat-grid,
    .sh-svc-grid { grid-template-columns: 1fr; }
    .sh-tabs-wrap { padding-bottom: 8px; }
    .sh-panel-top { padding: 18px 18px 16px; }
    .sh-panel-body { padding: 16px 18px 18px; }
    .sh-panel-price { font-size: 1.6rem; }
    .sh-section-title { font-size: 1.15rem; }
    .sh-summary > div { min-width: 80px; padding: 10px 12px; }
    .sh-embed-header { flex-wrap: wrap; }
    .sh-embed-copy-btn { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
    .sh-hero { padding: 14px 16px; }
    .sh-hero-icon { width: 38px; height: 38px; font-size: 1.1rem; border-radius: 10px; }
    .sh-title { font-size: 1.1rem; }
    .sh-cat-footer { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ═══════════════════════════════════════════════════════════════
   HERO — right-side product image
   ═══════════════════════════════════════════════════════════════ */
.sh-hero-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    flex-shrink: 0;
}

.sh-hero-img-wrap {
    width: 180px;
    height: 110px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--sh-border);
    box-shadow: var(--sh-shadow);
    flex-shrink: 0;
}

.sh-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ═══════════════════════════════════════════════════════════════
   SERVICES COUNT LABEL
   ═══════════════════════════════════════════════════════════════ */
.sh-services-count {
    font-size: .78rem;
    font-weight: 600;
    color: var(--sh-muted);
    margin-bottom: 14px;
    font-family: var(--sh-font);
}

/* ═══════════════════════════════════════════════════════════════
   SERVICE CARD — image-based layout (overrides base styles)
   ═══════════════════════════════════════════════════════════════ */

/* ── Image wrapper ─────────────────────────────────────────────── */
.sh-svc-img-wrap {
    position: relative;
    height: 170px;
    overflow: hidden;
    background: var(--sh-card-2);
    flex-shrink: 0;
}

.sh-svc-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

.sh-svc-card:hover .sh-svc-img-wrap img {
    transform: scale(1.05);
}

/* Gradient scrim for text legibility on image */
.sh-svc-img-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15,23,42,.52) 0%, transparent 55%);
    pointer-events: none;
}

/* Price overlay — bottom-left of image */
.sh-svc-price-overlay {
    position: absolute;
    bottom: 10px;
    left: 12px;
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 1px 6px rgba(0,0,0,.55);
    font-family: var(--sh-font);
    line-height: 1;
}

/* Type badge on image — top-right */
.sh-badge-on-img {
    position: absolute;
    top: 10px;
    right: 10px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* ── Card body ─────────────────────────────────────────────────── */
.sh-svc-body {
    position: relative;   /* anchor for the selected checkmark */
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Reposition selected-checkmark relative to .sh-svc-body */
.sh-svc-body .sh-svc-check {
    position: absolute;
    top: 12px;
    right: 12px;
}

/* Truncated description */
.sh-svc-desc-text {
    font-size: .8rem;
    color: var(--sh-muted);
    line-height: 1.55;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: var(--sh-font);
}

/* ── Card footer: type badge + cart icon ───────────────────────── */
.sh-svc-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--sh-border);
}

/* Cart icon — decorative, part of the button click area */
.sh-cart-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--sh-primary-soft);
    border: 1px solid var(--sh-primary-border);
    color: var(--sh-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    transition: background .18s, color .18s;
    pointer-events: none; /* card button handles all clicks */
}

.sh-svc-card:hover .sh-cart-icon,
.sh-svc-card.selected .sh-cart-icon {
    background: var(--sh-primary);
    color: #fff;
}

/* ── Hero — right-side image (fills the stat-chip area, edge-to-edge) ── */
.sh-hero-right--img {
    display: flex;
    position: relative;
    margin: 0;
    align-self: stretch;
}

.sh-hero-right--img img {
    width: 220px;
    max-height: 220px;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

/* Stat chip overlaid on the image — top-right corner */
.sh-hero-right--img .sh-hero-stats {
    position: absolute;
    top: 10px;
    right: 10px;
    flex-direction: column;
    gap: 6px;
}

.sh-hero-right--img .sh-hero-stat {
    background: rgba(255,255,255,.82);
    backdrop-filter: blur(6px);
    border-color: rgba(255,255,255,.5);
}

/* ── Responsive additions ──────────────────────────────────────── */
@media (max-width: 767px) {
    .sh-hero-right { align-items: flex-start; }
    .sh-hero-img-wrap { width: 100%; height: 150px; }
    .sh-svc-img-wrap { height: 150px; }

    /* On mobile: image goes full-width below the text */
    .sh-hero-right--img {
        margin: 0 -18px -16px -18px;
        width: calc(100% + 36px);
        align-self: auto;
    }
    .sh-hero-right--img img {
        width: 100%;
        height: 160px;
        border-radius: 0 0 12px 12px;
    }
    .sh-hero-right--img .sh-hero-stats {
        top: 8px;
        right: 8px;
    }
}

@media (max-width: 480px) {
    .sh-svc-img-wrap { height: 130px; }
    .sh-svc-price-overlay { font-size: 1.05rem; }
}

/* ═══════════════════════════════════════════════════════════════
   SHOP INDEX PAGE
   ═══════════════════════════════════════════════════════════════ */
.shop-page { padding: 8px 0 40px; }

.shop-page-header { margin-bottom: 20px; }
.shop-page-title  { font-size: 21px; font-weight: 800; color: var(--g800); margin: 0; }
.shop-page-sub    { font-size: 12.5px; color: var(--g400); margin-top: 2px; }

.svc-tab-bar {
    display: flex; gap: 8px; margin-bottom: 20px;
    align-items: center; flex-wrap: wrap;
}
.svc-tab-btn {
    padding: 8px 18px; border-radius: 8px;
    border: 1px solid var(--g200); background: #fff;
    color: var(--g600); font-weight: 600; font-size: 13.5px;
    cursor: pointer; font-family: var(--font); transition: all .15s;
    line-height: 1.3;
}
.svc-tab-btn:hover:not(.active) { border-color: var(--green); color: var(--green); }
.svc-tab-btn.active { background: var(--green); color: #fff; border-color: var(--green); }

.svc-layout { display: flex; gap: 22px; align-items: flex-start; }

.svc-sidebar {
    width: 200px; flex-shrink: 0;
    background: #fff; border: 1px solid var(--g200);
    border-radius: 12px; padding: 16px 14px;
    top: 80px;
}
.svc-sidebar-title {
    display: flex; align-items: center; gap: 6px;
    margin-bottom: 14px; font-weight: 700; font-size: 14px; color: var(--g800);
}
.svc-sidebar-label {
    font-weight: 700; font-size: 10px; color: var(--g500);
    text-transform: uppercase; letter-spacing: .5px; margin-bottom: 10px;
}
.svc-filter-list { display: flex; flex-direction: column; gap: 1px; }

.svc-product-btn {
    display: flex; align-items: center; gap: 7px; width: 100%;
    padding: 6px 8px; border: none; background: none;
    font-size: 12.5px; color: var(--g700); text-align: left;
    cursor: pointer; border-radius: 6px; transition: background .1s;
    font-family: var(--font); line-height: 1.4;
}
.svc-product-btn:hover { background: var(--g50); }
.svc-product-btn.active {
    background: var(--green-l); color: var(--green); font-weight: 600;
}
.svc-product-btn .svc-chk {
    flex-shrink: 0; width: 14px; height: 14px;
    border: 1.5px solid var(--g300); border-radius: 3px;
    display: inline-flex; align-items: center; justify-content: center;
    transition: all .1s; background: #fff;
}
.svc-product-btn.active .svc-chk {
    background: var(--green); border-color: var(--green);
}
.svc-product-btn.active .svc-chk::after {
    content: ''; display: block;
    width: 5px; height: 8px;
    border: 2px solid #fff; border-top: none; border-left: none;
    transform: rotate(45deg) translateY(-1px);
}
.svc-clear-btn {
    margin-top: 12px; width: 100%; padding: 6px; border-radius: 6px;
    border: 1px solid var(--g200); background: none; font-size: 11.5px;
    color: var(--g500); cursor: pointer; font-family: var(--font);
    transition: all .12s;
}
.svc-clear-btn:hover { border-color: var(--red); color: var(--red); }

.svc-main { flex: 1; min-width: 0; }
.svc-search-bar {
    background: #fff; border: 1px solid var(--g200); border-radius: 10px;
    padding: 9px 14px; margin-bottom: 14px;
    display: flex; gap: 8px; align-items: center;
}
.svc-search-bar input {
    border: none; background: transparent; flex: 1;
    font-size: 14px; outline: none; font-family: var(--font); color: var(--g700);
}
.svc-search-bar input::placeholder { color: var(--g400); }
.svc-search-clear {
    border: none; background: none; cursor: pointer;
    color: var(--g400); font-size: 18px; line-height: 1; padding: 0;
}
.svc-search-clear:hover { color: var(--g700); }
.svc-count { font-size: 13px; color: var(--g500); margin-bottom: 16px; }

.svc-section { margin-bottom: 36px; }
.svc-section-header {
    margin: 0 0 4px; padding-bottom: 8px;
    border-bottom: 3px solid var(--green);
}
.svc-section-title {
    font-size: 18px; font-weight: 800; color: var(--g800);
    margin: 0; line-height: 1.2;
}

.svc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px; margin-top: 16px;
}

.svc-card {
    background: #fff; border: 1px solid var(--g200);
    border-radius: 12px; padding: 18px 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
    display: flex; flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.svc-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(45,134,83,.13);
    border-color: rgba(45,134,83,.28);
}
.svc-card-price-row { margin-bottom: 6px; min-height: 28px; }
.svc-card-price { font-size: 20px; font-weight: 800; color: var(--green); }
.svc-card-freq  { font-size: 12px; color: var(--g400); margin-left: 5px; }
.svc-card-name  {
    font-size: 14.5px; font-weight: 700; color: var(--g800);
    margin: 0 0 6px; line-height: 1.35;
}
.svc-card-desc  {
    font-size: 12.5px; color: var(--g500);
    margin-bottom: 12px; line-height: 1.55; flex: 1;
}
.svc-card-cat {
    background: var(--g100); border-radius: 5px;
    padding: 3px 8px; font-size: 11px; color: var(--g600);
    font-weight: 500; display: inline-block; margin-bottom: 14px;
}
.svc-card-actions { display: flex; gap: 8px; align-items: center; }
.svc-view-btn {
    flex: 1; padding: 9px 12px; border-radius: 8px;
    background: var(--green); color: #fff; border: none;
    font-weight: 600; font-size: 13px; cursor: pointer;
    font-family: var(--font); text-decoration: none;
    display: inline-flex; align-items: center;
    justify-content: center; gap: 4px; transition: opacity .15s;
}
.svc-view-btn:hover { opacity: .88; color: #fff; text-decoration: none; }
.svc-cart-btn {
    width: 38px; height: 38px; border-radius: 8px;
    border: 1px solid var(--g200); background: #fff;
    cursor: pointer; display: inline-flex; align-items: center;
    justify-content: center; flex-shrink: 0;
    text-decoration: none; color: var(--g500);
    font-size: 16px; transition: all .15s;
}
.svc-cart-btn:hover { border-color: var(--green); background: var(--green-l); color: var(--green); }
.svc-cart-btn.added  { border-color: var(--green); background: var(--green); color: #fff; }

.cart-toast {
    position: fixed; bottom: 24px; right: 24px; z-index: 9999;
    background: #1a1a1a; color: #fff;
    padding: 12px 18px; border-radius: 10px;
    font-size: 13.5px; font-weight: 500;
    display: flex; align-items: center; gap: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,.25);
    transform: translateY(80px); opacity: 0;
    transition: transform .3s ease, opacity .3s ease;
    pointer-events: none;
}
.cart-toast.show { transform: translateY(0); opacity: 1; pointer-events: auto; }
.cart-toast a { color: var(--green); font-weight: 600; text-decoration: none; margin-left: 4px; }
.cart-toast a:hover { text-decoration: underline; }

.svc-empty {
    text-align: center; padding: 60px 0;
    color: var(--g400); font-size: 14px;
}

@media (max-width: 767px) {
    .svc-layout  { flex-direction: column; }
    .svc-sidebar { width: 100%; position: static; }
    .svc-grid    { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .svc-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════
   CART PAGE
   ═══════════════════════════════════════════════════════════════ */
.cart-page { padding: 8px 0 48px; }

.cart-layout { display: flex; gap: 24px; align-items: flex-start; }
.cart-main   { flex: 1; min-width: 0; }
.cart-aside  { width: 300px; flex-shrink: 0; }

.cart-heading-row {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 20px;
}
.cart-heading { font-size: 22px; font-weight: 800; color: var(--g800); margin: 0; }
.cart-clear-all {
    background: none; border: none; color: var(--g400);
    font-size: 13px; cursor: pointer; font-family: var(--font);
    padding: 0; transition: color .15s;
}
.cart-clear-all:hover { color: #ef4444; }

.cart-item {
    background: #fff; border: 1px solid var(--g200);
    border-radius: 12px; padding: 18px 20px;
    display: flex; align-items: center; gap: 16px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
    transition: box-shadow .2s;
}
.cart-item:hover { box-shadow: 0 3px 12px rgba(0,0,0,.08); }

.cart-item-body { flex: 1; min-width: 0; }
.cart-item-name {
    font-size: 15px; font-weight: 700; color: var(--g800);
    margin: 0 0 3px; line-height: 1.3;
}
.cart-item-sub  { font-size: 12.5px; color: var(--g500); margin-bottom: 10px; }
.cart-item-price-row { display: flex; align-items: center; gap: 10px; }
.cart-item-price { font-size: 20px; font-weight: 800; color: var(--green); }
.cart-item-qty   { font-size: 13px; color: var(--g400); }

.cart-remove-icon {
    background: none; border: none; color: var(--g300);
    font-size: 18px; cursor: pointer; padding: 4px;
    transition: color .15s; flex-shrink: 0;
    display: inline-flex; align-items: center;
}
.cart-remove-icon:hover { color: #ef4444; }

.cart-summary {
    background: #fff; border: 1px solid var(--g200);
    border-radius: 14px; padding: 22px 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
    position: sticky; top: 80px;
}
.cart-summary-title {
    font-size: 16px; font-weight: 800; color: var(--g800);
    margin-bottom: 18px;
}
.cart-summary-row {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 13.5px; color: var(--g600); margin-bottom: 12px;
}
.cart-summary-row span:last-child { font-weight: 600; color: var(--g700); }

.cart-summary-divider { border: none; border-top: 1px solid var(--g200); margin: 14px 0; }

.cart-summary-total {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 16px; font-weight: 800; color: var(--g800);
    margin-bottom: 18px;
}
.cart-summary-total-price { color: var(--green); font-size: 18px; }

.cart-checkout-btn {
    display: block; width: 100%; padding: 13px;
    background: var(--green); color: #fff; border: none;
    border-radius: 10px; font-size: 14px; font-weight: 700;
    font-family: var(--font); cursor: pointer; text-align: center;
    text-decoration: none; transition: opacity .15s; margin-bottom: 12px;
}
.cart-checkout-btn:hover { opacity: .88; color: #fff; text-decoration: none; }

.cart-continue-link {
    display: block; text-align: center; font-size: 13px;
    color: var(--g500); text-decoration: none; transition: color .15s;
}
.cart-continue-link:hover { color: var(--green); text-decoration: none; }

.cart-empty {
    text-align: center; padding: 80px 0; color: var(--g400);
}
.cart-empty i { font-size: 52px; display: block; margin-bottom: 16px; color: var(--g300); }
.cart-empty p { font-size: 15px; margin-bottom: 20px; }
.cart-empty a {
    background: var(--green); color: #fff; border-radius: 9px;
    padding: 11px 28px; font-weight: 700; font-size: 14px;
    text-decoration: none; display: inline-block; transition: opacity .15s;
}
.cart-empty a:hover { opacity: .88; color: #fff; text-decoration: none; }

@media (max-width: 767px) {
    .cart-layout { flex-direction: column; }
    .cart-aside  { width: 100%; position: static; }
}

/* ═══════════════════════════════════════════════════════════════
   CART CHECKOUT PAGE
   ═══════════════════════════════════════════════════════════════ */

/* ── Cart Checkout Layout ────────────────────────────────────── */
.cart-page {
    margin: 0 auto;
}
.cart-checkout-wrap {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 28px;
    padding: 24px 4px;
    align-items: start;
}
@media (max-width: 900px) {
    .cart-checkout-wrap { grid-template-columns: 1fr; }
    .cart-checkout-aside { order: -1; }
}

/* ── Page header ─────────────────────────────────────────────── */
.billing-page-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 4px 16px;
    border-bottom: 2px solid var(--green);
    margin-bottom: 24px;
}
.billing-page-header .page-title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -.3px;
    color: var(--green);
}
.billing-page-header .page-company-tag {
    background: var(--green);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 99px;
    letter-spacing: .3px;
}
.billing-page-header a {
    color: var(--green) !important;
    font-weight: 500;
}

/* ── Card shells ─────────────────────────────────────────────── */
.co-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 28px;
    margin-bottom: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.co-card:last-child { margin-bottom: 0; }
.co-card-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: var(--green);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 8px;
}
.co-card-title i { font-size: 15px; }

/* ── Form fields ─────────────────────────────────────────────── */
.co-form .form-group { margin-bottom: 16px; }
.co-form label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #6b7280;
    margin-bottom: 6px;
    display: block;
}
.co-form .form-control {
    background: #f9fafb;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    color: #111827;
    font-size: 14px;
    padding: 10px 14px;
    width: 100%;
    transition: border-color .15s;
}
.co-form .form-control:focus {
    border-color: var(--green);
    outline: none;
    box-shadow: 0 0 0 3px rgba(45,134,83,.15);
    background: #fff;
}
.co-form .form-control.is-valid   { border-color: #22c55e; }
.co-form .form-control.is-invalid { border-color: #ef4444; }
.co-form .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ── Order items list ────────────────────────────────────────── */
.co-items { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }

.co-item {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.co-item-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}
.co-item-icon.sub-monthly  { background: rgba(45,134,83,.12); color: var(--green); }
.co-item-icon.sub-yearly   { background: rgba(16,185,129,.15);  color: #34d399; }
.co-item-icon.sub-quarterly{ background: rgba(245,158,11,.15);  color: #fbbf24; }
.co-item-icon.one-time     { background: rgba(239,68,68,.12);   color: #f87171; }

.co-item-body { flex: 1; min-width: 0; }
.co-item-name {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 3px;
    color: #111827;
}
.co-item-meta { font-size: 12px; color: #6b7280; }

.co-item-price { flex-shrink: 0; text-align: right; }
.co-item-price .amount {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
}
.co-item-price .cycle {
    font-size: 11px;
    color: var(--text-muted, #888);
}
.co-item-discount-badge {
    display: inline-block;
    background: rgba(45,134,83,.15);
    color: var(--green);
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 4px;
    margin-left: 6px;
}

/* ── Totals table ────────────────────────────────────────────── */
.co-totals { border-top: 1px solid #e5e7eb; padding-top: 16px; }
.co-totals-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    padding: 5px 0;
    color: #6b7280;
}
.co-totals-row.total-row {
    font-size: 17px;
    font-weight: 700;
    color: #111827;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}
.co-totals-row .label { display: flex; align-items: center; gap: 6px; }

/* ── Payment section ─────────────────────────────────────────── */
.co-payment-methods { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.co-method-tab {
    border: 1.5px solid #d1d5db;
    border-radius: 10px;
    overflow: hidden;
    transition: border-color .15s;
}
.co-method-tab.active { border-color: var(--green); }
.co-method-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    cursor: pointer;
    user-select: none;
}
.co-method-header input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    margin: 0;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    flex-shrink: 0;
    cursor: pointer;
    position: relative;
    transition: border-color .15s;
}
.co-method-header input[type="radio"]:checked { border-color: var(--green); }
.co-method-header input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--green);
    transform: translate(-50%, -50%);
}
.co-method-label { font-size: 14px; font-weight: 600; color: #111827; }
.co-method-logo {
    margin-left: auto;
    height: 22px;
    opacity: .8;
}
.co-method-body {
    display: none;
    padding: 16px;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
}
.co-method-tab.active .co-method-body { display: block; }

/* ── Stripe card element ─────────────────────────────────────── */
#co-card-element {
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 12px 14px;
    transition: border-color .15s;
}
#co-card-element.StripeElement--focus { border-color: var(--green); }

/* ── Badges & trust row ──────────────────────────────────────── */
.co-trust-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px 12px;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 14px;
}
.co-trust-item { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.co-trust-row i { color: var(--green); }

/* ── Checkboxes ──────────────────────────────────────────────── */
.co-check-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #374151;
    margin-bottom: 10px;
}
.co-check-row input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    margin-top: 2px;
    border: 1.5px solid #d1d5db;
    border-radius: 4px;
    flex-shrink: 0;
    cursor: pointer;
    position: relative;
    transition: background .15s, border-color .15s;
}
.co-check-row input[type="checkbox"]:checked { background: var(--green); border-color: var(--green); }
.co-check-row input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.co-check-row a { color: var(--green); }

/* ── Submit button ───────────────────────────────────────────── */
.co-submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--green), var(--green-d));
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .3px;
    cursor: pointer;
    transition: opacity .15s, transform .1s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.co-submit-btn:hover   { opacity: .9; }
.co-submit-btn:active  { transform: scale(.99); }
.co-submit-btn:disabled{ opacity: .5; cursor: not-allowed; }

/* ── Error banner ────────────────────────────────────────────── */
.co-error-banner {
    background: rgba(239,68,68,.1);
    border: 1px solid rgba(239,68,68,.3);
    border-radius: 8px;
    padding: 12px 16px;
    color: #f87171;
    font-size: 13px;
    margin-bottom: 14px;
    display: none;
}
.co-error-banner ul { margin: 6px 0 0 16px; padding: 0; }

/* ── Validation messages ─────────────────────────────────────── */
.field-error {
    font-size: 11px;
    color: #f87171;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.field-ok { font-size: 11px; color: #22c55e; margin-top: 4px; display: flex; align-items: center; gap: 4px; }

/* ── Progress steps ──────────────────────────────────────────── */
.co-progress-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    padding: 8px 0;
    color: #6b7280;
    border-bottom: 1px solid #e5e7eb;
}
.co-progress-item:last-child { border-bottom: none; }
.co-progress-item .pi-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid currentColor;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    flex-shrink: 0;
}
.co-progress-item.done  { color: #22c55e; }
.co-progress-item.doing { color: var(--green); }

/* ── Spinner keyframe ───────────────────────────────────────── */
@keyframes spin { to { transform: rotate(360deg); } }
