/* ============================================================
   CART CONFIGURATOR v2 — levý blok košíku
   Přidej tento blok do main.css (nebo do samostatného souboru)
   Používá existující CSS proměnné šablony Netband:
   --theme, --themendc, --header, --text, --border, --bg2, --white
   ============================================================ */

/* --- Wrapper --- */
.cart-configurator {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* --- Základní blok (karta) --- */
.cc-block {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 26px 30px;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.04);
}

/* --- Label nad blokem --- */
.cc-block-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--text2);
    margin-bottom: 6px;
}

/* --- Podtitul pod labelem --- */
.cc-block-sublabel {
    font-size: 14px;
    color: var(--text);
    margin-bottom: 18px;
}

/* ============================================================
   BLOK 1 — Vybraný tarif
   ============================================================ */
.cc-plan-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.cc-plan-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.cc-plan-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--header);
}

.cc-plan-badge {
    font-size: 12px;
    font-weight: 700;
    background-color: var(--theme);
    color: var(--white);
    border-radius: 5px;
    padding: 4px 10px;
    line-height: 1;
    letter-spacing: 0.02em;
}

.cc-plan-meta {
    font-size: 15px;
    color: var(--text2);
}

.cc-plan-pricing {
    text-align: right;
    flex-shrink: 0;
}

.cc-plan-price {
    font-size: 26px;
    font-weight: 700;
    color: var(--header);
    line-height: 1.2;
}

.cc-plan-period {
    font-size: 15px;
    font-weight: 400;
    color: var(--text2);
}

.cc-plan-change {
    display: inline-block;
    font-size: 13px;
    color: var(--theme);
    text-decoration: none;
    margin-top: 5px;
    transition: opacity 0.2s;
}

.cc-plan-change:hover {
    opacity: 0.75;
    color: var(--theme);
    text-decoration: underline;
}

/* ============================================================
   BLOK 2 & 3 — Možnosti (option cards)
   ============================================================ */
.cc-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cc-option {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    user-select: none;
}

.cc-option:hover {
    border-color: var(--border2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.cc-option.cc-option--selected {
    border: 2px solid var(--theme);
    padding: 15px 19px; /* kompenzace border 2px */
}

/* Muted varianta (vlastní router / bez TV) */
.cc-option.cc-option--muted {
    background: var(--bg2);
}

.cc-option.cc-option--muted .cc-option-name,
.cc-option.cc-option--muted .cc-option-desc {
    color: var(--text);
}

.cc-option.cc-option--muted.cc-option--selected {
    background: var(--white);
}

/* Levá část option */
.cc-option-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

/* Radio kruh */
.cc-radio {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1.5px solid var(--border2);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.15s;
    position: relative;
}

.cc-radio::after {
    content: '';
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: transparent;
    transition: background 0.15s;
}

.cc-radio.cc-radio--on {
    border-color: var(--theme);
    background: var(--theme);
}

.cc-radio.cc-radio--on::after {
    background: var(--white);
}

/* Texty v option */
.cc-option-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.cc-option-name {
    font-size: 20px;
    font-weight: 600;
    color: var(--header);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.cc-option-desc {
    font-size: 14px;
    color: var(--text2);
    display: block;
}

/* Badge "Nejoblíbenější" */
.cc-option-popular {
    font-size: 13px;
    font-weight: 700;
    background-color: #fff3e0;
    color: #b35c00;
    border-radius: 4px;
    padding: 2px 8px;
    letter-spacing: 0.03em;
    line-height: 1.6;
    white-space: nowrap;
}

/* Pravá část option — cena */
.cc-option-right {
    text-align: right;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
}

.cc-option-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--header);
    display: block;
}

.cc-option-price--free {
    color: #1a7a1a;
}

.cc-option-period {
    font-size: 12px;
    font-weight: 400;
    color: var(--text2);
}

.cc-option-old {
    font-size: 13px;
    color: var(--text2);
    text-decoration: line-through;
    display: block;
}

.cc-option-tag {
    font-size: 10px;
    font-weight: 700;
    background-color: #eaf6ea;
    color: #1a6e1a;
    border-radius: 4px;
    padding: 2px 8px;
    display: inline-block;
    line-height: 1.5;
    letter-spacing: 0.02em;
}

/* Oddělovač "nebo" */
.cc-options-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--text2);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 4px 0;
}

.cc-options-divider::before,
.cc-options-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* ============================================================
   Toggle switch (zachováno pro případné použití)
   ============================================================ */
.cc-toggle {
    position: relative;
    width: 42px;
    height: 24px;
    flex-shrink: 0;
    cursor: pointer;
}

.cc-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.cc-toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--border2);
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.cc-toggle-slider::before {
    content: '';
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    top: 3px;
    background: var(--white);
    border-radius: 50%;
    transition: transform 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.cc-toggle input:checked + .cc-toggle-slider {
    background: var(--theme);
}

.cc-toggle input:checked + .cc-toggle-slider::before {
    transform: translateX(18px);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 575px) {
    .cc-block {
        padding: 18px 16px;
    }

    .cc-plan-row {
        flex-direction: column;
        gap: 10px;
    }

    .cc-plan-pricing {
        text-align: left;
    }

    .cc-plan-name {
        font-size: 18px;
    }

    .cc-plan-price {
        font-size: 22px;
    }

    .cc-option {
        padding: 14px 14px;
    }

    .cc-option.cc-option--selected {
        padding: 13px 13px;
    }

    .cc-option-name {
        font-size: 15px;
    }
}

/* ============================================================
   UPSELL NUDGE — blok pod vybraným tarifem
   ============================================================ */
.cc-upsell {
    background: #0064cc;
    border-radius: 8px;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 16px;
}

.cc-upsell-left {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.cc-upsell-eyebrow {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.65);
}

.cc-upsell-main {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.cc-upsell-name {
    font-size: 22px;
    font-weight: 600;
    color: #ffffff;
}

.cc-upsell-speed {
    font-size: 11px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-radius: 4px;
    padding: 3px 9px;
    line-height: 1;
}

.cc-upsell-price {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
}

.cc-upsell-period {
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
}

.cc-upsell-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    flex-shrink: 0;
    display: inline-block;
}

.cc-upsell-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.65);
}

.cc-upsell-btn {
    flex-shrink: 0;
    background-color: #d6111e;
    color: #ffffff;
    border: none;
    border-radius: 7px;
    padding: 14px 22px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    display: inline-block;
    line-height: 1;
    transition: opacity 0.2s;
}

.cc-upsell-btn:hover {
    opacity: 0.88;
    color: #ffffff;
}

@media (max-width: 575px) {
    .cc-upsell {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .cc-upsell-btn {
        width: 100%;
        text-align: center;
    }

    .cc-upsell-name,
    .cc-upsell-price {
        font-size: 18px;
    }
}

/* ============================================================
   DOWNGRADE STRIP — zobrazí se po upgradu na NET 340
   ============================================================ */
.cc-upsell,
.cc-downgrade {
    transition: opacity 0.2s ease;
}

.cc-upsell.cc-hidden,
.cc-downgrade.cc-hidden {
    display: none;
}

.cc-downgrade {
    display: none;
    margin-top: 14px;
    padding: 11px 16px;
    background: var(--bg2);
    border-radius: 7px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.cc-downgrade-text {
    font-size: 13px;
    color: var(--text2);
}

.cc-downgrade-link {
    font-size: 13px;
    color: var(--text2);
    text-decoration: underline;
    white-space: nowrap;
    flex-shrink: 0;
    transition: color 0.15s;
}

.cc-downgrade-link:hover {
    color: var(--header);
}

/* Badge modrý pro NET 340 */
.cc-plan-badge--blue {
    background-color: #0064cc;
}
