﻿:root {
    color-scheme: only light;
}

:root {
    --tmf-gold-dark: rgb(203,161,53);
    --tmf-gold-dark-rgb: 203,161,53;
    --tmf-gold-light: rgb(226,191,78);
    --tmf-gold-light-rgb: 226,191,78;
    --tmf-grey-black: rgb(0,0,0);
    --tmf-grey-black-rgb: 0,0,0;
    --tmf-grey-dark: rgb(128,128,128);
    --tmf-grey-dark-rgb: 128,128,128;
    --tmf-grey-light: rgb(204,204,204);
    --tmf-grey-light-rgb: 204,204,204;
    --swiper-navigation-color: var(--tmf-gold-dark);
    --swiper-navigation-color: var(--tmf-gold-dark);
    --swiper-pagination-color: var(--tmf-gold-dark);
    --tmf-success: rgb(25,135,84);
    --tmf-success-rgb: 25,135,84;
    --tmf-info: rgb(122,221,221);
    --tmf-info-rgb: 122,221,221;
    --tmf-warning: rgb(255,222,85);
    --tmf-warning-rgb: 255,222,85;
    --tmf-danger: rgb(244,8,130);
    --tmf-danger-rgb: 244,8,130;
    --tmf-dark: rgb(203,161,53);
    --tmf-dark-rgb: 203,161,53;
    --tmf-light: rgb(226,191,78);
    --tmf-light-rgb: 226,191,78;
}


:root {
    --bs-indigo: #6610f2;
    --bs-purple: #6f42c1;
    --bs-pink: #d63384;
    --bs-red: #dc3545;
    --bs-orange: #fd7e14;
    --bs-yellow: #ffc107;
    --bs-green: #198754;
    --bs-teal: #20c997;
    --bs-cyan: #0dcaf0;
    --bs-black: #000;
    --bs-white: #fff;
    --bs-gray: #6c757d;
    --bs-gray-dark: #343a40;
    --bs-gray-100: #f8f9fa;
    --bs-gray-200: #e9ecef;
    --bs-gray-300: #dee2e6;
    --bs-gray-400: #ced4da;
    --bs-gray-500: #adb5bd;
    --bs-gray-600: #6c757d;
    --bs-gray-700: #495057;
    --bs-gray-800: #343a40;
    --bs-gray-900: #212529;
    --bs-primary: var(--tmf-gold-dark); /*#0d6efd*/
    --bs-secondary: var(--tmf-gold-light); /*#6c757d;*/
    --bs-success: var(--tmf-success);
    --bs-info: var(--tmf-info);
    --bs-warning: var(--tmf-warning);
    --bs-danger: var(--tmf-danger);
    --bs-light: var(--tmf-light);
    --bs-dark: var(--tmf-dark);
    --bs-primary-rgb: var(--tmf-grey-dark-rgb);
    --bs-secondary-rgb: var(--tmf-grey-light-rgb);
    --bs-success-rgb: 25, 135, 84;
    --bs-info-rgb: 13, 202, 240;
    --bs-warning-rgb: 255, 193, 7;
    --bs-danger-rgb: 220, 53, 69;
    --bs-light-rgb: var(--tmf-grey-light-rgb); /*248, 249, 250;*/
    --bs-dark-rgb: 33, 37, 41;
    --bs-primary-text-emphasis: #052c65;
    --bs-secondary-text-emphasis: #2b2f32;
    --bs-success-text-emphasis: #0a3622;
    --bs-info-text-emphasis: #055160;
    --bs-warning-text-emphasis: #664d03;
    --bs-danger-text-emphasis: #58151c;
    --bs-light-text-emphasis: #495057;
    --bs-dark-text-emphasis: #495057;
    --bs-primary-bg-subtle: 203,161,53; /* #cfe2ff*/

    --bs-secondary-bg-subtle: #e2e3e5;
    --bs-success-bg-subtle: #d1e7dd;
    --bs-info-bg-subtle: #cff4fc;
    --bs-warning-bg-subtle: #fff3cd;
    --bs-danger-bg-subtle: #f8d7da;
    --bs-light-bg-subtle: #fcfcfd;
    --bs-dark-bg-subtle: #ced4da;
    --bs-primary-border-subtle: #9ec5fe;
    --bs-secondary-border-subtle: #c4c8cb;
    --bs-success-border-subtle: #a3cfbb;
    --bs-info-border-subtle: #9eeaf9;
    --bs-warning-border-subtle: #ffe69c;
    --bs-danger-border-subtle: #f1aeb5;
    --bs-light-border-subtle: #e9ecef;
    --bs-dark-border-subtle: #adb5bd;
    --bs-white-rgb: 255, 255, 255;
    --bs-black-rgb: 0, 0, 0;
    --bs-font-sans-serif: "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", system-ui, -apple-system;
    --bs-font-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    --bs-gradient: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));
    --bs-body-font-family: var(--bs-font-sans-serif);
    --bs-body-font-size: 1rem;
    --bs-body-font-weight: 400;
    --bs-body-line-height: 1.5;
    --bs-body-color: #212529;
    --bs-body-color-rgb: 33, 37, 41;
    --bs-body-bg: #fff;
    --bs-body-bg-rgb: 255, 255, 255;
    --bs-emphasis-color: #000;
    --bs-emphasis-color-rgb: 0, 0, 0;
    --bs-secondary-color: rgba(33, 37, 41, 0.75);
    --bs-secondary-color-rgb: 33, 37, 41;
    --bs-secondary-bg: var(--tmf-gold-dark);
    --bs-secondary-bg-rgb: var(--tmf-gold-dark-rgb);
    --bs-tertiary-color: rgba(33, 37, 41, 0.5);
    --bs-tertiary-color-rgb: 33, 37, 41;
    --bs-tertiary-bg: #f8f9fa;
    --bs-tertiary-bg-rgb: 248, 249, 250;
    --bs-heading-color: inherit;
    --bs-link-color: var(--tmf-gold-dark);
    --bs-link-color-rgb: var(--tmf-gold-dark-rgb);
    --bs-link-decoration: underline;
    --bs-link-hover-color: var(--tmf-gold-dark);
    --bs-link-hover-color-rgb: var(--tmf-gold-dark-rgb);
    --bs-code-color: #d63384;
    --bs-highlight-color: #212529;
    --bs-highlight-bg: #fff3cd;
    --bs-border-width: 1px;
    --bs-border-style: solid;
    --bs-border-color: #dee2e6;
    --bs-border-color-translucent: rgba(0, 0, 0, 0.175);
    --bs-border-radius: 0.375rem;
    --bs-border-radius-sm: 0.25rem;
    --bs-border-radius-lg: 0.5rem;
    --bs-border-radius-xl: 1rem;
    --bs-border-radius-xxl: 2rem;
    --bs-border-radius-2xl: var(--bs-border-radius-xxl);
    --bs-border-radius-pill: 50rem;
    --bs-box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --bs-box-shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --bs-box-shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    --bs-box-shadow-inset: inset 0 1px 2px rgba(0, 0, 0, 0.075);
    --bs-focus-ring-width: 0.25rem;
    --bs-focus-ring-opacity: 0.25;
    --bs-focus-ring-color: rgba(0, 0, 0, 0.15);
    --bs-form-valid-color: #198754;
    --bs-form-valid-border-color: #198754;
    --bs-form-invalid-color: #dc3545;
    --bs-form-invalid-border-color: #dc3545;
}

.form-check-input {
    box-shadow: 0 0 0 0.1rem black
}

.form-control:focus, .form-select:focus {
    border-color: var(--tmf-grey-light);
}

.nav-link:focus-visible, .form-select:focus-visible {
    box-shadow: 0 0 0 0.1rem rgba(33, 37, 41, 0.75)
}




.btn-primary, .btn-primary:hover, .btn-primary:active, .btn-primary:visited {
    background-color: var(--tmf-gold-dark);
    border-color: var(--tmf-gold-dark);
}


.btn-secondary, .btn-secondary:hover, .btn-secondary:active, .btn-secondary:visited {
    background-color: var(--tmf-gold-light);
    border-color: var(--tmf-gold-light);
}

a:hover, .nav-link:hover, header .navbar-nav a.nav-link:hover {
    color: var(--tmf-gold-dark);
}

/***clicable dropdown menu */

.dropdown:hover .dropdown-menu {
    display: block;
}

/*****swiper   ****/

.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .swiper-slide img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.autoplay-progress {
    position: absolute;
    right: 16px;
    bottom: 16px;
    z-index: 10;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--swiper-theme-color);
}

    .autoplay-progress svg {
        --progress: 0;
        position: absolute;
        left: 0;
        top: 0px;
        z-index: 10;
        width: 100%;
        height: 100%;
        stroke-width: 4px;
        stroke: var(--swiper-theme-color);
        fill: none;
        stroke-dashoffset: calc(125.6 * (1 - var(--progress)));
        stroke-dasharray: 125.6;
        transform: rotate(-90deg);
    }
/***** swiper  end  ****/


/** bootstrap fuid in container**/
.full-width {
    width: 100vw;
    position: relative;
    margin-left: -50vw;
    left: 50%;
}

.btn-primary, .btn-primary:hover, .btn-primary:active, .btn-primary:visited {
    background-color: #ddb026 !important;
    border-color: #ddb026 !important;
    
}


#modal-search .modal-dialog {
    margin: 0;
    max-width: 100%;
    width: 100%;
}

    .horizontal-scrollable {
    overflow-x: auto;
    white-space: nowrap;
}


body {
    background-image: url(/images/web/background.png);
    font-family: Roboto !important;
}

.containerx {
    background-color: white;
}

._Layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: white;
}

/* Formular zahrnuje i pripadny administratorsky pruh pred obalem stranky. */
#mainBody > #formMaster {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
#mainBody > #formMaster > ._Layout {
    min-height: 0;
    flex: 1 0 auto;
}
._Layout > * {
    flex-shrink: 0;
}
._Layout > footer.pathColor {
    margin-top: auto;
}

.partner-points2, .SestavyBody2 {
    min-height: 00vh;
}



.ramecek {
    border: 1px solid #dcdcdc;
    border-radius: 0px;
    padding: 20px 10px 20px 10px;
    margin: 10px 0px 10px 0px;
}

b {
    color: #8f6f0f;
}

strong {
    color: #8f6f0f;
}

a {
    color: #ddb026;
    text-decoration: none;
    background-color: transparent;
}

h1 {
    color: #ddb026 /* #ed4b9a*/;
}

.navbar-brand img {
    height: 80px;
}
.h1, h1 {
    font-size: 1.8rem;
    color: #ddb026;
}
.h2, h2 {
    font-size: 1.4rem;
    color: #ddb026;
}

.headColor {
    background-image: linear-gradient(lightgray, white 30% );
}
    .pathColor {
    background-image: linear-gradient(white, gray 70%);
}

.h3,  h3 {
    font-size: 1.2rem;
    color: #ddb026;
}

.h4, .h5, .h6, h4, h5, h6 {
    font-size: 1rem;
    color: #ddb026;
}



.navbar-brand {
    margin: 0px 0px 0px 0px;
    padding: 0px 0px 0px 0px;
    
}

.inline {
    display: inline;
}



#txt_search {
    margin: 10px 0px 10px 0px;
   
    padding: 0px 0px 0px 30px;
    background-color: white;
    height: 35px;
}

#sortlist {
    width: unset;
}

._Layout {
    padding-top: 0px;
}

.banerbox {
    padding-bottom: 10px;
}

.pill {
    height: 25px;
}

.inner-addon {
    position: relative;
}

    /* style icon */
    .inner-addon .bi {
        position: absolute;
        padding: 5px 0px 0px 10px;
        pointer-events: none;
    }

    .inner-addon .form-control {
        padding: 0px 0px 0px 30px;
    }


.product-card__img {
    height: 280px;
    width: 250px;
}



.product-card__name, .product-card__code, .product-card__img, .product-card__price {
    margin: 10px 10px 0px 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* number of lines to show */
    -webkit-box-orient: vertical;
}



._Clanek div div p {
    padding: 20px 20px 20px 20px;
}

._Clanek div div img {
    padding: 20px 20px 20px 20px;
}

._Layout {
    padding-top: 0;
}

._CarouselBaner {
    padding-top: 5px;
}

._KategorieProduktySearch {
    padding-top: 5px;
    padding-bottom: 10px;
}

._Kategorie {
    padding: 0px 0px 15px 0px;
}

.mensiodsazeni div {
    padding: 4px 2px 0px 2px !important;
}

    .mensiodsazeni div img {
        padding: 0px 0px 0px 0px !important;
    }

    .mensiodsazeni div p {
        padding: 5px 5px 5px 5px !important;
    }

.vetsiodsazeni div {
    padding-top: 10px;
}


.kosik-item {
    min-width: 115px;
}

.card {
    border-radius: 0px;
    border-width: 0px;
}
.card-img {
    border-radius: 0px;
    border-width: 0px;
}
.product-card__name {
    min-height: 50px;
}

._Footer {
    position: unset;
    bottom: 0;
    width: 100%;
    white-space: nowrap;
    line-height: 1.5;
    color: white;
    padding: 50px 0px 50px 0px
}

    ._Footer .articles {
        white-space: normal;
        font-size: 0.70rem;
    }

    ._Footer .copyright {
        white-space: normal;
        font-size: 0.70rem;
    }



    ._Footer a {
        color: white;
    }



ul ul {
    list-style-type: none;
}



#div_search::after {
    display: none;
    margin-left: 0;
    vertical-align: 0;
    content: none;
    border-top: 0;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
}


/**OWL SIPKY**/

.main-content {
    position: relative;
    }
    .owl-theme .owl-nav {
        position: absolute;
        top: 20%;
        left: 0;
        right: 0;
    }

.owl-carousel .owl-nav button.owl-prev i, button.owl-next i {
    font-size: 3rem;
    font-weight: bold;
    text-shadow: -1px 0 white, 0 1px white, 1px 0 white, 0 -1px white;
}

.owl-carousel .owl-nav button.owl-prev, button.owl-next {
    position: absolute;
    height: 100px;

    background: none;
    border: none;
    z-index: 100;
}

.owl-carousel .owl-nav button.owl-prev {
    left: 0;
}

.owl-carousel .owl-nav  button.owl-next {
    right: 0;
}

/**OWL SIPKY**/


.mySwiperBaner .swiper-slide > .card {
    width: 100%;
}
.mySwiperBaner .swiper-slide > .card > a {
    display: grid;
    width: 100%;
}
.mySwiperBaner .swiper-slide > .card > a > img {
    width: 100%;
    height: auto;
}

.tm-category-title-outline {
    font-size: 1rem;
    text-shadow: none;
    position: relative;
    z-index: 1;
}
.tm-category-caption {
    padding-top: 16px;
    z-index: 2;
}
.tm-category-heading {
    display: grid;
}
.tm-category-heading > img,
.tm-category-heading > .tm-category-caption,
.mySwiperBaner .swiper-slide > .card > a > img,
.mySwiperBaner .swiper-slide > .card > a > .tm-category-caption {
    grid-area: 1 / 1;
}
.tm-category-heading > .tm-category-caption,
.mySwiperBaner .swiper-slide > .card > a > .tm-category-caption {
    position: relative;
    align-self: start;
    padding-top: 0;
    padding-bottom: 0;
}
.tm-category-heading > .tm-category-caption {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.tm-category-heading > .tm-category-caption > .tm-category-topics > a,
.tm-category-heading > .tm-category-caption > .tm-blog-topics > a {
    padding-top: 0;
    padding-bottom: 0;
}
.tm-category-heading > .tm-category-caption > h2 {
    color: #94782e !important;
}
.tm-category-heading > .tm-category-caption > h2,
.mySwiperBaner .swiper-slide > .card > a > .tm-category-caption > h2 {
    margin-bottom: 0;
}
.card:has(> .tm-category-caption),
.card:has(> a > .tm-category-caption),
._KategorieProduktyAjax .tm-blog-card:has(> .tm-blog-card-caption) {
    isolation: isolate;
}
.card:has(> .tm-category-caption)::before,
.card:has(> a > .tm-category-caption)::before,
._KategorieProduktyAjax .tm-blog-card:has(> .tm-blog-card-caption)::before {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 125px;
    max-height: 100%;
    content: '';
    pointer-events: none;
    z-index: 1;
    background: linear-gradient(to bottom, rgba(255, 255, 255, .94) 0%, rgba(255, 255, 255, .82) 40%, rgba(255, 255, 255, .4) 70%, rgba(255, 255, 255, 0) 100%);
}

.tm-blog-heading > .tm-category-caption {
    position: relative;
    padding-bottom: 0;
}
.tm-blog-heading > .tm-category-caption > h2 {
    margin-bottom: 0;
}
/* Mezery vytvareji jen skutecne vykreslene bloky kategorie a banneru. */
._Layout > .container-fluid.my-2 {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
._Layout > .container-fluid.my-2:has(> .tm-category-sections > .row, > .tm-category-sections > .tm-category-topics, > .swiper, > .row .card) {
    margin-bottom: 16px !important;
}
.tm-category-sections {
    display: contents;
}
.tm-category-sections > .row.justify-content-center {
    row-gap: 16px;
}
.tm-category-sections > .row.justify-content-center > .p-1 {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
.tm-category-description > div {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.tm-category-description p {
    margin-top: 0;
    margin-bottom: 0;
}
._Layout > .container-fluid.my-2 > .row:has(> .d-none):not(:has(> :not(.d-none))) {
    display: none;
}
._Layout > .container-fluid.my-2 > .row:has(.card) {
    padding-top: 0 !important;
}
.tm-blog-topics,
.tm-category-topics {
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px 8px;
}
.tm-blog-topics > a,
.tm-category-topics > a {
    padding: 8px 11px;
    border-bottom: 1px solid transparent;
    font-size: 1rem;
    letter-spacing: 1px;
    color: #94782e;
    text-decoration: none;
    text-transform: uppercase;
}
.tm-blog-topics > a:hover,
.tm-blog-topics > a:focus,
.tm-blog-topics > a.active,
.tm-category-topics > a:hover,
.tm-category-topics > a:focus,
.tm-category-topics > a.active {
    color: #94782e;
    border-bottom-color: #b59b60;
}

/* Blogove karty maji vlastni styly, nezavisle na produktovych kartach. */
._Layout > .container.blog:has(> .tm-blog-list) {
    max-width: none;
    width: 100%;
}
.tm-blog-list._KategorieProduktyAjax .tm-blog-card {
    margin: 0;
}
._KategorieProduktyAjax .tm-blog-card {
    position: relative;
    display: grid;
    aspect-ratio: 2 / 1;
    margin: .25rem;
    overflow: hidden;
    border-radius: 0;
    background-color: #eeeeee;
    color: #ffffff;
    text-decoration: none;
}
._KategorieProduktyAjax .tm-blog-card-image {
    position: absolute;
    z-index: 0;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
._KategorieProduktyAjax .tm-blog-card-caption {
    position: relative;
    align-self: start;
    padding: 16px 24px 20px;
    text-align: center;
    z-index: 2;
}
._KategorieProduktyAjax .tm-blog-card-title {
    margin: 0;
    font-size: 1rem;
    color: rgba(0, 0, 0, .5);
    text-shadow: none;
    overflow-wrap: anywhere;
}
._KategorieProduktyAjax .tm-blog-card:focus-visible {
    outline: 3px solid #967525;
    outline-offset: 3px;
}

/* Rozlozeni pouze hlavni hlavicky: menu pres celou sirku, hledani uprostred okna. */
#mainMenu .tm-header {
    padding-top: 16px;
    padding-bottom: 16px;
}
#mainMenu .tm-header-layout {
    gap: 16px 1rem;
    align-items: center;
    padding-left: 24px;
    padding-right: 24px;
}
#mainMenu .tm-header .navbar-brand img {
    height: 56px;
    width: auto;
}
#mainMenu .tm-header-search {
    min-width: 0;
    width: 100%;
    padding: 0;
}
#mainMenu .tm-header-search #txt_search {
    margin-top: 0;
    margin-bottom: 0;
    width: 100%;
    min-width: 0;
}
#mainMenu .tm-header-actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0 .75rem;
}
#mainMenu .tm-header-actions > .nav-item {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}
#mainMenu .tm-header-categories {
    flex-wrap: wrap;
    width: 100%;
    row-gap: 16px;
}
#mainMenu .tm-header-categories:not(:has(> .nav-item)) {
    display: none;
}
#mainMenu .tm-header-categories > .nav-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    white-space: normal;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
#mainMenu .tm-header-categories > .nav-item > a {
    display: inline-flex !important;
    align-items: center;
    line-height: 1.5;
    padding-top: 0;
    padding-bottom: 0;
}
@media (max-width: 1199.98px) {
    #mainMenu .tm-header-search {
        margin-bottom: 16px;
    }
    #mainMenu .tm-header-categories:has(> .nav-item) {
        margin-top: 16px;
    }
    #mainMenu .tm-header-categories > .dropdown > .dropdown-menu {
        flex-basis: 100%;
    }
}
@media (min-width: 1200px) {
    #mainMenu .tm-header-layout {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(240px, 40vw) minmax(0, 1fr);
    }
    #mainMenu .tm-header .navbar-brand {
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
    }
    #mainMenu .tm-header #main_nav2 {
        display: contents !important;
    }
    #mainMenu .tm-header-search {
        grid-column: 2;
        grid-row: 1;
    }
    #mainMenu .tm-header-actions {
        grid-column: 3;
        grid-row: 1;
        min-width: 0;
    }
    #mainMenu .tm-header-categories {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-content: center;
    }
    #mainMenu .tm-header-categories > .dropdown > .dropdown-menu {
        position: absolute;
        top: 100% !important;
        left: 0 !important;
        right: auto;
        margin: 0;
        transform: none !important;
    }
}

/* Dalsi uroven menu nesmi zdedit otevreni vsech potomku pri hoveru rodice. */
#mainMenu .tm-header .tm-submenu {
    position: relative;
}
#mainMenu .tm-header .tm-submenu-heading {
    display: flex;
    align-items: center;
}
#mainMenu .tm-header .tm-submenu-heading > .dropdown-item {
    flex: 1;
    min-width: 0;
}
#mainMenu .tm-header .tm-submenu-toggle {
    border: 0;
    background: transparent;
    color: inherit;
    padding: .5rem .75rem;
}
#mainMenu .tm-header .tm-submenu > .dropdown-menu {
    display: none;
    position: static;
    margin: 0 0 0 1rem;
    max-width: calc(100vw - 2rem);
}
#mainMenu .tm-header .tm-submenu.tm-submenu-open > .dropdown-menu {
    display: block;
}
#mainMenu .tm-header .tm-submenu .dropdown-item {
    white-space: normal;
    overflow-wrap: anywhere;
}
@media (min-width: 1200px) {
    #mainMenu .tm-header .tm-submenu > .dropdown-menu {
        position: absolute;
        top: 0;
        left: 100%;
        right: auto;
        margin: 0;
    }
    #mainMenu .tm-header .tm-submenu.tm-submenu-left > .dropdown-menu {
        left: auto;
        right: 100%;
    }
}

#mainMenu .tm-header-categories a.tm-menu-active {
    color: #4c4635;
    text-decoration: underline;
    text-decoration-color: #b59b60;
    text-underline-offset: 8px;
}

/* Vnejsi rozlozeni obsahovych ASPX stranek, oddelene od navigace. */
.tm-aspx-page {
    width: 100%;
    margin: 0 auto;
    padding-top: 32px;
    display: flow-root;
    text-align: left;
}
.tm-aspx-page-640 {
    max-width: 640px;
}
.tm-aspx-page-960 {
    max-width: 960px;
}
._Layout > .container:has(> .tm-aspx-page-fluid) {
    max-width: none;
}
._Layout:has(.tm-aspx-page) #mainMenu .tm-header {
    padding-bottom: 0;
}
._Layout:has(.tm-aspx-page):has(> .container-fluid.my-2 .tm-category-heading > .tm-category-caption, > .container-fluid.my-2 .tm-category-topics > a, > .container-fluid.my-2 .tm-blog-topics > a) #mainMenu .tm-header {
    padding-bottom: 16px;
}
._Layout:has(.tm-aspx-page) > .container-fluid.my-2 {
    margin-bottom: 0 !important;
}
.tm-aspx-page > .row,
.tm-aspx-page > .container-fluid > .row {
    margin-left: 0;
    margin-right: 0;
}
.tm-aspx-page > .row > [class*="col-"],
.tm-aspx-page > .container-fluid > .row > [class*="col-"] {
    padding-left: 0;
    padding-right: 0;
}
.tm-aspx-page > .row > [class*="col-"] > .ramecek,
.tm-aspx-page > .container-fluid > .row > [class*="col-"] > .ramecek {
    margin-top: 0;
    margin-left: 0;
    margin-right: 0;
}
.tm-aspx-page > .container-fluid {
    padding-left: 0;
    padding-right: 0;
}
@media (max-width: 767.98px) {
    ._Layout > .container:has(> .tm-aspx-page) {
        max-width: none;
        padding-left: 0;
        padding-right: 0;
    }
    .tm-aspx-page {
        width: calc(100% - 32px);
        padding-top: 24px;
    }
}

#mainMenu .tm-header-search #txt_search:not(:focus) {
    border: 1px solid #d9dde1;
}

/* Obrazek i nadpis dlazdice se podileji na vysce stejneho bloku. */
.tm-category-tile > a {
    display: grid;
    width: 100%;
}
.tm-category-tile > a > img,
.tm-category-tile > a > .tm-category-caption {
    grid-area: 1 / 1;
    align-self: start;
}
.tm-category-tile > a > img {
    height: auto;
}
.tm-category-tile > a > .tm-category-caption {
    position: relative;
    padding: 16px 12px;
}
.tm-category-tile > a > .tm-category-caption > h2 {
    margin-bottom: 0;
}

/* Poradi a mezery pouze dopravy, platby a vydejniho mista objednavky. */
.tm-order-flow,
.tm-order-flow > .tm-order-group,
.tm-order-flow .tm-order-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.tm-order-flow .tm-order-group > .tmf-zalohova-platba {
    margin: 0;
}
.tm-order-pickup-id {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.tm-order-group > img {
    align-self: flex-start;
}
.tm-order-group > .packeta-selector-value:empty {
    display: none;
}

.tm-order-page .form-control:not(:last-child) {
    margin-bottom: 16px;
}

/* Vzhled osmi uzivatelskych formularu; mimo objednavku a servisni Update. */
.tm-form-unified .form-control,
.tm-form-unified .form-select {
    min-height: 44px;
    border: 1px solid #ced4da;
    border-radius: .375rem;
}
.tm-form-unified textarea.form-control {
    height: 200px;
}
.tm-form-unified .form-label {
    display: inline-block;
    margin-bottom: .5rem;
}
.tm-form-unified .tm-form-table {
    display: block;
    width: 100%;
}
.tm-form-unified .tm-form-table > tbody {
    display: block;
}
.tm-form-unified .tm-form-table > tbody > tr {
    display: block;
}
.tm-form-unified .tm-form-table > tbody > tr > td {
    display: block;
    width: 100%;
    padding: 0;
}
.tm-form-unified .tm-form-table > tbody > tr:has(.form-control) {
    margin-bottom: 16px;
}
.tm-form-unified .tm-form-table > tbody > tr:has(> td > .btn) {
    margin-top: 24px;
}
.tm-form-unified .tm-form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 16px;
    margin-top: 24px;
    margin-bottom: 16px;
}
.tm-form-unified .btn {
    min-height: 44px;
    max-width: 100%;
    white-space: normal;
}
.tm-form-unified > .row > .col-12 > .row,
.tm-form-unified > div > div > .row {
    margin-bottom: 16px;
}
.tm-form-unified .tm-form-action-row {
    margin-top: 24px;
}

/* Nahradni text pouze pro chybejici zahlavni obrazek kategorie. */
.tm-category-heading > .tm-category-image-fallback {
    display: none;
    grid-area: 2 / 1;
    margin-top: 16px;
    position: relative;
    z-index: 2;
}
.tm-category-heading-no-navigation > .tm-category-image-fallback {
    margin-top: 0;
}
.tm-category-heading > img.tm-category-image-missing {
    visibility: hidden;
    height: 0;
}
.tm-category-heading > .tm-category-image-fallback-debug {
    color: #c00000;
    font-size: 1.5rem;
    font-weight: 700;
}
@media (min-width: 768px) {
    .tm-category-heading > img.tm-category-image-missing + .tm-category-image-fallback-desktop {
        display: block;
    }
    .tm-category-heading-no-navigation:has(> img.d-md-block.tm-category-image-missing) > .tm-category-caption {
        display: none;
    }
}
@media (max-width: 767.98px) {
    .tm-category-heading > img.tm-category-image-missing + .tm-category-image-fallback-mobile {
        display: block;
    }
    .tm-category-heading-no-navigation:has(> img.d-md-none.tm-category-image-missing) > .tm-category-caption {
        display: none;
    }
}

/* Bannery a dlazdice pouzivaji existujici odstup kontejneru 16px. */
.tm-image-card > a > .tm-category-image-fallback {
    display: none;
    grid-area: 1 / 1;
    margin: 0;
    position: relative;
    z-index: 2;
}
.tm-image-card > a > img.tm-category-image-missing {
    display: none !important;
}
.tm-image-card > a > .tm-category-image-fallback-debug {
    color: #c00000;
    font-size: 1.5rem;
    font-weight: 700;
}
.tm-image-card > a > img.tm-category-image-missing + .tm-category-image-fallback-tile {
    display: block;
}
.tm-image-card:has(> a > img.tm-category-image-missing + .tm-category-image-fallback-tile)::before,
.tm-image-card > a > img.tm-category-image-missing + .tm-category-image-fallback-tile ~ .tm-category-caption {
    display: none;
}
@media (min-width: 768px) {
    .tm-image-card > a > img.tm-category-image-missing + .tm-category-image-fallback-desktop {
        display: block;
    }
    .tm-image-card:has(> a > img.d-md-block.tm-category-image-missing)::before,
    .tm-image-card > a > img.d-md-block.tm-category-image-missing ~ .tm-category-caption {
        display: none;
    }
}
@media (max-width: 767.98px) {
    .tm-image-card > a > img.tm-category-image-missing + .tm-category-image-fallback-mobile {
        display: block;
    }
    .tm-image-card:has(> a > img.d-md-none.tm-category-image-missing)::before,
    .tm-image-card > a > img.d-md-none.tm-category-image-missing ~ .tm-category-caption {
        display: none;
    }
}

/* Samostatny prepinac instanci za volbou zeme. */
#mainMenu .tm-instance-switch img {
    width: auto;
    height: 30px;
    object-fit: contain;
    margin-right: .35rem;
}
#mainMenu .tm-instance-switch .dropdown-menu {
    position: absolute;
    right: 0;
    left: auto;
}
#mainMenu .tm-instance-switch .dropdown-item.active {
    color: #292b2e;
    background-color: #cfb56c;
}
