/* 2026-06-15 theme-safe fix consent checkboxu (jen 1.7+, NEpatri do shaim_gdpr.css ktere jede i na 1.6).
   Skryty absolutni nativni checkbox (span.custom-checkbox > input) se v nekterych sablonach (napr.
   ZOneTheme) bez position:relative na rodici roztahne pres celou stranku a zablokuje cely checkout.
   Mame dve cesty markupu: nativni FormField (motiv, input name=shaim_gdpr_active) i _thecheckout.tpl
   (wrapper .shaim_gdpr_checkbox). Na classic je to no-op (custom-checkbox uz relative je). */
#checkout .shaim_gdpr_checkbox .custom-checkbox { position: relative; }
#checkout .custom-checkbox:has(> input[name="shaim_gdpr_active"]) { position: relative; }

/* 2026-06-15 kosmeticky fallback (podmineny tridou shaim_cb_fix z shaim_gdpr_checkbox_fix.js) - aktivuje
   se JEN kdyz sablona nas widget nestyluje (skryty input zustal roztazeny). Skryje falesny material-icons
   checkbox a ukaze nativni checkbox vedle popisku + odkazu (cist). Standardni sablony tridu nedostanou,
   takze se u nich NIC nemeni. Flex = strukturne nezavisle (popisek je span.label i prosty label). */
#checkout .custom-checkbox.shaim_cb_fix {
    position: relative;
    display: flex;
    align-items: flex-start;
}
#checkout .custom-checkbox.shaim_cb_fix > span:first-of-type { display: none; }

#checkout .custom-checkbox.shaim_cb_fix > input[name="shaim_gdpr_active"] {
    position: static;
    opacity: 1;
    width: auto;
    height: auto;
    flex: 0 0 auto;
    margin: 2px 6px 0 0;
}
