/* =========================================================
   Clinexera — Pricing deck (light editorial, shadcn-inspired)
   White surfaces, near-black ink, hairline borders, wide carousel.
   Matches the site direction: light + black.
   ========================================================= */

.cxp {
    position: relative;
    width: 100%;
    background: #ffffff;
    color: #0a0a0a;
    padding: 72px 0 80px;
    font-family: inherit;
    overflow: hidden;
}

[dir="rtl"] .cxp {
    direction: rtl;
}

/* embedded decks (inside a custom outer section) drop their own chrome */
.cxp.cxp-embedded {
    background: transparent;
    padding: 0;
    overflow: visible;
}

.cxp-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Header ── */
.cxp-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 44px;
}

.cxp-title {
    font-size: clamp(28px, 4.5vw, 42px);
    font-weight: 600;
    letter-spacing: -1.2px;
    line-height: 1.12;
    color: #0a0a0a;
    margin: 0 0 14px;
}

.cxp-subtitle {
    font-size: clamp(14px, 1.6vw, 16px);
    color: #6b7280;
    max-width: 560px;
    line-height: 1.7;
    margin: 0;
}

/* ── Period / type toggle ── */
.cxp-toggle {
    display: flex;
    gap: 6px;
    margin-top: 30px;
    padding: 4px;
    border-radius: 999px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    width: fit-content;
    margin-inline: auto;
}

.cxp-toggle-btn {
    appearance: none;
    border: none;
    background: transparent;
    color: #6b7280;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    padding: 8px 18px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.cxp-toggle-btn:hover {
    color: #0a0a0a;
}

.cxp-toggle-btn.is-active,
.cxp-toggle-btn.active {
    background: #0a0a0a;
    color: #ffffff;
}

/* ── Carousel ── */
.cxp-carousel {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 12px;
}

.cxp-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 8px 4px 20px;
    cursor: grab;
    scroll-snap-type: x proximity;
}

.cxp-track::-webkit-scrollbar { display: none; }
.cxp-track.is-dragging { cursor: grabbing; scroll-behavior: auto; }

.cxp-card {
    position: relative;
    flex: 0 0 auto;
    width: min(320px, 82vw);
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #ececec;
    border-radius: 14px;
    padding: 26px 22px 22px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
    scroll-snap-align: start;
}

.cxp-card:hover {
    border-color: #cfcfcf;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.cxp-card.is-hidden { display: none; }

.cxp-featured {
    border: 1.5px solid #0a0a0a;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.08);
}

.cxp-popular {
    position: absolute;
    top: -11px;
    inset-inline-end: 18px;
    background: #0a0a0a;
    color: #ffffff;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
}

/* card head */
.cxp-name {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.2px;
    color: #0a0a0a;
    margin: 0 0 3px;
}

.cxp-desc {
    font-size: 12.5px;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

/* price */
.cxp-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 18px 0 2px;
    flex-wrap: wrap;
}

.cxp-price {
    font-size: 34px;
    font-weight: 600;
    letter-spacing: -1.2px;
    color: #0a0a0a;
    line-height: 1;
}

.cxp-price-was {
    font-size: 14px;
    color: #9ca3af;
    font-weight: 400;
}

.cxp-price-cur {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
}

.cxp-permonth {
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 12px;
}

.cxp-offer {
    font-size: 11.5px;
    font-weight: 500;
    color: #15803d;
    min-height: 16px;
    margin-bottom: 14px;
}

/* buttons */
.cxp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 42px;
    border-radius: 9px;
    font-size: 13.5px;
    font-weight: 500;
    text-decoration: none !important;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.08s ease;
    margin-bottom: 20px;
}

.cxp-btn:active { transform: scale(0.985); }
.cxp-btn i { font-size: 14px; }

[dir="rtl"] .cxp-btn i { transform: scaleX(-1); }

.cxp-btn-primary {
    background: #0a0a0a;
    color: #ffffff !important;
}

.cxp-btn-primary:hover {
    background: #000000;
    color: #ffffff !important;
}

.cxp-btn-ghost {
    background: transparent;
    color: #0a0a0a !important;
    border: 1px solid #e0e0e0;
}

.cxp-btn-ghost:hover {
    background: #f9fafb;
    color: #0a0a0a !important;
}

/* divider + features */
.cxp-divider {
    height: 1px;
    width: 100%;
    background: #f0f0f0;
    margin-bottom: 18px;
}

.cxp-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 13px;
    color: #374151;
}

.cxp-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
}

.cxp-features i {
    font-size: 14px;
    color: #0a0a0a;
    margin-top: 2px;
    flex-shrink: 0;
}

/* arrows */
.cxp-arrow {
    align-self: center;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #111111;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, opacity 0.15s ease;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.cxp-arrow:hover { background: #f5f5f7; }

/* note */
.cxp-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 36px;
    font-size: 13px;
    color: #9ca3af;
}

.cxp-note-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #d1d5db;
    flex-shrink: 0;
}

/* inline alerts (authed plans page) */
.cxp-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 14px;
}

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

.cxp-alert-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .cxp-arrow { display: none; }
    .cxp-track { padding-inline: 4px; }
}

/* Phones: drop the horizontal carousel entirely and stack the cards
   full-width so every plan is clearly visible and easy to tap. */
@media (max-width: 768px) {
    .cxp { padding: 48px 0 56px; }
    .cxp-wrap { padding: 0 16px; }
    .cxp-head { margin-bottom: 28px; }
    .cxp-title { letter-spacing: -0.8px; }

    .cxp-carousel {
        flex-direction: column;
        gap: 16px;
    }

    .cxp-track {
        flex-direction: column;
        flex-wrap: nowrap;
        overflow: visible;
        scroll-snap-type: none;
        gap: 16px;
        padding: 0;
    }

    .cxp-card {
        flex: 1 1 auto;
        width: 100%;
        scroll-snap-align: none;
        padding: 24px 20px 22px;
    }

    .cxp-arrow { display: none; }

    .cxp-toggle {
        max-width: 100%;
        width: 100%;
        overflow-x: auto;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
    }
}
