/* =========================================================
   CigaretaJinak – Checkout details v6
   Krok 3 / Informace o vás
   Pouze levá část formuláře.
   Bez zásahu do pořadí, validace, checkboxů nebo JS.
   ========================================================= */

body.ordering-process.in-krok-2 #checkoutContent{
    --cj-checkout-green: #38bc51;
    --cj-checkout-border: #dddddd;
    --cj-checkout-text: #262626;
    --cj-checkout-muted: #707070;
}

/* Sekce formuláře – bez těžkých boxů */
body.ordering-process.in-krok-2 #checkoutContent fieldset.box{
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Nadpisy sekcí */
body.ordering-process.in-krok-2 #checkoutContent h2{
    margin-top: 30px;
    margin-bottom: 18px;
    font-size: 22px;
    line-height: 1.25;
    font-weight: 800;
    color: var(--cj-checkout-text);
}

body.ordering-process.in-krok-2 #checkoutContent .co-contact-information > h2{
    margin-top: 0;
}

/* Jednotné rozestupy polí */
body.ordering-process.in-krok-2 #checkoutContent .form-group{
    margin-bottom: 18px;
}

/* Label */
body.ordering-process.in-krok-2 #checkoutContent
.form-group.smart-label-wrapper > label{
    display: block;
    margin-bottom: 7px;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 600;
    color: #444;
}

/* Textové vstupy, e-mail, tel, select, textarea */
body.ordering-process.in-krok-2 #checkoutContent
.form-control{
    min-height: 46px;
    padding: 11px 14px;
    border: 1px solid var(--cj-checkout-border) !important;
    border-radius: 9px !important;
    background: #fff !important;
    box-shadow: none !important;
    color: var(--cj-checkout-text);
    transition:
        border-color .16s ease,
        box-shadow .16s ease,
        background-color .16s ease;
}

body.ordering-process.in-krok-2 #checkoutContent textarea.form-control{
    min-height: 110px;
    resize: vertical;
}

body.ordering-process.in-krok-2 #checkoutContent
.form-control:focus{
    border-color: var(--cj-checkout-green) !important;
    box-shadow: 0 0 0 3px rgba(56,188,81,.10) !important;
    outline: 0 !important;
}

body.ordering-process.in-krok-2 #checkoutContent
.form-control:disabled,
body.ordering-process.in-krok-2 #checkoutContent
select.form-control[disabled]{
    background: #f7f7f7 !important;
    color: #777 !important;
    opacity: 1;
}

/* Telefon */
body.ordering-process.in-krok-2 #checkoutContent
.phone-combined-input{
    border-radius: 9px;
}

body.ordering-process.in-krok-2 #checkoutContent
.phone-combined-input .country-flags{
    border-radius: 9px 0 0 9px !important;
}

body.ordering-process.in-krok-2 #checkoutContent
.form-control.short{
    min-height: 46px;
}

/* Povinná hvězdička */
body.ordering-process.in-krok-2 #checkoutContent
.required-asterisk::after{
    color: #d64545;
}

/* Pomocné texty */
body.ordering-process.in-krok-2 #checkoutContent
.additional-information,
body.ordering-process.in-krok-2 #checkoutContent
.form-control-wrapper--with-note,
body.ordering-process.in-krok-2 #checkoutContent
.form-legend{
    color: var(--cj-checkout-muted);
}

/* Jemnější odstup mezi hlavními sekcemi */
body.ordering-process.in-krok-2 #checkoutContent
.co-box + .co-box,
body.ordering-process.in-krok-2 #checkoutContent
.co-box + .co-box-additional{
    margin-top: 28px;
}


/* =========================================================
   FIX ZEMĚ
   Shoptet vykresluje skrytý select i vlastní textový výpis.
   Zobrazíme pouze textový výpis.
   ========================================================= */

/* Shoptet JS po načtení může odebrat třídu js-location--hidden.
   Proto necílíme na tuto dočasnou třídu, ale na stabilní prvky země. */
body.ordering-process.in-krok-2 #checkoutContent
label[for="billCountryId"],
body.ordering-process.in-krok-2 #checkoutContent
#billCountryId,
body.ordering-process.in-krok-2 #checkoutContent
#billCountryId + *,
body.ordering-process.in-krok-2 #checkoutContent
.form-control-wrapper:has(> #billCountryId){
    display: none !important;
}

body.ordering-process.in-krok-2 #checkoutContent
p.label.js-location{
    margin: 2px 0 5px;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 600;
    color: #444;
}

body.ordering-process.in-krok-2 #checkoutContent
.form-control-wrapper--with-note.js-location{
    margin-top: 0;
    color: #444;
}


/* =========================================================
   ZŮSTAŇME V KONTAKTU
   Bez zásahu do Shoptet checkboxu registrace.
   ========================================================= */

body.ordering-process.in-krok-2 #checkoutContent
.stay-in-touch{
    margin-top: 32px;
    padding: 20px 22px 18px !important;
    border: 1px solid #d8eadc !important;
    border-radius: 10px;
    background: #f8fcf9;
}

body.ordering-process.in-krok-2 #checkoutContent
.stay-in-touch h2{
    margin: 0 0 8px !important;
    font-size: 21px;
}

body.ordering-process.in-krok-2 #checkoutContent
.stay-in-touch h2::after{
    content: "Registrace vám umožní sledovat, editovat objednávku a příště zrychlí proces.";
    display: block;
    margin-top: 5px;
    font-size: 13px;
    line-height: 1.45;
    font-weight: 400;
    color: #707070;
}


/* Přihlášený zákazník: Shoptet registrační checkbox vůbec nevykreslí.
   Pokud tedy v bloku není #set-registration, celý blok už nemá smysl zobrazovat. */
body.ordering-process.in-krok-2 #checkoutContent
.stay-in-touch:not(:has(#set-registration)){
    display: none !important;
}

/* Newsletter v checkoutu nechceme zobrazovat. */
body.ordering-process.in-krok-2 #checkoutContent
.stay-in-touch .form-group:has(#sendNewsletter){
    display: none !important;
}

/* Nativní registrační checkbox a label Shoptetu NECHÁVÁME být.
   Jen upravíme rozestup celého řádku. */
body.ordering-process.in-krok-2 #checkoutContent
.stay-in-touch .form-group:has(#set-registration){
    margin: 14px 0 0 !important;
    padding: 0 !important;
}

/* Shoptet po zaškrtnutí odkrývá doplňkovou informaci.
   Necháme ji schovanou, aby řádek neměnil výšku a nerozpadal se. */
body.ordering-process.in-krok-2 #checkoutContent
#reg-info{
    display: none !important;
}

/* =========================================================
   MOBIL
   ========================================================= */

@media (max-width: 767px){
    body.ordering-process.in-krok-2 #checkoutContent h2{
        font-size: 20px;
        margin-top: 24px;
        margin-bottom: 15px;
    }

    body.ordering-process.in-krok-2 #checkoutContent .form-group{
        margin-bottom: 15px;
    }

    body.ordering-process.in-krok-2 #checkoutContent .form-control{
        min-height: 44px;
        padding: 10px 12px;
    }

    body.ordering-process.in-krok-2 #checkoutContent
    .stay-in-touch{
        padding: 18px 16px 12px !important;
    }
}
