/*
 Theme Name: Hello Elementor Child
 Theme URI: https://github.com/elementor/hello-theme/
 Description: Child theme for Hello Elementor. Służy do nadpisywania styli, dodawania własnego CSS/JS i funkcji.
 Author: MK-Web Michał Kazimierczak
 Author URI: https://mk-web.pl
 Template: hello-elementor
 Version: 1.0.0
 Text Domain: hello-elementor-child
*/

/* =========================================================
   KATESTONE - FILTRY SKLEPU
   ========================================================= */

.katestone-shop-filters {
    width: 100%;
    margin: 0 0 52px;
    font-family: inherit;
}

.katestone-shop-filters__form {
    display: grid;
    grid-template-columns:
        minmax(280px, 1.55fr)
        minmax(180px, 1fr)
        minmax(180px, 1fr)
        minmax(190px, 1fr)
        auto;
    align-items: end;
    gap: 18px;
    width: 100%;
}

.katestone-filter {
    min-width: 0;
}

.katestone-filter label,
.katestone-filter__spacer {
    display: block;
    margin: 0 0 9px;
    color: #746D68;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}


/* =========================================================
   INPUTY I SELECTY
   ========================================================= */

.katestone-filter select,
.katestone-filter input {
    width: 100%;
    height: 52px;
    margin: 0;
    padding: 0 16px;

    border: 1px solid #E5DED6;
    border-radius: 0;

    outline: none;

    background-color: #FFFFFF;
    color: #151011;

    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    line-height: 1;

    box-shadow: none;

    transition:
        border-color 0.25s ease,
        background-color 0.25s ease;
}

.katestone-filter select {
    cursor: pointer;
}

.katestone-filter input::placeholder {
    color: #9B938D;
    opacity: 1;
}

.katestone-filter select:hover,
.katestone-filter input:hover {
    border-color: #BEB5AC;
}

.katestone-filter select:focus,
.katestone-filter input:focus {
    border-color: #151011;
}


/* =========================================================
   WYSZUKIWARKA
   ========================================================= */

.katestone-search {
    position: relative;
}

.katestone-search input {
    padding-right: 58px;
}

.katestone-search__button {
    position: absolute;
    top: 0;
    right: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 52px;
    height: 52px;

    padding: 0;
    border: 0;

    background: transparent;
    color: #151011;

    cursor: pointer;

    transition:
        color 0.25s ease,
        background-color 0.25s ease;
}

.katestone-search__button svg {
    width: 22px;
    height: 22px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;

    transition: stroke 0.25s ease;
}

.katestone-search__button:hover {
    color: #A78455;
    background-color: transparent;
    opacity: 1;
}

.katestone-search__button:focus-visible {
    color: #A78455;
    outline: 1px solid #A78455;
    outline-offset: -4px;
}


/* =========================================================
   RESET FILTRÓW
   ========================================================= */

.katestone-filter-reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    height: 52px;

    padding: 0 18px;

    border: 1px solid #E5DED6;

    color: #151011;
    background: #FBF9F5;

    font-size: 13px;
    font-weight: 500;
    line-height: 1;

    text-decoration: none;
    white-space: nowrap;

    transition:
        background-color 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease;
}

.katestone-filter-reset:hover {
    border-color: #151011;
    background-color: #F7F3ED;
    color: #151011;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1024px) {

    .katestone-shop-filters {
        margin-bottom: 42px;
    }

    .katestone-shop-filters__form {
        grid-template-columns: 1fr 1fr;
        gap: 18px 14px;
    }

    .katestone-filter--search {
        grid-column: 1 / -1;
    }

    .katestone-filter--reset {
        display: flex;
        align-items: flex-end;
    }

    .katestone-filter--reset .katestone-filter__spacer {
        display: none;
    }

    .katestone-filter-reset {
        width: 100%;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .katestone-shop-filters {
        margin-bottom: 32px;
    }

    .katestone-shop-filters__form {
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    .katestone-filter {
        width: 100%;
    }

    .katestone-filter label {
        margin-bottom: 7px;
    }

    .katestone-filter select,
    .katestone-filter input,
    .katestone-search__button,
    .katestone-filter-reset {
        height: 50px;
    }

    .katestone-search__button {
        width: 50px;
    }

    .katestone-search__button svg {
        width: 21px;
        height: 21px;
    }
}

/* =========================================================
   KATESTONE - KOMUNIKATY WOOCOMMERCE
   ========================================================= */

.woocommerce-notices-wrapper {
    width: 100%;
}

/* Success / info / error */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    position: relative;

    width: calc(100% - 40px);
    max-width: 1400px;

    margin: 24px auto !important;
    padding: 18px 22px 18px 54px !important;

    background: #FBF9F5 !important;
    color: #151011 !important;

    border: 1px solid #E5DED6 !important;
    border-top: 1px solid #E5DED6 !important;
    border-left: 3px solid #A78455 !important;
    border-radius: 0 !important;

    box-shadow: none !important;

    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.55 !important;
}


/* =========================================================
   IKONA
   ========================================================= */

.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
    position: absolute !important;
    top: 50% !important;
    left: 20px !important;

    transform: translateY(-50%);

    color: #A78455 !important;

    font-size: 16px !important;
    line-height: 1 !important;
}


/* =========================================================
   PRZYCISK NP. "ZOBACZ KOSZYK"
   ========================================================= */

.woocommerce-message a.button,
.woocommerce-info a.button,
.woocommerce-error a.button {
    float: right;

    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    min-height: 38px;

    margin: -7px 0 -7px 24px !important;
    padding: 0 18px !important;

    background: #151011 !important;
    color: #FFFFFF !important;

    border: 1px solid #151011 !important;
    border-radius: 0 !important;

    font-family: inherit !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    letter-spacing: 0.04em;

    text-decoration: none !important;

    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease !important;
}

.woocommerce-message a.button:hover,
.woocommerce-info a.button:hover,
.woocommerce-error a.button:hover {
    background: #A78455 !important;
    border-color: #A78455 !important;
    color: #FFFFFF !important;
}


/* =========================================================
   ERROR
   ========================================================= */

.woocommerce-error {
    border-left-color: #8B4646 !important;
}

.woocommerce-error::before {
    color: #8B4646 !important;
}

.woocommerce-error li {
    margin: 0 !important;
}


/* =========================================================
   WOOCOMMERCE BLOCKS
   Koszyk / checkout w nowszych blokach WooCommerce
   ========================================================= */

.wc-block-components-notice-banner {
    margin: 24px 0 !important;
    padding: 16px 20px !important;

    background: #FBF9F5 !important;
    color: #151011 !important;

    border: 1px solid #E5DED6 !important;
    border-left: 3px solid #A78455 !important;
    border-radius: 0 !important;

    box-shadow: none !important;

    font-family: inherit !important;
}

.wc-block-components-notice-banner svg {
    background: #A78455 !important;
}

.wc-block-components-notice-banner a {
    color: #151011 !important;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .woocommerce-message,
    .woocommerce-info,
    .woocommerce-error {
        width: calc(100% - 30px);

        margin: 16px auto !important;
        padding: 16px 16px 16px 46px !important;

        font-size: 13px !important;
    }

    .woocommerce-message::before,
    .woocommerce-info::before,
    .woocommerce-error::before {
        top: 20px !important;
        left: 16px !important;

        transform: none;
    }

    .woocommerce-message a.button,
    .woocommerce-info a.button,
    .woocommerce-error a.button {
        float: none;

        width: 100%;

        margin: 14px 0 0 !important;
        min-height: 42px;
    }
}

/* =========================================================
   KATESTONE - DODANO DO KOSZYKA
   ========================================================= */

.katestone-cart-notice {
    position: fixed;
    z-index: 999999;

    top: 100px;
    right: 28px;

    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 16px;

    width: min(520px, calc(100vw - 40px));

    padding: 18px 20px;

    background: #FBF9F5;
    color: #151011;

    border: 1px solid #E5DED6;
    border-left: 3px solid #A78455;

    box-shadow:
        0 15px 45px rgba(21, 16, 17, 0.10);

    opacity: 0;

    transform: translateY(-12px);

    pointer-events: none;

    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}


.katestone-cart-notice.is-visible {
    opacity: 1;
    transform: translateY(0);

    pointer-events: auto;
}


/* Ikona */

.katestone-cart-notice__icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 30px;
    height: 30px;

    border: 1px solid #A78455;
    border-radius: 50%;

    color: #A78455;

    font-size: 14px;
    line-height: 1;
}


/* Tekst */

.katestone-cart-notice__content {
    min-width: 0;
}

.katestone-cart-notice__eyebrow {
    margin-bottom: 4px;

    color: #A78455;

    font-size: 10px;
    font-weight: 600;
    line-height: 1.2;

    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.katestone-cart-notice__text {
    color: #151011;

    font-size: 14px;
    font-weight: 400;
    line-height: 1.45;
}


/* Zobacz koszyk */

.katestone-cart-notice__cart {
    color: #151011;

    font-size: 12px;
    font-weight: 600;
    line-height: 1;

    text-decoration: none;

    white-space: nowrap;

    border-bottom: 1px solid #151011;

    padding-bottom: 3px;

    transition:
        color 0.2s ease,
        border-color 0.2s ease;
}

.katestone-cart-notice__cart:hover {
    color: #A78455;
    border-color: #A78455;
}


/* Zamknięcie */

.katestone-cart-notice__close {
    -webkit-appearance: none;
    appearance: none;

    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 32px;
    width: 32px;
    min-width: 32px;
    height: 32px;
    min-height: 32px;

    margin: 0;
    padding: 0;

    border: 0 !important;
    border-radius: 0 !important;

    background: transparent !important;
    box-shadow: none !important;

    color: #746D68 !important;

    font-size: 24px;
    font-weight: 300;
    line-height: 1;
    text-align: center;
    text-decoration: none;

    cursor: pointer;

    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}

.katestone-cart-notice__close:hover,
.katestone-cart-notice__close:focus,
.katestone-cart-notice__close:active {
    background: transparent !important;
    color: #151011 !important;
    border: 0 !important;
    box-shadow: none !important;
    outline: none;
}

.katestone-cart-notice__close::before,
.katestone-cart-notice__close::after {
    content: none !important;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .katestone-cart-notice {
        top: auto;
        right: 15px;
        bottom: 20px;
        left: 15px;

        width: auto;

        grid-template-columns:
            auto
            1fr
            auto;

        gap: 12px;

        padding: 16px;
    }

    .katestone-cart-notice__cart {
        grid-column: 2 / 3;

        width: fit-content;

        margin-top: 3px;
    }

    .katestone-cart-notice__close {
        grid-column: 3;
        grid-row: 1 / 3;
    }
}