/* ==================================================
   OXYBAG - KLIENTSKE CENTRUM v3
   Nastaveni uctu + bocni navigace
   Scope: pouze body.customer-page
   ================================================== */

body.customer-page {
    --oxy-account-accent: #de337f;
    --oxy-account-accent-dark: #c93678;
    --oxy-account-border: #dedede;
    --oxy-account-soft: #fff3f8;
    --oxy-account-text: #171717;
    --oxy-account-radius: 10px;
}

/* ==================================================
   FORMULAR - NASTAVENI UCTU
   ================================================== */

body.customer-page #register-form .co-box {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}

body.customer-page #register-form fieldset.box,
body.customer-page #register-form .box.box-sm,
body.customer-page #register-form .box.box-bg-default {
    display: block !important;
    width: 100% !important;
    margin: 0 0 22px !important;
    padding: 26px 24px 22px !important;
    border: 1px solid var(--oxy-account-border) !important;
    border-radius: var(--oxy-account-radius) !important;
    background: #fff !important;
    box-shadow: none !important;
}

body.customer-page #register-form fieldset.box::before,
body.customer-page #register-form fieldset.box::after,
body.customer-page #register-form .box.box-sm::before,
body.customer-page #register-form .box.box-sm::after {
    display: none !important;
    content: none !important;
}

body.customer-page #register-form fieldset > h2,
body.customer-page #register-form > h2 {
    margin: 0 0 18px !important;
}

body.customer-page #register-form .form-legend {
    margin-bottom: 14px !important;
}

/* Inputy / selecty / textarea */
body.customer-page #register-form input[type="text"],
body.customer-page #register-form input[type="email"],
body.customer-page #register-form input[type="password"],
body.customer-page #register-form input[type="tel"],
body.customer-page #register-form input[type="number"],
body.customer-page #register-form select,
body.customer-page #register-form textarea,
body.customer-page #register-form .form-control {
    min-height: 46px !important;
    padding: 10px 12px !important;
    border: 1px solid #d9d9d9 !important;
    border-radius: var(--oxy-account-radius) !important;
    background: #fff !important;
    color: var(--oxy-account-text) !important;
    box-shadow: none !important;
    outline: none !important;
    transition: border-color .18s ease, box-shadow .18s ease !important;
}

body.customer-page #register-form textarea,
body.customer-page #register-form textarea.form-control {
    min-height: 120px !important;
    resize: vertical !important;
}

body.customer-page #register-form input[type="text"]:focus,
body.customer-page #register-form input[type="email"]:focus,
body.customer-page #register-form input[type="password"]:focus,
body.customer-page #register-form input[type="tel"]:focus,
body.customer-page #register-form input[type="number"]:focus,
body.customer-page #register-form select:focus,
body.customer-page #register-form textarea:focus,
body.customer-page #register-form .form-control:focus {
    border-color: var(--oxy-account-accent) !important;
    box-shadow: 0 0 0 3px rgba(222, 51, 127, .10) !important;
}

body.customer-page #register-form .form-control-wrapper,
body.customer-page #register-form .js-validated-element-wrapper {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* Telefon */
body.customer-page #register-form .phone-combined-input {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

/* Checkbox / radio - drzi stejny kulaty system jako ostatni formulare. */
body.customer-page #register-form input[type="checkbox"],
body.customer-page #register-form input[type="radio"] {
    accent-color: var(--oxy-account-accent) !important;
}

/* Newsletter bez dalsiho boxu */
body.customer-page #register-form fieldset.stay-in-touch {
    margin: 0 0 22px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* Primarni CTA - Ulozit */
body.customer-page #register-form button[type="submit"],
body.customer-page #register-form input[type="submit"],
body.customer-page #register-form .btn.btn-primary,
body.customer-page #register-form .submit-wrapper .btn,
body.customer-page #register-form .submit-wrapper button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 44px !important;
    padding: 11px 20px !important;
    border: 1px solid var(--oxy-account-accent) !important;
    border-radius: var(--oxy-account-radius) !important;
    background: var(--oxy-account-accent) !important;
    color: #fff !important;
    box-shadow: none !important;
    text-decoration: none !important;
    transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease !important;
}

/* Ostatni sekundarni tlacitka v obsahu */
body.customer-page .content-inner .btn:not(.btn-conversion):not(.btn-primary),
body.customer-page .content-inner a.btn:not(.btn-conversion):not(.btn-primary) {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 42px !important;
    padding: 10px 18px !important;
    border: 1px solid var(--oxy-account-accent) !important;
    border-radius: var(--oxy-account-radius) !important;
    background: #fff !important;
    color: var(--oxy-account-text) !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

/* ==================================================
   BOCNI MENU KLIENTSKEHO CENTRA
   Dulezite: sidebar neni uvnitr #content, proto bez #content.
   ================================================== */

body.customer-page ul:has(> li.logout) {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

body.customer-page ul:has(> li.logout) > li {
    margin: 0 0 2px !important;
    padding: 0 !important;
    list-style: none !important;
}

body.customer-page ul:has(> li.logout) > li::before,
body.customer-page ul:has(> li.logout) > li::marker {
    display: none !important;
    content: none !important;
}

body.customer-page ul:has(> li.logout) > li:not(.logout) > a {
    display: block !important;
    padding: 7px 10px !important;
    border-radius: var(--oxy-account-radius) !important;
    color: #222 !important;
    text-decoration: none !important;
    transition: color .18s ease, background-color .18s ease !important;
}

body.customer-page ul:has(> li.logout) > li.active > a {
    background: var(--oxy-account-soft) !important;
    color: var(--oxy-account-accent) !important;
    font-weight: 700 !important;
}

body.customer-page ul:has(> li.logout) > li.logout {
    margin: 8px 0 10px !important;
}

/* Odhlasit se - prime zamerne cileni podle skutecneho HTML. */
body.customer-page a[data-testid="buttonSignout"],
body.customer-page li.logout > a.btn.btn-primary,
body.customer-page li.logout > a.btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 42px !important;
    padding: 10px 16px !important;
    border: 1px solid var(--oxy-account-accent) !important;
    border-radius: var(--oxy-account-radius) !important;
    background: #fff !important;
    background-image: none !important;
    color: var(--oxy-account-text) !important;
    -webkit-text-fill-color: var(--oxy-account-text) !important;
    box-shadow: none !important;
    text-decoration: none !important;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease !important;
}

/* ==================================================
   HOVER / FOCUS
   ================================================== */

@media (hover:hover) {
    body.customer-page #register-form button[type="submit"]:hover,
    body.customer-page #register-form input[type="submit"]:hover,
    body.customer-page #register-form .btn.btn-primary:hover,
    body.customer-page #register-form .submit-wrapper .btn:hover {
        border-color: var(--oxy-account-accent-dark) !important;
        background: var(--oxy-account-accent-dark) !important;
        color: #fff !important;
        box-shadow: 0 5px 14px rgba(222, 51, 127, .14) !important;
    }

    body.customer-page .content-inner .btn:not(.btn-conversion):not(.btn-primary):hover,
    body.customer-page .content-inner a.btn:not(.btn-conversion):not(.btn-primary):hover,
    body.customer-page a[data-testid="buttonSignout"]:hover,
    body.customer-page li.logout > a.btn:hover {
        border-color: var(--oxy-account-accent) !important;
        background: var(--oxy-account-accent) !important;
        color: #fff !important;
        -webkit-text-fill-color: #fff !important;
        box-shadow: 0 5px 14px rgba(222, 51, 127, .12) !important;
    }

    body.customer-page ul:has(> li.logout) > li:not(.logout):not(.active) > a:hover {
        background: var(--oxy-account-soft) !important;
        color: var(--oxy-account-accent) !important;
    }
}

body.customer-page a[data-testid="buttonSignout"]:focus-visible,
body.customer-page #register-form button[type="submit"]:focus-visible,
body.customer-page #register-form .btn:focus-visible {
    outline: 2px solid var(--oxy-account-accent) !important;
    outline-offset: 3px !important;
}

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

@media (max-width: 767px) {
    body.customer-page #register-form fieldset.box,
    body.customer-page #register-form .box.box-sm,
    body.customer-page #register-form .box.box-bg-default {
        padding: 20px 16px 18px !important;
    }

    body.customer-page #register-form input.form-control,
    body.customer-page #register-form select.form-control,
    body.customer-page #register-form textarea.form-control {
        width: 100% !important;
        max-width: 100% !important;
    }

    body.customer-page ul:has(> li.logout) > li:not(.logout) > a {
        padding: 8px 10px !important;
    }
}
