/* OVERLAY (Przyciemnienie ekranu pod koszykiem) */
.flix-cart-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9999998; /* Poniżej koszyka, ale nad resztą strony */
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.flix-cart-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

/* WYSUWANY PANEL KOSZYKA */
.flix-cart-panel {
    position: fixed;
    top: 0; 
    right: 0;
    width: 100%;
    min-width: 420px;
    max-width: 500px;
    height: 100vh; /* 100% wysokości ekranu */
    background: rgba(15, 20, 25, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
    z-index: 9999999;
    display: flex;
    flex-direction: column;
    
    /* Ukrycie koszyka - wysunięty poza prawą krawędź ekranu */
    transform: translateX(100%); 
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.flix-cart-panel.is-open {
    transform: translateX(0); /* Wjeżdża na ekran */
}

/* Zabezpieczenie dla bardzo wąskich telefonów (poniżej 420px) */
@media (max-width: 450px) {
    .flix-cart-panel {
        min-width: 100vw; /* Na telefonie zajmuje po prostu cały ekran */
    }
}

/* NAGŁÓWEK */
.cart-header {
    padding: 25px 0px;
    padding-left: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
}

.cart-close-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.3s;
}
.cart-close-btn:hover { color: #fff; }

/* CIAŁO KOSZYKA (Sekcja przewijana) */
.cart-body {
    flex-grow: 1; /* Wypełnia całą dostępną przestrzeń między nagłówkiem a stopką */
    overflow-y: auto; /* Włącza przewijanie PIONOWE tylko dla tej sekcji */
    padding: 5px;
    padding-left: 20px;
    padding-right: 10px;
    
    /* Ukrywanie brzydkiego paska przewijania, ale zachowanie funkcjonalności */
    scrollbar-width: thin;
    scrollbar-color: rgba(48, 135, 255, 0.5) transparent;
}
.cart-body::-webkit-scrollbar { width: 6px; }
.cart-body::-webkit-scrollbar-thumb { background: rgba(48, 135, 255, 0.5); border-radius: 10px; }

/* STOPKA (Przyklejona) */
.cart-footer {
    padding: 25px 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.4);
}

.btn-checkout {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(48,135,255,0.25); 
    border: 1px solid rgba(48,135,255,0.6); 
    color: #bcd;
    margin: 0 0;
    padding: 12px 25px;
    font-size: 18px;
    font-weight: 200;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-checkout:hover {
    transform: scale(1.01);
    background: rgba(48,135,255,0.6); 
    border: 1px solid rgba(255,255,255,0.6);
}









/* LISTA PRODUKTÓW W KOSZYKU */
.cart-item {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 7px;
    margin-bottom: 5px;
    transition: background 0.3s;
}
.cart-item:hover { background: rgba(255, 255, 255, 0.08); }

.cart-item-icon {
    width: 40px; height: 40px;
    background: rgba(48, 135, 255, 0.2);
    border-radius: 4px;
    display: flex; justify-content: center; align-items: center;
    color: #3087ff; font-size: 20px;
    margin-right: 15px; flex-shrink: 0;
}

.cart-item-details { flex-grow: 1; }
.cart-item-title { color: #bcd; font-size: 15px; font-weight: 600; margin: 0 0 5px 0; }
.cart-item-price { color: #4cd964; font-size: 14px; font-weight: 400; margin: 0; opacity: 0.7;}
.cart-item-activation { color: rgba(255,255,255,0.5); font-size: 11px; margin: 2px 0 0 0; }

.cart-item-actions { display: flex; align-items: center; gap: 10px; }
.cart-qty-badge { background: rgba(255,255,255,0.1); color: #fff; padding: 2px 8px; border-radius: 4px; font-size: 12px; }
.cart-btn-remove { background: transparent; border: none; color: #ff3b30; cursor: pointer; font-size: 18px; padding: 5px; transition: transform 0.2s; }
.cart-btn-remove:hover { transform: scale(1.2); }

       /* ========================================= */
/* OPCJE DODATKOWE (Cross-sell) */
/* ========================================= */
.cart-addons-section {
    background: rgba(48, 135, 255, 0.05);
    border: 1px dashed rgba(48, 135, 255, 0.3);
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0;
}

.cart-addon-item {
    display: flex; 
    align-items: center; 
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.cart-addon-item:last-child { border-bottom: none; padding-bottom: 0; }

.cart-addon-text {
    flex-grow: 1;
    padding-right: 15px;
}

/* Szklany Checkbox */
.glass-checkbox {
    appearance: none; 
    -webkit-appearance: none;
    width: 26px; 
    height: 26px;
    background: rgba(0,0,0,0.5); 
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 6px; 
    cursor: pointer; 
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.glass-checkbox:checked { 
    background: #3087ff; 
    border-color: #3087ff; 
}
.glass-checkbox:checked::after {
    content: '\f00c'; /* FontAwesome Check */
    font-family: 'FontAwesome';
    color: white; 
    font-size: 14px; 
    position: absolute;
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%);
}

/* ========================================= */
/* HARMONOGRAM (Timeline) - NAPRAWIONY */
/* ========================================= */
.cart-timeline {
    position: relative;
    margin: 30px 0 20px 0;
    padding-left: 25px; /* Odstęp tekstu od linii */
    border-left: 2px solid rgba(255, 255, 255, 0.15); /* PIONOWA LINIA */
}

.timeline-step {
    position: relative;
    margin-bottom: 25px;
}
.timeline-step:last-child {
    margin-bottom: 0;
}

/* Magiczne kropki na osi czasu */
.timeline-step::before {
    content: '';
    position: absolute;
    left: -32px; /* Musi być idealnie dopasowane do padding-left i border-left */
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #3087ff; /* Domyślny niebieski */
    border: 2px solid #0f1419; /* Kolor tła panelu, tworzy "przerwę" w linii */
    box-shadow: 0 0 0 2px rgba(48, 135, 255, 0.3); /* Lekka poświata */
    z-index: 2;
}

/* Kolory kropek dla początku i końca */
.timeline-step.step-start::before { 
    background: #4cd964; 
    box-shadow: 0 0 0 2px rgba(76, 217, 100, 0.3);
}
.timeline-step.step-end::before { 
    background: #ff9500; 
    box-shadow: 0 0 0 2px rgba(255, 149, 0, 0.3);
}

.timeline-title { color: #def; font-size: 14px; font-weight: 100; margin: 0 0 5px 0; }
.timeline-desc { color: rgba(255,255,255,0.6); font-size: 12px; margin: 0; line-height: 1.4; }
.timeline-val { color: #abc; font-size: 18px; font-weight: 300; margin-top: 6px; }



/* Przycisk usuwania w kafelku */
.cart-btn-remove {
    opacity: 0.6;
    margin: 0 0;
    background: rgba(255, 59, 48, 0.1);
    border: 1px solid rgba(255, 59, 48, 0.2);
    color: #ff3b30;
    width: 32px; height: 32px;
    border-radius: 4px;
    cursor: pointer;
 /*   display: flex; align-items: center; justify-content: right; */
    position: relative;
    right: -5px;
    transition: all 0.2s;
}
.cart-btn-remove:hover { background: #ff3b30; color: #fff; transform: scale(1.1); }

/* Grupy w Timeline */
.timeline-period-tag {
    background: rgba(48, 135, 255, 0.2);
    color: #3087ff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 900;
    margin-right: 10px;
    text-transform: uppercase;
}

.timeline-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    color: #cde;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}



/* NAGŁÓWKI SEKCJI W KOSZYKU */
.cart-section-title {
    color: #3087ff;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 20px 0 10px 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.cart-section-title::after {
    content: '';
    flex-grow: 1;
    height: 1px;
    background: rgba(48, 135, 255, 0.2);
}

/* ETYKIETA TYPU PŁATNOŚCI */
.payment-type-tag {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
    margin-left: 5px;
}
.tag-lease { background: rgba(48, 135, 255, 0.2); color: #3087ff; }
.tag-purchase { background: rgba(76, 217, 100, 0.2); color: #4cd964; }


















 
/* ------ dane klienta do zamówienia ------ */


/* Kontener główny kreatora */
.checkout-wizard {
    padding: 10px 5px;
    animation: fadeIn 0.3s ease-out;
}

/* Header z nawigacją */
.checkout-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.btn-back-to-cart {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #abc;
    width: 40px; height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    margin-top: 5px;
    transition: all 0.2s;
}
.btn-back-to-cart:hover { background: rgba(255,255,255,0.15); transform: translateX(-3px); }

.checkout-title { color: #abc; font-size: 18px; font-weight: 100; margin: 0; }

/* Grupy formularzy */
.form-group { margin-bottom: 3px; }
.form-label { 
    display: block; color: rgba(255,255,255,0.4); 
    font-size: 11px; text-transform: uppercase; 
    letter-spacing: 1px; margin-bottom: 0px; margin-left: 5px;
}

.glass-input {
    width: 100%;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 8px 15px;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.glass-input:focus {
    border-color: #3087ff;
    box-shadow: 0 0 10px rgba(48, 135, 255, 0.2);
}

/* Sekcje kroków */
.wizard-step { display: none; }
.wizard-step.is-active { display: block; }

/* Checkboxy zgód */
.consent-row {
    display: flex; gap: 12px; margin-bottom: 15px;
    background: rgba(255,255,255,0.02);
    padding: 10px; border-radius: 8px;
}
.consent-text { color: rgba(255,255,255,0.7); font-size: 11px; line-height: 1.4; } 
 
 















 /* Sekcje Adresowe */
.address-section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 5px;
    margin-bottom: 10px;
}

.address-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.address-title {
    color: #3087ff;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-copy-addr {
    background: rgba(48, 135, 255, 0.1);
    border: 1px solid rgba(48, 135, 255, 0.3);
    color: #3087ff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.2s;
}
.btn-copy-addr:hover { background: #3087ff; color: #fff; }

/* Siatka dla pół */
.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.grid-3-col {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr; /* Ulica szersza, numery węższe */
    gap: 12px;
}








/* Pasek postępu (Stepper) */
.wizard-stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 0 10px;
}

.stepper-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.5);
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s;
    z-index: 2;
    position: relative;
}

.stepper-item.completed {
    background: rgba(48, 135, 255, 0.15);
    border-color: #3087ff;
    color: #3087ff;
    cursor: pointer;
}
.stepper-item.completed:hover {
    background: #3087ff;
    color: #fff;
    box-shadow: 0 0 10px rgba(48, 135, 255, 0.4);
}

.stepper-item.active {
    background: #3087ff;
    border-color: #3087ff;
    color: #fff;
    box-shadow: 0 0 12px rgba(48, 135, 255, 0.5);
}

.stepper-line {
    flex-grow: 1;
    height: 2px;
    background: rgba(255,255,255,0.1);
    margin: 0 8px;
    transition: all 0.3s;
}
.stepper-line.completed {
    background: #3087ff;
}

/* Globalny tytuł kroku */
.checkout-title-container {
    text-align: center;
    margin-bottom: 25px;
}
.checkout-main-title {
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

 
 
 
 
 
 
 
 
 
 
 /* Specyficzne style dla elementu SELECT z klasą glass-input */
select.glass-input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    /* Strzałka rozwijania - jasna, zakodowana w base64, żeby nie zginęła w ciemnym tle */
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23FFFFFF%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 15px top 50%;
    background-size: 12px auto;
    padding-right: 35px; /* Miejsce na strzałkę */
    cursor: pointer;
}

/* Style dla rozwiniętej listy opcji */
select.glass-input option {
    background-color: #1a1e23; /* Ciemne tło, pasujące do interfejsu */
    color: #ffffff; /* Jasny tekst */
    padding: 10px; /* Niektóre przeglądarki zignorują padding, ale warto go dodać */
    font-size: 14px;
}

/* Hover na opcji (działa głównie w Firefox, ale to dobra praktyka) */
select.glass-input option:hover,
select.glass-input option:focus,
select.glass-input option:active {
    background-color: #3087ff !important;
    color: #ffffff !important;
}

/* W przypadku, gdy opcja jest zablokowana lub domyślna (np. "Wybierz z listy...") */
select.glass-input option[value=""] {
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 