/* =========================================================================
   FABLE — skupna potrditvena polja na javnem delu (6. 10. 2026)
   Zaobljen kvadrat 18 px; ob označitvi črn z belo kljukico (kot
   .auth-btn-primary), v temnem načinu obratno. Velja za:
   - .auth-remember  (prijava, okno v glavi, magic_otp, prijava oglasa,
                      Fable GDPR: registracija in okno za privolitev)
   - .fbiz-check     (Fable BUSINESS: potrditev podjetja, samodejna obnova)
   - .sia2 .revopts / .revapply (Fable BUSINESS: pregled kataloga; samo
                      kvadratek, postavitev čipov ostane vtičnikova)
   - .fable-check    (splošen ovoj: <label class="fable-check"><input
                      type="checkbox"><span>besedilo</span></label>)
   Stikala (.fp-switch, .ffav-switch, role="switch", .fui-switch) niso
   zajeta. Naloži se za style-child.min.css, zato enaka specifičnost z
   !important premaga pravila teme in vtičnikov. Brez generatorja: datoteka
   se ureja neposredno, različico da filemtime (functions.php).
   ========================================================================= */

.auth-remember input[type="checkbox"],
.fbiz-check input[type="checkbox"],
.fable-check input[type="checkbox"],
.sia2 .revopts input[type="checkbox"],
.sia2 .revapply input[type="checkbox"] {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    position: relative;
    flex-shrink: 0 !important;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    border: 1.5px solid #c4c7cc !important;
    border-radius: 5px !important;
    background: #fff no-repeat center / 12px 12px !important;
    box-shadow: none !important;
    cursor: pointer;
    vertical-align: middle;
    transition: background-color .15s ease, border-color .15s ease;
}

.auth-remember input[type="checkbox"]::before,
.auth-remember input[type="checkbox"]::after,
.fbiz-check input[type="checkbox"]::before,
.fbiz-check input[type="checkbox"]::after,
.fable-check input[type="checkbox"]::before,
.fable-check input[type="checkbox"]::after,
.sia2 .revopts input[type="checkbox"]::before,
.sia2 .revopts input[type="checkbox"]::after,
.sia2 .revapply input[type="checkbox"]::before,
.sia2 .revapply input[type="checkbox"]::after {
    content: none !important;
    display: none !important;
}

.auth-remember input[type="checkbox"]:hover,
.fbiz-check input[type="checkbox"]:hover,
.fable-check input[type="checkbox"]:hover,
.sia2 .revopts input[type="checkbox"]:hover,
.sia2 .revapply input[type="checkbox"]:hover {
    border-color: #8a8d93 !important;
}

.auth-remember input[type="checkbox"]:checked,
.fbiz-check input[type="checkbox"]:checked,
.fable-check input[type="checkbox"]:checked,
.sia2 .revopts input[type="checkbox"]:checked,
.sia2 .revapply input[type="checkbox"]:checked {
    background-color: #111 !important;
    border-color: #111 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
}

.auth-remember input[type="checkbox"]:focus-visible,
.fbiz-check input[type="checkbox"]:focus-visible,
.fable-check input[type="checkbox"]:focus-visible,
.sia2 .revopts input[type="checkbox"]:focus-visible,
.sia2 .revapply input[type="checkbox"]:focus-visible {
    outline: 2px solid #0a66c2 !important;
    outline-offset: 2px !important;
}

.auth-remember input[type="checkbox"]:disabled,
.fbiz-check input[type="checkbox"]:disabled,
.fable-check input[type="checkbox"]:disabled,
.sia2 .revopts input[type="checkbox"]:disabled,
.sia2 .revapply input[type="checkbox"]:disabled {
    opacity: .45;
    cursor: not-allowed;
}

/* Razmik med poljem in besedilom; v vrsticah z več vrsticami besedila
   stoji polje ob prvi vrstici. */
.auth-remember { gap: 10px !important; }
.fbiz-check { gap: 10px; }
.fbiz-check input[type="checkbox"] { margin-top: 2px !important; }

.fable-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    float: none;
    clear: both;
    width: auto;
    margin: 10px 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    text-align: left;
    cursor: pointer;
}
.fable-check input[type="checkbox"] { margin-top: 2px !important; }
.fable-check span { float: none; width: auto; }

/* Temni način. dark-mode.css ima splošno html[data-theme="dark"]
   input[type="checkbox"] { background: … !important }, ki kot skrajšan zapis
   ponastavi velikost in položaj kljukice; tu so zato zapisani izrecno. */
html[data-theme="dark"] .auth-remember input[type="checkbox"],
html[data-theme="dark"] .fbiz-check input[type="checkbox"],
html[data-theme="dark"] .fable-check input[type="checkbox"],
html[data-theme="dark"] .sia2 .revopts input[type="checkbox"],
html[data-theme="dark"] .sia2 .revapply input[type="checkbox"] {
    background-color: transparent !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 12px 12px !important;
    border-color: #5f6670 !important;
}
html[data-theme="dark"] .auth-remember input[type="checkbox"]:hover,
html[data-theme="dark"] .fbiz-check input[type="checkbox"]:hover,
html[data-theme="dark"] .fable-check input[type="checkbox"]:hover,
html[data-theme="dark"] .sia2 .revopts input[type="checkbox"]:hover,
html[data-theme="dark"] .sia2 .revapply input[type="checkbox"]:hover {
    border-color: #8b929c !important;
}
html[data-theme="dark"] .auth-remember input[type="checkbox"]:checked,
html[data-theme="dark"] .fbiz-check input[type="checkbox"]:checked,
html[data-theme="dark"] .fable-check input[type="checkbox"]:checked,
html[data-theme="dark"] .sia2 .revopts input[type="checkbox"]:checked,
html[data-theme="dark"] .sia2 .revapply input[type="checkbox"]:checked {
    background-color: #f2f3f5 !important;
    border-color: #f2f3f5 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23111' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
}
