/*****************************
**
** WC CUSTOM ELEMENTS
**
** ADDED IN: wc-elements.php
**
******************************/


/***** CUSTOM PRODUCT SEARCH FORM - Shortcode */

.custom_search_form .wrapper_search_form {
    --input-width: 90px;
    --input-right-offset: 5px;
    position: relative;
}

.state_mobiles .custom_search_form .wrapper_search_form .search_form {
    --input-width: 48px;
}

.custom_search_form .wrapper_search_form .search_form .w-form-row-field input {
    width: 100%;
    border-color: var(--color-content-bg);
    border-radius: 50px;
    padding: 0 calc(var(--inputs-padding) + var(--input-width) + var(--input-right-offset)) 0 var(--inputs-padding);
}

.custom_search_form .wrapper_search_form .search_form .w-form-row-field+.w-btn {
    display: block;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: var(--input-right-offset);
    height: 40px;
    line-height: 40px;
    width: var(--input-width);
    padding: 0;
    /* font-size: inherit; */
}

.state_mobiles .custom_search_form,
.state_tablets .custom_search_form {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
}

.state_laptops .custom_search_form {
    width: 100%;
    max-width: 500px;
}

.state_default .custom_search_form {
    max-width: 690px;
    width: 100%;
}

@media (min-width: 1400px) {
    .state_default .custom_search_form {
        width: 690px;
    }
}

.state_mobiles .custom_search_form .wrapper_search_form .search_form .w-form-row-field input {
    --inputs-height: 38px;
    border-color: var(--color-content-border);
}

.state_mobiles .custom_search_form .wrapper_search_form .search_form .w-form-row-field+.w-btn {
    height: 30px;
    line-height: 30px;
}


/***** CART SUBTOTALS - updated by AJAX - Shortcode (inside Impreza header wrapper & raw_html) */

.state_tablets header#page-header .wrapper_minicart,
.state_laptops header#page-header .wrapper_minicart,
.state_default header#page-header .wrapper_minicart {
    border: none;
    background: var(--color-content-bg);
    border-radius: 100px;
}

.state_tablets header#page-header .wrapper_minicart {
    padding: 10px 15px;
}

.state_laptops header#page-header .wrapper_minicart,
.state_default header#page-header .wrapper_minicart {
    padding: 14px 18px;
}

header#page-header .wrapper_minicart .w-cart .w-cart-link,
header#page-header .wrapper_minicart .w-cart .w-cart-link .w-cart-icon {
    width: auto;
    line-height: 1;
    font-size: 1.333rem;
    color: var(--color-content-heading);
}

header#page-header .wrapper_minicart .w-cart .w-cart-link .w-cart-icon {
    display: flex;
    align-items: center;
}

header#page-header .wrapper_minicart .w-cart .w-cart-link .w-cart-quantity {
    font-size: 14px;
    height: 22px;
    line-height: 22px;
    min-width: 22px;
    color: #FFFFFF;
    font-weight: var(--bold-font-weight);
    padding: 0 4px;
    display: inline-block;
    border-radius: 50px;
}

.state_mobiles header#page-header .wrapper_minicart .w-cart .w-cart-link .w-cart-quantity {
    font-size: 12px;
    height: 20px;
    line-height: 20px;
    min-width: 20px;
    bottom: -12px;
    right: initial;
    left: 50%;
    transform: translateX(-50%);
}

.state_tablets header#page-header .wrapper_minicart .w-cart .w-cart-link .w-cart-quantity,
.state_laptops header#page-header .wrapper_minicart .w-cart .w-cart-link .w-cart-quantity,
.state_default header#page-header .wrapper_minicart .w-cart .w-cart-link .w-cart-quantity {
    position: absolute;
    top: -12px;
    left: 8px;
    right: initial;
    bottom: initial;
}

header#page-header .wrapper_minicart .w-cart.empty .w-cart-quantity {
    display: none;
}

.state_mobiles header#page-header .wrapper_minicart>.w-html {
    display: none;
}

header#page-header .wrapper_minicart .minicartContent .mini_cart-sum {
    font-size: 16px;
    font-weight: var(--bold-font-weight);
    color: var(--color-content-heading);
}


/***** WOOCOMMERCE LOGIN MODAL - Shortcode */


/**** Modal Trigger */

.woocommerce-login-wrapper i {
    font-size: 1.333rem;
    line-height: 1;
    margin-right: 0;
}

.woocommerce-login-wrapper i+span {
    display: none;
}


/* .woocommerce-login-wrapper a {
    text-decoration: underline;
}

.no-touch .woocommerce-login-wrapper a:hover {
    text-decoration: none;
} */


/**** Modal Layout */

.woocommerce-login-modal-overlay {
    display: none;
    z-index: 10001;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transition: opacity 0.3s;
    opacity: 0;
    background: rgba(0, 0, 0, .5);
}

.woocommerce-login-modal {
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10002;
    top: 0;
    left: 0;
    right: 0;
    height: 100vh;
    height: 100dvh;
}

.woocommerce-login-modal-overlay,
.woocommerce-login-modal {
    position: fixed;
}

.woocommerce-login-modal {
    overflow-y: auto;
}

.woocommerce-login-modal-closer {
    position: absolute;
    top: 20px;
    right: 20px;
    text-align: center;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    color: var(--color-content-link);
    padding: 10px;
    opacity: 0;
    z-index: 5;
}

.woocommerce-login-modal-content {
    position: relative;
    background: #FFFFFF;
    box-shadow: 0px 0px 100px rgba(0, 0, 0, 0.25);
    max-height: 80vh;
    overflow: auto;
    cursor: default;
    width: 98vw;
    max-width: 930px;
    top: -100vh;
    border-radius: var(--element-radius);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.25, 0.5, 0.5, 0.9);
}

@supports(max-height: 90dvh) {
    .woocommerce-login-modal-content {
        max-height: 90dvh;
    }
}


/**** Modal Content */

.woocommerce-login-modal-content .woocommerce {
    display: flex;
    flex-direction: column-reverse;
}

.woocommerce-login-modal-content .woocommerce .woocommerce-notices-wrapper {
    margin-bottom: 0;
}

.woocommerce-login-modal-content .woocommerce .woocommerce-notices-wrapper>div {
    margin-bottom: 0;
    border-radius: 0 0 var(--element-radius) var(--element-radius);
}

.woocommerce-login-modal-content .woocommerce .woocommerce-notices-wrapper .showlogin {
    display: none;
}

.woocommerce-login-modal-content .woocommerce .col2-set .u-column1.col-1 {
    background: var(--color-content-secondary);
    position: relative;
    overflow: hidden;
}

.woocommerce-login-modal-content .woocommerce .col2-set .u-column1.col-1::before {
    content: url("../wc-images/login_modal_ornament.svg");
    position: absolute;
    left: -100px;
    top: 43%;
    user-select: none;
    pointer-events: none;
    z-index: 1;
}

.woocommerce-login-modal-content .woocommerce .col2-set {
    gap: 0;
    display: flex;
    flex-direction: column;
}

.woocommerce-login-modal-content .woocommerce .col2-set>* {
    padding: 50px 30px;
    width: 100%;
}

@media (min-width: 768px) {
    .woocommerce-login-modal-content .woocommerce .col2-set {
        flex-direction: row;
    }
    .woocommerce-login-modal-content .woocommerce .col2-set>* {
        padding: 50px;
        width: 50%;
    }
}

.woocommerce-login-modal-content .woocommerce-form-login,
.woocommerce-login-modal-content .woocommerce-form-register {
    margin: 0;
    padding: 0;
    box-shadow: none;
    position: relative;
    z-index: 2;
}

.woocommerce-login-modal-content #customer_login h2 {
    font-size: 24px;
    margin-bottom: 1.667rem;
}

@media (min-width: 768px) {
    .woocommerce-login-modal-content #customer_login h2 {
        font-size: 28px;
    }
}


/**** Modal Form Inputs Styles */


/* .woocommerce-login-modal-content .woocommerce .form-row label.checkbox {
    font-size: 0;
} */

.woocommerce-login-modal-content input[type="text"],
.woocommerce-login-modal-content input[type="password"],
.woocommerce-login-modal-content input[type="email"] {
    border-radius: 50px;
}

.woocommerce-login-modal-content .woocommerce-form-login input[type="text"],
.woocommerce-login-modal-content .woocommerce-form-login input[type="password"] {
    border: none;
}

@media (min-width: 1280px) {
    .woocommerce-login-modal-content .woocommerce-form-login .form-row-wide+.form-row-wide+.form-row {
        margin-right: 25%;
    }
}

.woocommerce-login-modal-content .woocommerce-form-login .lost_password {
    padding: 20px 0;
    text-align: center;
    display: block;
}

@media (min-width: 601px) {
    .woocommerce-login-modal-content .woocommerce-form-login .lost_password {
        text-align: left;
    }
}

@media (min-width: 768px) {
    .woocommerce-login-modal-content .woocommerce-form-login .lost_password {
        padding: 0;
        display: inline-block;
    }
}


/*** Custom Form Rows */

.woocommerce-login-modal-content form .form-row.privacy:not(:last-child) {
    --wc-column-spacing-vertical: 20px;
}


/**** WC_CUSTOM SUBCATEGORIES - Shortcode */


/** layout */

.wc_custom-subcategories:not(:last-child) {
    margin-bottom: 1.667rem;
}

.wc_custom-subcategories .grid_list {
    display: flex;
    flex-wrap: wrap;
    margin: -5px;
}

.wc_custom-subcategories.scrollable .grid_list>* {
    padding: 5px;
}

.wc_custom-subcategories.scrollable .item {
    width: calc((4 / 12) * 100%);
}

@media (min-width: 1280px) {
    .wc_custom-subcategories.scrollable .item {
        width: calc((3 / 12) * 100%);
    }
}


/** scrollable */

@media (max-width: 820px) {
    .wc_custom-subcategories.scrollable .grid_list {
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x proximity;
        /* scroll-padding: 50%; */
    }
    .wc_custom-subcategories.scrollable .grid_list>* {
        scroll-margin: 10px;
        scroll-snap-align: start;
        scroll-snap-stop: normal;
    }
    .wc_custom-subcategories.scrollable .item {
        width: 200px;
        flex-shrink: 0;
    }
}


/** styling */

.wc_custom-subcategories .item .wrapper_inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--color-content-bg);
    border-radius: var(--element-radius);
    overflow: hidden;
    height: 100%;
    /* min-height: 70px; */
    padding: 10px;
    border: 1px solid var(--color-content-border);
    transition: all .3s ease;
}

.no-touch .wc_custom-subcategories .item .wrapper_inner:hover {
    border-color: var(--color-content-bg);
    box-shadow: 0px 8px 15px rgb(0, 0, 0, .12);
}

.wc_custom-subcategories .item .wrapper_image {
    position: relative;
    width: 36px;
    flex-shrink: 0;
    border-radius: calc(var(--element-radius) / 2);
    overflow: hidden;
}

@media (min-width: 768px) {
    .wc_custom-subcategories .item .wrapper_image {
        width: 50px;
    }
}

.wc_custom-subcategories .item .wrapper_image>.placeholder {
    padding-bottom: calc((1 / 1) * 100%);
    background: var(--color-content-bg-alt);
}

.wc_custom-subcategories .item .wrapper_image .placeholder+img {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.wc_custom-subcategories .item .wrapper_content .term_title {
    font-size: 0.889rem;
}


/**** WC_CUSTOM PRODUCT BADGES - Shortcode */


/**** On sale Badge + Custom Badges **/

.woocommerce .l-section.for_shop .onsale,
.woocommerce ul.products .onsale,
.woocommerce .product_badge {
    padding: 7px 10px;
    border-radius: 50px;
    color: var(--color-white);
    background: var(--color-content-primary);
    text-transform: uppercase;
    font-size: 0.667rem;
    line-height: 1.25;
    letter-spacing: 0.03em;
    font-weight: var(--bold-font-weight);
}

.woocommerce .l-section.for_shop .onsale,
.woocommerce ul.products .onsale,
.woocommerce .product_badge.akcia {
    background: var(--color-purple);
}

.woocommerce span.onsale::before,
.woocommerce .product_badge::before {
    font-family: var(--fa-font-family);
    font-weight: var(--fa-font-weight-solid, --fa-font-weight);
    display: inline-block;
}

.woocommerce .product_badge.akcia::before,
.woocommerce span.onsale::before {
    content: '\f646';
    margin-right: 5px;
}

.woocommerce .product_badge.novinka {
    color: var(--color-content-heading);
    background: var(--color-turquoise);
}

.woocommerce .product_badge.novinka::before {
    content: '\f701';
    margin-right: 5px;
}

.woocommerce .product_badge.premiovy-produkt {
    color: var(--color-content-heading);
    background: var(--color-content-secondary);
}

.woocommerce .product_badge.premiovy-produkt::before {
    content: '\f521';
    margin-right: 5px;
}


/**** WC_CUSTOM SHOPPING PROCESS NAVIGATION - Shortcode */


/* .woocommerce-order-received .wc_custom-shopping-process-navigation {
    visibility: hidden;
}
 */

.wc_custom-shopping-process-navigation {
    padding: 0;
}

.wc_custom-shopping-process-navigation:not(:last-child) {
    margin-bottom: calc(1.667rem - 0.556rem);
}

.wc_custom-shopping-process-navigation .navigation {
    display: flex;
    align-items: center;
    gap: 10px 20px;
    padding: 0;
    padding-bottom: 0.556rem;
    margin: 0;
    list-style: none;
    flex-wrap: nowrap;
    overflow-x: auto;
}


/* items */

.wc_custom-shopping-process-navigation .navigation .page {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    line-height: 1;
    color: var(--color-content-heading);
    margin: 0;
    flex-shrink: 0;
    white-space: nowrap;
}


/* no */

.wc_custom-shopping-process-navigation .navigation .page .navigation_no {
    font-family: var(--font-body);
    font-size: 0.778rem;
    font-weight: var(--bold-font-weight);
    color: #FFFFFF;
    background: var(--color-content-faded);
    text-align: center;
    display: inline-block;
    width: 25px;
    height: 25px;
    line-height: 25px;
    border: none;
    border-radius: 50%;
}


/* icon */

.wc_custom-shopping-process-navigation .navigation .page .navigation_icon {
    font-size: 1.333rem;
    color: var(--wc-success-color);
}

.wc_custom-shopping-process-navigation .navigation .page .navigation_icon.failed {
    color: var(--wc-warning-color);
}


/* active */

.wc_custom-shopping-process-navigation .navigation .page.active .navigation_no {
    background: var(--color-content-heading);
}


/* divider */

.wc_custom-shopping-process-navigation .navigation .divider {
    margin: 0;
}

.wc_custom-shopping-process-navigation .navigation .divider i {
    font-size: 0.778rem;
    line-height: inherit;
    color: var(--color-faded);
}


/**** WC_CUSTOM ACCOUNT COUPON */

@media (min-width: 1280px) {
    .wc_custom-account_coupon_wrapper {
        max-width: 570px;
    }
}

.wc_custom-account_coupon_wrapper .wc_custom-account_coupon_form:not(:first-child) {
    padding-top: 10px;
}

.wc_custom-account_coupon_wrapper .wc_custom-account_coupon_form input[type="text"] {
    border-radius: 50px;
}


/** messages_wrapper */

.wc_custom-account_coupon_wrapper .wc_custom-account_coupon_form .messages_wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-radius: var(--element-radius);
    overflow: hidden;
    background: var(--color-content-bg-alt);
    padding: 1.111rem;
}

.wc_custom-account_coupon_wrapper .wc_custom-account_coupon_form .messages_wrapper:not(:last-child) {
    margin-bottom: 1.667rem;
}

.wc_custom-account_coupon_wrapper .wc_custom-account_coupon_form .messages_wrapper .message {
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-size: 0.889rem;
}

.wc_custom-account_coupon_wrapper .wc_custom-account_coupon_form .messages_wrapper .message i {
    flex-shrink: 0;
}

.wc_custom-account_coupon_wrapper .wc_custom-account_coupon_form .messages_wrapper .message.message_warning i {
    color: var(--wc-warning-color);
}


/** account coupon active */

.wc_custom-account_coupon_wrapper .wc_custom-account_coupon_form>.wrapper_inner.coupon_active {
    border-radius: var(--element-radius);
    overflow: hidden;
    background: var(--color-content-bg-alt);
    padding: 1.667rem;
}

.wc_custom-account_coupon_wrapper .wc_custom-account_coupon_form>.wrapper_inner.coupon_active .messages_wrapper {
    padding: 0;
}


/** if code strats with vet-, hide remove link */

.woocommerce .shop_table .cart-discount .woocommerce-remove-coupon[data-coupon^="vet-"] {
    display: none;
    pointer-events: none;
    user-select: none;
    cursor: default;
}


/**** WC_CUSTOM SHOP CONTACTS - Shortcode */

.wc_custom-contacts_wrapper>.grid_list {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(1, 1fr);
}

.wc_custom-contacts_wrapper>.grid_list>.item {
    border-radius: var(--element-radius);
    overflow: hidden;
    background: var(--color-content-bg);
    padding: 20px;
    width: 100%;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
}

.wc_custom-contacts_wrapper .item>.wrapper_title {
    display: flex;
    gap: 10px;
    margin-bottom: 5px;
}

.wc_custom-contacts_wrapper .item i {
    font-size: 1rem;
    line-height: 1;
    color: var(--color-content-primary);
}

.wc_custom-contacts_wrapper .item h6:not(:last-child) {
    margin-bottom: 10px;
}

.wc_custom-contacts_wrapper .item p {
    font-size: 20px;
    font-family: var(--h1-font-family);
    font-weight: var(--heading-font-weight);
    color: var(--color-content-heading);
}


/*** layout_horizontal */

@media (min-width: 768px) {
    .wc_custom-contacts_wrapper.layout_horizontal>.grid_list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .wc_custom-contacts_wrapper.layout_horizontal>.grid_list {
        grid-template-columns: repeat(3, 1fr);
    }
    .wc_custom-contacts_wrapper.layout_horizontal .item {
        text-align: center;
        padding: 30px;
    }
    .wc_custom-contacts_wrapper.layout_horizontal .item>.wrapper_title {
        flex-direction: column;
        align-items: center;
        margin-bottom: 20px;
        gap: 20px;
    }
    .wc_custom-contacts_wrapper.layout_horizontal .item i {
        font-size: 1.778rem;
    }
    .wc_custom-contacts_wrapper.layout_horizontal .item h6:not(:last-child) {
        margin-bottom: 20px;
    }
}

@media (min-width: 1280px) {
    .wc_custom-contacts_wrapper.layout_horizontal>.grid_list {
        gap: 30px;
    }
    .wc_custom-contacts_wrapper.layout_horizontal .item p {
        font-size: 24px;
    }
}


/***** WC_CUSTOM Shop Info Banner */

.wc_custom-shop_info_banner {
    font-size: 14px;
    font-weight: var(--bold-font-weight);
    line-height: 1;
    padding: 8px 12px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 5;
}

.wc_custom-shop_info_banner+div.l-canvas {
    margin-top: calc(14px + 2 * 8px);
}

@media (min-width: 768px) {
    .wc_custom-shop_info_banner {
        padding: 12px;
    }
    .wc_custom-shop_info_banner+div.l-canvas {
        margin-top: calc(14px + 2 * 12px);
    }
}

#wpadminbar+.wc_custom-shop_info_banner {
    top: 32px;
}

@media screen and (max-width: 782px) {
    #wpadminbar+.wc_custom-shop_info_banner {
        top: 46px;
    }
}

.wc_custom-shop_info_banner>.wrapper_inner {
    overflow: hidden;
    white-space: nowrap;
}

@media (max-width: 767px) {
    .wc_custom-shop_info_banner>.wrapper_inner>.shop_banner_msg {
        animation: 9s linear 3s 1 normal none running firstmarquee, 14s linear 12s infinite normal none running marquee;
        display: inline-block;
    }
}

@media (min-width: 768px) {
    .wc_custom-shop_info_banner {
        text-align: center;
    }
}

@keyframes firstmarquee {
    0% {
        transform: translate(0, 0)
    }
    100% {
        transform: translate(-100%, 0)
    }
}

@keyframes marquee {
    0% {
        padding-left: 100%;
        transform: translate(0, 0)
    }
    100% {
        transform: translate(-100%, 0)
    }
}