/* ==================================================
   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;
    }
}

/* ==================================================
   OXYBAG - KLIENTSKE CENTRUM v4
   Moje objednavky + tabulky + tlacitka
   KROK 25H / 2026-10-16
   ================================================== */

/* Obsah klientského centra - klidnejsi rytmus */
body.customer-page .content-inner > h1,
body.customer-page .content-inner > h2,
body.customer-page .content-inner > h3 {
    color: var(--oxy-account-text) !important;
}

body.customer-page .content-inner > h1 {
    margin-bottom: 20px !important;
}

body.customer-page .content-inner > h2,
body.customer-page .content-inner > h3 {
    margin-top: 24px !important;
    margin-bottom: 14px !important;
}

/* Primarni/akční tlačítka mimo registrační formulář - např. ZNOVU NAKOUPIT */
body.customer-page .content-inner a.btn.btn-primary,
body.customer-page .content-inner button.btn.btn-primary,
body.customer-page .content-inner input.btn.btn-primary {
    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: #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;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease !important;
}

/* Tabulky objednávek a dokladů */
body.customer-page .content-inner table {
    width: 100% !important;
    border: 1px solid var(--oxy-account-border) !important;
    border-radius: 12px !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
    overflow: hidden !important;
}

body.customer-page .content-inner table thead th,
body.customer-page .content-inner table tr:first-child > th {
    padding: 12px 10px !important;
    background: var(--oxy-account-soft) !important;
    color: var(--oxy-account-text) !important;
    border-top: 0 !important;
    border-bottom: 1px solid #efd7e1 !important;
    font-weight: 700 !important;
    vertical-align: middle !important;
}

body.customer-page .content-inner table td {
    padding: 13px 10px !important;
    background: #fff !important;
    border-top: 0 !important;
    border-bottom: 1px solid #ececec !important;
    vertical-align: middle !important;
}

body.customer-page .content-inner table tbody tr:last-child > td,
body.customer-page .content-inner table tbody tr:last-child > th {
    border-bottom: 0 !important;
}

/* Jemný hover pouze na zařízení s myší */
@media (hover:hover) {
    body.customer-page .content-inner a.btn.btn-primary:hover,
    body.customer-page .content-inner button.btn.btn-primary:hover,
    body.customer-page .content-inner input.btn.btn-primary: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;
        transform: translateY(-1px) !important;
    }

    body.customer-page .content-inner table tbody tr:hover > td {
        background: #fffafd !important;
    }
}

/* Focus */
body.customer-page .content-inner a.btn.btn-primary:focus-visible,
body.customer-page .content-inner button.btn.btn-primary:focus-visible,
body.customer-page .content-inner input.btn.btn-primary:focus-visible {
    outline: 2px solid var(--oxy-account-accent) !important;
    outline-offset: 3px !important;
}

/* Mobil - tabulku raději posouvat než mačkat sedm sloupců do jedné obrazovky. */
@media (max-width: 767px) {
    body.customer-page .content-inner table {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    body.customer-page .content-inner table thead,
    body.customer-page .content-inner table tbody,
    body.customer-page .content-inner table tr {
        width: max-content !important;
        min-width: 100% !important;
    }

    body.customer-page .content-inner table th,
    body.customer-page .content-inner table td {
        min-width: 105px !important;
    }

    body.customer-page .content-inner table th:first-child,
    body.customer-page .content-inner table td:first-child {
        min-width: 210px !important;
    }

    body.customer-page .content-inner a.btn.btn-primary,
    body.customer-page .content-inner button.btn.btn-primary,
    body.customer-page .content-inner input.btn.btn-primary {
        min-height: 42px !important;
        padding: 10px 16px !important;
    }
}

/* ==================================================
   OXYBAG - KROK 25H2
   Mobil: jednotlive objednavky jako samostatne karty
   Desktop zustava beze zmeny.
   ================================================== */
@media (max-width: 767px) {
    /* Na mobilu nepotrebujeme jeden spolecny ramecek kolem cele tabulky. */
    body.customer-page .content-inner table {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: visible !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    body.customer-page .content-inner table thead {
        display: none !important;
    }

    body.customer-page .content-inner table tbody {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    /* Kazda objednavka = jedna zretelne oddelena karta. */
    body.customer-page .content-inner table tbody > tr {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        margin: 0 0 16px !important;
        border: 1px solid #efd7e1 !important;
        border-radius: 12px !important;
        background: #fff !important;
        box-shadow: 0 4px 14px rgba(23, 23, 23, .045) !important;
        overflow: hidden !important;
    }

    body.customer-page .content-inner table tbody > tr:last-child {
        margin-bottom: 0 !important;
    }

    /* Zachovame prehledny radek "nazev hodnoty | hodnota". */
    body.customer-page .content-inner table tbody > tr > td,
    body.customer-page .content-inner table tbody > tr > th {
        display: grid !important;
        grid-template-columns: minmax(0, 44%) minmax(0, 56%) !important;
        align-items: center !important;
        width: 100% !important;
        min-width: 0 !important;
        min-height: 54px !important;
        padding: 13px 14px !important;
        margin: 0 !important;
        border: 0 !important;
        border-bottom: 1px solid #ececec !important;
        border-radius: 0 !important;
        background: #fff !important;
        box-sizing: border-box !important;
        overflow-wrap: anywhere !important;
    }

    /* Prvni radek (Kod) opticky oznaci zacatek nove objednavky. */
    body.customer-page .content-inner table tbody > tr > td:first-child,
    body.customer-page .content-inner table tbody > tr > th:first-child {
        background: var(--oxy-account-soft) !important;
        border-bottom-color: #efd7e1 !important;
    }

    body.customer-page .content-inner table tbody > tr > td:first-child::before,
    body.customer-page .content-inner table tbody > tr > th:first-child::before {
        color: var(--oxy-account-accent) !important;
        font-weight: 700 !important;
    }

    body.customer-page .content-inner table tbody > tr > td:last-child,
    body.customer-page .content-inner table tbody > tr > th:last-child {
        border-bottom: 0 !important;
    }
}
