/**
 * ============================================================================
 * CUSTOM.CSS – vlastné úpravy Shoptetu
 * ============================================================================
 *
 * 01. Všeobecné úpravy
 * 02. Checkout
 * 03. Filtre
 * 04. Vzkaz do kytice
 * 05. Header
 * 06. Kroky objednávky
 * ============================================================================
 */

/* ==========================================================================
   01. VŠEOBECNÉ ÚPRAVY
   ========================================================================== */

.welcome-wrapper h1 {
    text-align: center;
    margin-top: 40px;
}

div.welcome {
    text-align: center;
    padding-top: 30px;
}

.navigation-in > ul > li.ext > ul > li > a img {
    width: 80px;
}

/*
 * Pôvodné pravidlo:
 * .navigation-in>ul>li.ext>ul>li>div>ul.has-more-items{display:none;}
 *
 * bolo odstránené, pretože pri novom mega menu skrývalo časť submenu.
 */

label.whole-width {
    font-size: 20px;
}

.products-top-wrapper.has-inactive,
div.products-top-wrapper {
    display: none !important;
}

@media (max-width: 768px) {
    table,
    tbody,
    tr,
    td {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box;
    }

    td {
        padding: 15px !important;
        text-align: center !important;
        border-bottom: 1px solid #e0e0e0;
    }

    td img {
        max-width: 80% !important;
        height: auto !important;
        display: block !important;
        margin: 0 auto !important;
    }

    td p {
        text-align: center !important;
    }
}


/* ==========================================================================
   02. CHECKOUT
   ========================================================================== */

label[for="deliveryFullName"]::after,
label[for="deliveryStreet"]::after,
label[for="deliveryCity"]::after,
label[for="deliveryZip"]::after {
    content: " *";
    color: #d00;
}

.co-shipping-address,
.co-shipping-address .form-option-block,
.co-shipping-address .form-group {
    display: block !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.co-shipping-address.hidden,
.co-shipping-address.is-hidden,
.co-shipping-address.collapsed,
.co-shipping-address[style*="display:none"],
.co-shipping-address[style*="display: none"] {
    display: block !important;
}

.products-block > div .p .p-in .p-bottom > div .p-tools .btn.btn-primary:hover {
    background: #c3d7b2 !important;
    border-color: #c3d7b2 !important;
}


/* ==========================================================================
   03. FILTRE
   ========================================================================== */

@media (min-width: 992px) {
    .filters-unveil-button-wrapper,
    .filter-section-button {
        display: none !important;
    }
    .filters {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        height: auto !important;
    }
    #category-filter-hover {
        display: block !important;
        max-height: none !important;
        overflow: visible !important;
    }
}

/* ==========================================================================
   04. VZKAZ DO KYTICE
   ========================================================================== */

.fvBox {
    box-sizing: border-box;
    max-width: 100%;
    background: #f7f7f7;
    border: 2px solid #d9b6a3;
    border-radius: 12px;
    padding: 16px 16px 14px;
    margin: 16px 0 0;
}

.fvBox__label {
    display: block;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 6px;
}

.fvBox__hint {
    font-size: 13px;
    opacity: .85;
    margin-bottom: 10px;
}

.fvTextarea {
    width: 100%;
    box-sizing: border-box;
    background: #fff;
    border: 1.5px solid #d9b6a3;
    border-radius: 10px;
    padding: 12px;
    min-height: 92px;
    resize: vertical;
}

.fvTextarea:focus {
    outline: none;
    border-color: #b68f7b;
    box-shadow: 0 0 0 3px rgba(217, 182, 163, .25);
}

@media (min-width: 992px) {
    .cart-content,
    .cart-inner {
        max-width: none !important;
        width: auto !important;
    }

    .fvBox {
        width: 100% !important;
        max-width: none !important;
    }
}

@media (max-width: 991.98px) {
    .fvBox {
        padding: 14px;
    }
}

.plant-banner__media img {
    image-orientation: from-image;
}


/* ==========================================================================
   05. HEADER
   ========================================================================== */

/* --------------------------------------------------------------------------
   Telefónna lišta – verzia .custom-header-phonebar
   -------------------------------------------------------------------------- */

#header .custom-header-phonebar {
    display: block;
    width: 100%;
    text-align: center;
    font-weight: 700;
    font-size: 16px;
    padding: 10px 12px;
    background: #D9B6A3;
    color: #fff;
    text-decoration: none;
}

#header .custom-header-phonebar:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    #header .custom-header-phonebar {
        font-size: 12px;
        padding: 8px 10px;
    }
}


/* --------------------------------------------------------------------------
   Telefónna/podporná lišta – verzia .support-top-bar
   -------------------------------------------------------------------------- */

.support-top-bar {
    background: #5f8f3d;
    color: #fff;
    font-size: 14px;
    line-height: 1;
}

.support-top-bar .container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    min-height: 42px;
}

.support-top-bar .support-icon {
    font-size: 16px;
}

.support-top-bar .support-title {
    font-weight: 600;
}

.support-top-bar .support-separator {
    opacity: .5;
}

.support-top-bar .support-phone {
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.support-top-bar .support-phone:hover {
    text-decoration: underline;
}

@media (max-width: 767px) {
    .support-top-bar .container {
        flex-direction: column;
        gap: 4px;
        padding: 8px 15px;
    }

    .support-top-bar .support-separator {
        display: none;
    }
}


/* --------------------------------------------------------------------------
   Desktop header + hlavné menu + full-width mega menu
   -------------------------------------------------------------------------- */

@media (min-width: 992px) {

    html.shoptet-header-fixed-menu #header {
        position: relative;
        z-index: 50;
    }

    html.shoptet-header-fixed-menu #header .header-top {
        height: 150px !important;
        min-height: 150px !important;
    }

    html.shoptet-header-fixed-menu
    #header
    .header-top
    .header-top-wrapper {
        height: 150px !important;
        min-height: 150px !important;
        display: grid !important;
        grid-template-columns: 135px minmax(0, 1fr) auto;
        column-gap: 24px;
        align-items: center;
        position: relative !important;
    }

    html.shoptet-header-fixed-menu #header .navigation-tools {
        display: none !important;
    }

    /* Logo */

    html.shoptet-header-fixed-menu #header .site-name {
        grid-column: 1;
        justify-self: start;
        width: auto !important;
        height: auto !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    html.shoptet-header-fixed-menu #header .site-name a {
        display: block !important;
        line-height: 0 !important;
    }

    html.shoptet-header-fixed-menu #header .site-name img {
        display: block !important;
        width: auto !important;
        height: auto !important;
        max-width: 130px !important;
        max-height: 130px !important;
    }

    /* Navigácia */

    html.shoptet-header-fixed-menu #header #navigation {
        grid-column: 2;
        display: block !important;
        position: static !important;
        inset: auto !important;
        width: auto !important;
        height: auto !important;
        min-height: 1px !important;
        overflow: visible !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: none !important;
        justify-self: stretch;
    }

    html.shoptet-header-fixed-menu #header #navigation .navigation-in,
    html.shoptet-header-fixed-menu #header #navigation .navigation-in.menu {
        display: block !important;
        position: static !important;
        width: auto !important;
        height: auto !important;
        overflow: visible !important;
        background: transparent !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: none !important;
    }

    html.shoptet-header-fixed-menu
    #header
    #navigation
    .menu-level-1 {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        gap: 0 14px !important;
        position: static !important;
        height: auto !important;
        min-height: 1px !important;
        margin: 0 !important;
        padding: 0 !important;
        visibility: visible !important;
        opacity: 1 !important;
        overflow: visible !important;
    }

    html.shoptet-header-fixed-menu
    #header
    #navigation
    .menu-level-1 > li {
        display: block !important;
        position: relative !important;
        width: auto !important;
        height: auto !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    html.shoptet-header-fixed-menu
    #header
    #navigation
    .menu-level-1 > li > a {
        display: block !important;
        padding: 14px 8px !important;
        font-size: 15px !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
        color: #000 !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    html.shoptet-header-fixed-menu .navigation-in ul li a b {
        font-weight: 500;
    }

    /* Ikony vpravo */

    html.shoptet-header-fixed-menu #header .navigation-buttons {
        grid-column: 3;
        justify-self: end;
        align-self: center;
        display: flex !important;
        align-items: center !important;
        gap: 30px !important;
        width: auto !important;
        min-width: max-content !important;
        height: auto !important;
        padding-left: 0 !important;
    }

    html.shoptet-header-fixed-menu #header .navigation-buttons > * {
        margin: 0 !important;
    }

    html.shoptet-header-fixed-menu #header .navigation-buttons a {
        flex: 0 0 auto !important;
    }

    html.shoptet-header-fixed-menu #header .user-action {
        position: absolute !important;
        left: 16px !important;
        right: 16px !important;
        top: 96px !important;
        width: auto !important;
    }

    html.shoptet-header-fixed-menu #header .header-bottom {
        display: none !important;
    }

    /* Mega menu */

    html.shoptet-header-fixed-menu
    #header
    #navigation
    .menu-level-1 > li.ext {
        position: static !important;
    }

    html.shoptet-header-fixed-menu
    #header
    #navigation
    .menu-level-1 > li.ext > ul {
        display: none !important;
        position: absolute !important;
        left: 0 !important;
        right: 0 !important;
        top: 100% !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 24px 40px !important;
        background: #fff !important;
        box-sizing: border-box !important;
        z-index: 1000 !important;
    }

    html.shoptet-header-fixed-menu
    #header
    #navigation
    .menu-level-1 > li.ext:hover > ul,
    html.shoptet-header-fixed-menu
    #header
    #navigation
    .menu-level-1 > li.ext:focus-within > ul {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        gap: 120px !important;
    }

    html.shoptet-header-fixed-menu
    #header
    #navigation
    .menu-level-1 > li.ext > ul > li {
        width: auto !important;
        min-width: 190px !important;
        flex: 0 1 220px !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }
}


/* ==========================================================================
   06. KROKY OBJEDNÁVKY
   ========================================================================== */

li.step[data-testid="step3"] > a > span {
    font-size: 0 !important;
}

li.step[data-testid="step3"] > a > span::before {
    content: "Informácie o Doručení";
    font-size: 24px;
    font-weight: 600;
}

.delivery-places-link {
    font-size: 12px;
    margin-top: 4px;
}

.delivery-places-link a {
    color: #2a7ae2;
    text-decoration: underline;
}

.delivery-places-link a:hover {
    text-decoration: none;
}
