﻿/* BASE */

header {
    text-transform: uppercase;
    padding-top: 7px;
    z-index: 100;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font--family__secondary);
}

h1:after,
#dp__body section.related.products>h2:after {
    margin: 0.3em 0 0 0;
    height: 3px;
    border-radius: 500px;
}

h2 {
    font-size: 36px;
    margin: 0;
}

.text--shadowed {
    text-shadow: 0 0 20px #393939;
}

.v--hidden {
    visibility: hidden;
    height: 0;
    opacity: 0;
}

#dp__body #dp__header__cart .button {
    background-color: var(--color__primary);
}

/* Custom labels (PROMOCJA, NOWOŚĆ, POLECONY) */
.product-labels {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    position: absolute;
    top: 0;
}

span.product-badge {
    background: #222;
    color: #fff;
    font-weight: 600;
    padding: 0 12px;
    line-height: 3.236;
    font-size: 13.712px;
    font-family: var(--font--family__secondary);
    text-transform: uppercase;
}

.product-badge.sale {
    background-color: #fe4040;
}

.product-badge.new {
    background-color: #2c6fff;
}

.product-badge.featured {
    background-color: #c02cff;
}

/* Stopka */

.footer__cols {
    gap: 1rem;
}

footer {
    background: #e5e5e5;
    padding: 3rem 0 0;
    font-family: var(--font--family__secondary);
}

footer .footer__col {
    background: transparent;
}

footer>.container>a {
    width: fit-content;
    display: block;
    margin: 0 auto 2rem;
}

.footer__copyright {
    font-weight: 500;
}

@media (max-width:1240px) {
    #dp__body .footer__copyright.d--flex {
        flex-direction: column;
    }
}

.footer__copyright a {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.footer__copyright img {
    width: 30px;
}

img#footerLogoImg {
    max-width: 200px;
}

p.footer__list__title {
    font-size: 20px;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 0.9rem;
}

ul.footer__list {
    display: flex;
    flex-direction: column;
    gap: .25rem;
}

ul.footer__list li {
    list-style: none;
    text-transform: uppercase;
    font-weight: 500;
}

ul.footer__list li a {
    transition: .3s;
}

ul.footer__list li a:hover {
    /* text-decoration: underline; */
    font-weight: 700;
}

/* Zagłówek */

.header__menu li.active {
    font-weight: 700;
}

.header__nav__wrapper>ul {
    width: 100%;
    justify-content: space-between;
}

.header__menu li {
    padding: 0 1rem;
    font-weight: initial;
    position: relative;
}

.header__menu ul.sub-menu {
    position: absolute;
    background: #fff;
    width: fit-content;
    padding: 0 10px;
    left: 0;
    margin-top: 0.5rem;
    visibility: hidden;
    /* width: 100%; */
}

.header__menu li a {
    transition: none;
}

@media (min-width:768px) {

    .header__menu li:hover>ul.sub-menu,
    ul.sub-menu:hover {
        visibility: visible;
    }
}

.header__menu ul.sub-menu>li {
    padding: .5rem;
}

@media (max-width:1240px) {
    .header__menu li {
        padding: 1rem;
    }
}

.search__cart {
    display: flex;
    width: 100%;
    justify-content: flex-end;
}

.search__cart a {
    display: block;
}

.header__soc__wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding-top: 3px;
    gap: 10px;
    padding-right: 4px;
    margin-left: auto;
}

@media (max-width:1240px) {
    .header__soc__wrapper {
        flex-direction: row;
        align-items: center;
        padding-top: 0;
    }
}

#dp__body #cart__toggler::before,
#cart__toggler::after {
    content: '';
    background-size: contain;
    display: block;
}

#cart__toggler::before {
    width: 21px;
    height: 20px;
    background: url(../img/ico-cart.svg) no-repeat center;
    cursor: pointer;
    margin-right: 5px;
}

@media (max-width:1240px) {
    #cart__toggler::before {
        width: 30px;
        height: 30px;
    }
}

#search__toggler {
    width: 16px;
    height: 22px;
    margin-right: 10px;
}

#cart__toggler {
    width: initial;
    display: flex;
    background: initial;
}

@media(max-width:1240px) {
    #cart__toggler {
        font-size: 0;
    }
}

@media (min-width:1240px) {

    #cart__toggler::after {
        width: 13px;
        height: 22px;
        background: url(../img/custom/chevron.svg) no-repeat center;
        margin-left: 6px;
    }
}

#header__login__btn:before {
    background: url(../img/custom/login.svg) no-repeat center;
    content: '';
    display: block;
    width: 20px;
    height: 21px;
    background-size: contain;
    margin-right: 8px;
}

#header__maccount__btn:before {
    background: url(../img/ico-user.svg) no-repeat center;
    content: '';
    display: block;
    width: 20px;
    height: 21px;
    background-size: contain;
    margin-right: 8px;
}

#header__search__btn:before {
    background: url(../img/ico-search.svg) no-repeat center;
    content: '';
    display: block;
    width: 21px;
    height: 21px;
    background-size: contain;
    margin-right: 8px;
}

#header__maccount__btn {
    display: flex;
}

@media(max-width:1240px) {

    #header__login__btn:before,
    #header__maccount__btn::before {
        width: 24px;
        height: 24px;
    }
}


#header__login__btn {
    display: flex;
}

@media (max-width:1240px) {

    #header__login__btn,
    #header__maccount__btn {
        font-size: 0;
    }
}

.header__logo {
    width: 200px;
}

@media (max-width:1240px) {
    .header__logo {
        width: 150px;
        min-width: initial;
    }
}

#header__search__form {
    background-color: var(--body__color);
}

.header__nav__wrapper {
    margin-top: 7px;
}

.rwd__search__bar {
    position: fixed;
    background: #fff;
    width: 100%;
    padding: .5rem 1rem;
    top: 3.75rem;
    left: -100%;
    transition: .3s;
    z-index: 999;
}

@media(min-width:768px) {
    .rwd__search__bar {
        display: none;
    }

    .search__icon__rwd {
        display: none;
    }
}

/* Startowa */

/* Slider */

.dp__slider {
    max-width: 1240px;
    margin: auto;
}

/* Slick Arrows */

.slick-next,
.slick-prev {
    filter: brightness(0);
}


#dp__body .slick-next:before,
#dp__body .slick-prev:before {
    font-size: 35px;
}

#dp__body .slick-next {
    right: -35px;
}

#dp__body .slick-next:before,
#dp__body .slick-prev:before {
    content: "";
    background-image: url(../img/custom/angle-right.svg);
    display: block;
    width: 20px;
    height: 34px;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: .75;
}

#dp__body .slick-prev:before {
    rotate: 180deg;
}

#dp__body .slick-next:hover:before,
#dp__body .slick-prev:hover:before {
    opacity: 1;
}

#dp__body .slick-prev {
    left: -35px;
}

@media (max-width:768px) {

    #dp__body .slick-prev,
    #dp__body .slick-next {
        display: none !important;
    }
}


#dp__body .slick-dots {
    bottom: -40px;
}

#dp__body .slick-dots li button:before {
    background-color: #a3a3a3;
    border-color: #a3a3a3;
}

#dp__body .slick-dots li.slick-active button:before {
    background-color: #222;
    border-color: #222;
}

#dp__body .slick-dots li {
    width: 23px;
}

/* Toggler produktów */

.product__type__toggler {
    font-size: 24px;
    font-weight: 500;
    margin-top: 4.25rem;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

@media (max-width:1240px) {
    .product__type__toggler {
        font-size: 20px;
    }
}

.product__type__toggler .active {
    font-size: 32px;
    font-weight: 800;
}

@media (max-width:1240px) {
    .product__type__toggler .active {
        font-size: 24px;
    }
}

.product__type__toggler p {
    cursor: pointer;
    transition: .3s;
}

.product__type__toggler p:hover {
    font-weight: 800;
}

.togglable__products {
    width: min(var(--container__width), 100%);
    margin: auto;
}

.togglable__products.best .product-badge.featured {
    display: none;
}

/* Kafelki produktów */

#dp__body li.product {
    border: none;
    padding-bottom: 1.5rem;
}

.woocommerce ul.products li.product a img {
    aspect-ratio: 1 / 1;
    max-height: 290px;
}

/* Przyciski DO KOSZYKA i cena */

#dp__body .woocommerce ul.products li.product .button::before,
#dp__body .wc-block-grid__product .wc-block-grid__product-add-to-cart a::before {
    content: initial;
}

#dp__body .woocommerce ul.products li.product .woocommerce-loop-product__title,
#dp__body .wc-block-grid__product .wc-block-grid__product-title,
#dp__body .woocommerce ul.products li.product .price,
#dp__body .wc-block-grid__product div.wc-block-grid__product-price,
#dp__body .woocommerce ul.products li.product .button,
#dp__body .wc-block-grid__product .wc-block-grid__product-add-to-cart {
    font-family: var(--font--family__secondary);
}

#dp__body .woocommerce ul.products li.product .price,
#dp__body .wc-block-grid__product div.wc-block-grid__product-price,
#dp__body .woocommerce ul.products li.product .button,
#dp__body .wc-block-grid__product .wc-block-grid__product-add-to-cart {
    font-size: 20px;
}

#dp__body .woocommerce ul.products li.product a img,
#dp__body .wc-block-grid__products .wc-block-grid__product-image img {
    max-height: 300px;
    margin-bottom: 0.35rem;
    margin-top: 0.75rem;
    padding: 0 10px;
}

#dp__body .woocommerce ul.products li.product .button,
#dp__body .wc-block-grid__product .wc-block-grid__product-add-to-cart {
    letter-spacing: 1px;
    width: fit-content;
    font-weight: 500;
    padding: 18px 18px;
    border-radius: 5px;
}

div.product button.single_add_to_cart_button.button.alt,
div.product a.add-request-quote-button.button,
.yith_ywraq_add_item_browse_message>a,
.yith-ywraq-before-table a.button,
#yith-ywraq-form .update-list-wrapper input[type="submit"],
#dp__body input.button.raq-send-request,
#dp__body .ywraq-before-form a.button,
#dp__body .button.wc-forward,
#dp__body .woocommerce ul.products li.product .button,
#dp__body .wc-block-grid__product .wc-block-grid__product-add-to-cart {
    text-transform: uppercase;
}

.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) #respond input#submit,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) input.button,
:where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce #respond input#submit,
:where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce a.button,
:where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce button.button,
:where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce input.button {
    background: #222;
    color: #fff;
    text-transform: uppercase;
    font-family: var(--font--family__secondary);
    font-size: 20px;
    letter-spacing: 1px;
    font-weight: 500;
    padding: 18px 18px;
    border-radius: 5px;
}

/* Najezdzanie na kafelek */

.woocommerce ul.products li.product:hover,
.wc-block-grid.has-4-columns:not(.alignwide):not(.alignfull) .wc-block-grid__product:hover {
    border: 1px solid #D8D8D8;
    border-radius: 0;
}

.woocommerce ul.products li.product:hover,
.wc-block-grid.has-4-columns:not(.alignwide):not(.alignfull) .wc-block-grid__product:hover {
    box-shadow: 0px 0px 5px 0px #dbdbdb;
}

/* Kafelki kategorii */

@media (max-width:1240px) {
    .cats__cols {
        gap: 4rem;
        /* margin-bottom: 0 !important; */
    }
}

.cat__col {
    position: relative;
    transition: .3s;
    border: 1px solid transparent;
}

.cat__col:hover {
    border-color: #ddd;
    box-shadow: 0 0 10px 1px #ddd;
}

.cat__col p {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: #222;
    font-size: 24px;
    padding: 15px 34px;
    font-family: var(--font--family__secondary);
    margin: initial;
    letter-spacing: 1px;
    font-weight: 500;
    width: max-content;
}

.cat__col img {
    filter: blur(1.5px);
    transition: .3s;
}

.cat__col:hover img {
    filter: initial;
}

.cat__col p a {
    color: var(--body__color);
}

/* Atuty. Sekcja pod kafelkami kategorii na startowej */

.features__col h3 {
    font-size: 24px;
    font-weight: 600;
}

.features__col p {
    font-family: var(--font--family__secondary);
    font-weight: 500;
    color: #2d2d2d;
}

.features__col {
    gap: .25rem;
}

.features__col figure {
    margin-bottom: .5rem;
    width: 84px;
}

.features__col p.features__counter {
    font-size: 32px;
    color: #222;
    margin-bottom: 1.5rem;
    margin-top: 1.5rem;
    font-weight: 600;
}

@media (min-width:1240px) {
    .features__col p.features__counter {
        margin-bottom: 0.5rem;
    }
}

@media (min-width:1240px) {
    .features__row {
        gap: 7.75rem;
    }
}

@media (max-width:1240px) {
    .features__row {
        gap: 4rem;
    }
}

/* Blok "Wyrózniony produkt" */

#dp__body .wc-block-featured-product__wrapper {
    color: #000;
}

@media (min-width:1240px) {
    #dp__body .wc-block-featured-product__wrapper {
        flex-wrap: nowrap;
        flex-direction: row-reverse;
        align-items: center;
    }
}

.wc-block-featured-product__content {
    max-width: 380px;
}

#dp__body .wc-block-featured-product__wrapper img {
    position: initial;
    max-height: 460px;
    width: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover !important;
    max-width: 100%;
}

@media (min-width:1240px) {
    #dp__body .wc-block-featured-product__wrapper img {
        margin-left: 4rem;
    }
}

#dp__body .wc-block-featured-product__title {
    font-size: 28px;
    text-align: left;
    margin-bottom: 1.25rem;
}

#dp__body .wc-block-featured-product__description>p {
    line-height: 1.4em;
    text-align: left;
    font-family: var(--font--family__secondary);
}

.background-dim__overlay {
    display: none;
}

#dp__body .wc-block-featured-product__description,
#dp__body .wc-block-featured-product__link,
#dp__body .wc-block-featured-product__price,
#dp__body .wc-block-featured-product__title,
#dp__body .wc-block-featured-product__variation {
    padding: initial;
}

#dp__body .wc-block-featured-product {
    align-items: flex-start;
    min-height: initial !important;
}

#dp__body .wc-block-featured-product__link {
    margin-top: 1.75rem;
}

#dp__body .wp-block-buttons.is-content-justification-center {
    justify-content: center;
}

.dsc__img__col p {
    font-family: var(--font--family__secondary);
    font-size: 20px;
    font-weight: 500;
}

.dsc__img__cols figure {
    max-width: 506px;
    z-index: 10;
    position: relative;
    display: block;
}

.dsc__img__cols.img__right>div:last-of-type figure {
    margin-left: auto;
}


.dsc__img__cols.img__left>div:first-of-type figure {
    margin-right: auto;
}

@media (min-width:1240px) {
    .dsc__img__cols figure::after {
        display: block;
        content: '';
        width: 100%;
        height: 100%;
        position: absolute;
        top: 2rem;
        z-index: -1;
        border: 2px solid #222;
        border-top: none;
    }

    .dsc__img__cols.img__right>div:last-of-type figure::after {
        left: -2rem;
        border-right: none;
    }

    .dsc__img__cols.img__left>div:first-of-type figure::after {
        right: -2rem;
        border-left: none;
    }
}

@media (max-width:1240px) {
    #dp__body.home .dsc__img__cols:last-of-type {
        flex-direction: column-reverse;
    }
}

/* Szczegóły produktu */

#dp__body .wc-block-grid.has-4-columns:not(.alignwide):not(.alignfull) .wc-block-grid__product {
    border: none;
}

@media (max-width:1240px) {
    div.product button.single_add_to_cart_button.button.alt {
        font-weight: 700;
    }
}

#dp__body div.product .summary p.price {
    color: #222;
    font-family: var(--font--family__secondary);
}

.product_meta a {
    text-decoration: underline;
}

/* JULIA! To tutaj! */
/* Komentarz to slash i gwiazdka, w takim formacie jak tutaj. Przykład komentowania: */
/*  visibility: hidden; */


#deliveryHeaderWrapper {
    margin-left: 2rem;
    gap: 1rem;
/*  visibility: hidden; */
}

@media (max-width:1240px) {
    #deliveryHeaderWrapper {
        display: none !important;
    }
}

@media (max-width:1240px) {
    #dp__body #deliveryHeaderWrapper.d--flex {
        display: none;
    }
}

/* Breadcrumbs */

body#dp__body nav.woocommerce-breadcrumb,
body#dp__body nav.woocommerce-breadcrumb>a,
div#dp_breadcrumbs,
div#dp_breadcrumbs a {
    color: #7d7d7d;
    font-size: .85rem;
}

body#dp__body nav.woocommerce-breadcrumb,
div#dp_breadcrumbs {
    margin-top: 1rem;
    display: inline-block;
}

#cartTotal {
    display: none;
}

.delivery__content {
    gap: 1rem;
    margin-bottom: 1rem;
}

/* Strona MOJE KONTO */

.woocommerce-MyAccount-navigation ul {
    list-style: none;
}

.woocommerce-MyAccount-navigation ul li {
    display: flex;
    margin: 1rem 0;
}

.woocommerce-MyAccount-navigation ul li a {
    color: #222;
    transition: .3s;
    text-decoration: none;
}

.woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-MyAccount-navigation ul li:hover a {
    color: var(--color__primary);
}

.woocommerce-MyAccount-navigation ul li:before {
    content: '';
    display: block;
    height: 30px;
    width: 30px;
    background-size: cover;
    background-repeat: no-repeat;
    margin-right: .8rem;
    filter: saturate(0);
    transition: .3s;
}

.woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--dashboard:before {
    background-image: url(../img/ico-user.svg);
}

.woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--orders:before {
    background-image: url(../img/ico-package.svg);
}

.woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--downloads:before {
    background-image: url(../img/ico-download.svg);
}

.woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--edit-address:before {
    background-image: url(../img/ico-pin.svg);
}

.woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--edit-account:before {
    background-image: url(../img/ico-settings.svg);
}

.woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout:before {
    background-image: url(../img/ico-exit.svg);
}

.woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--payment-methods:before {
    background-image: url(../img/ico-credit-card.svg);
}

.woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--delete-account:before {
    background-image: url(../img/ico-delete.svg);
}

.woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--points:before {
    background-image: url(../img/ico-trophy.svg);
}

.woocommerce-MyAccount-content fieldset {
    margin: 1.25rem 0 1rem;
    border-radius: 5px;
    border-color: #ffffff;
}

.woocommerce-MyAccount-navigation-link.is-active {
    font-weight: 700;
}

.woocommerce:where(body:not(.woocommerce-uses-block-theme)) div.product .stock {
    color: #222;
    text-transform: uppercase;
    font-family: var(--font--family__secondary);
    font-weight: 700;
    border: 2px solid #222;
    width: fit-content;
    padding: .5rem .75rem;
    border-radius: 10px;
}

.woocommerce:where(body:not(.woocommerce-uses-block-theme)) div.product .out-of-stock {
    border-color: #fa7e20;
}

#dp__body article#dp__woo .quantity input.qty {
    font-size: 1.67em;
}

.related.products h2::after {
    content: initial;
}

#dp__body .additional_information_tab {
    display: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
    padding: 0;
}

li#tab-title-description {
    width: 100%;
    text-align: center;
    font-family: var(--font--family__secondary);
    font-size: 26px;
    letter-spacing: 1px;
    padding: .75rem 0 .75rem;
    text-transform: uppercase;
}

.related.products h2,
.same__producer.products>h2,
.custom-shipping-costs>h2 {
    background: #222;
    color: #fff;
    text-align: center;
    padding: 1.2rem 0 .6rem;
    text-transform: uppercase;
    font-size: 26px;
    letter-spacing: 1px;
}

.custom-shipping-costs>h2 {
    padding-bottom: 1.275rem;
}

@media (min-width:768px) {
    #customShippingCosts {
        scroll-margin-top: 126px;
    }
}

@media (max-width:768px) {
    #customShippingCosts {
        scroll-margin-top: 67px;
    }
}

.custom__delivery>a {
    color: red;
}

#customShippingCosts>p {
    margin: 0;
    border-bottom: 1px solid #d9d9d9;
    padding: .5rem;
}

@media (max-width:1240px) {
    #customShippingCosts>p {
        display: flex;
        justify-content: space-between;
    }
}

#customShippingCosts>p:last-of-type {
    border-bottom: none;
    padding-bottom: 0.25rem;
}

#customShippingCosts>p:first-of-type {
    padding-top: .5rem;
}

#customShippingCosts>p>span {
    text-wrap: nowrap;
}

@media (min-width:1240px){
    #customShippingCosts>p>span {
        font-weight: 600;
    }
}

div.same__producer.products>h2 {
    padding: 1.25rem 0 1.3rem;
}

#dp__body .woocommerce-product-details__short-description>p {
    margin-bottom: 1em;
}

#dp__body .woocommerce-product-gallery__image:first-of-type {
    border-width: 3px;
}

.same__producer.products>h2 {
    margin-bottom: 2rem;
}

/* Strona wyszukiwania */

@media (min-width:1240px) {
    .posts__wrapper {
        grid-template-columns: repeat(4, 1fr);
    }
}

.posts__wrapper {
    list-style: none;
}

#dp__search .posts__wrapper img {
    object-fit: contain;
}

span.woocommerce-loop-product__title,
span.price {
    font-family: var(--font--family__secondary);
    font-weight: 600;
    text-align: center;
    display: block;
}

#dp__search span.price {
    font-size: 20px;
    margin-top: .75rem;
    margin-bottom: 1.25rem;
}

.add_to_cart_inline {
    border: none !important;
    padding: 0 !important;
    text-align: center;
}

.add_to_cart_inline .woocommerce-Price-amount {
    display: none;
}

#dp__body #dp__search li.product {
    transition: .3s;
    flex-direction: column;
}

#dp__body #dp__search li.product:hover {
    box-shadow: 0px 0px 5px 1px #e2e2e2;
}

div.nav-links {
    margin-bottom: 2rem;
}

/* Koszyk */

#dp__body button[name="update_cart"],
#dp__body button[name="apply_coupon"] {
    color: #fff;
    background: #000;
    border: 2px solid #000;
    padding: 1rem 1.5rem;
    transition: .3s;
}

#dp__body button[name="update_cart"]:hover,
#dp__body button[name="apply_coupon"]:hover {
    background: #fff;
    color: #000;
}

#dp__body.woocommerce-cart table.cart td.actions .coupon .input-text {
    border-radius: 5px;
    font-size: 18px;
    padding: 1rem 1.5rem;
    width: fit-content;
}

#dp__body.woocommerce-cart td.product-name>a {
    font-weight: 600;
}

#dp__body.woocommerce-cart td.product-name>p {
    margin: .25rem 0 .05rem;
}

#dp__body.woocommerce-cart .quantity .qty {
    border-color: #bebebe;
    width: 3rem;
    padding: 1rem .75rem;
}

.cart_totals.calculated_shipping>h2 {
    margin: 1rem 0;
}

@media (max-width:768px) {
    #dp__body.woocommerce-cart table.cart td.actions .coupon {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        padding: 0;
    }

    #dp__body.woocommerce-cart table.cart td.actions .coupon .input-text {
        width: 100%;
    }

    #dp__body button[name="apply_coupon"] {
        width: 100%;
    }
}

.dp__header__cart__desc {
    margin-top: 0;
}

#dp__header__cart {
    border-radius: 5px;
}

#dp__body.woocommerce-cart .wc-block-cart__submit-button {
    background: var(--color__primary);
    color: #fff;
    border-radius: 10px;
    text-transform: uppercase;
    font-family: var(--font--family__secondary);
    letter-spacing: 1px;
    font-weight: 600;
    font-size: 1.25rem;
    margin-top: 1rem;
}

/* Checkout */

.woocommerce #payment #place_order,
.woocommerce-page #payment #place_order {
    font-weight: 700;
    background: var(--color__primary);
}

body.woocommerce-checkout h3 {
    font-size: clamp(1.5em, 4vw, 2rem);
    margin: 1em 0;
}

#dp__body.woocommerce-checkout label {
    font-weight: 700;
    font-family: var(--font--family__secondary);
    font-size: 1.25em;
}

#dp__body.woocommerce-checkout input {
    font-size: 1rem;
}

h3#ship-to-different-address {
    font-size: 1.5rem;
}

/* Adaptacja kafelków pod sliderem na startowej pod slicka */
@media (min-width:1240px) {

    #dp__body .togglable__products .woocommerce ul.products.columns-4 {
        display: flex;
    }
}

/* Wtyczka do rabatów na podstawie wartości koszyka */

.wc-block-components-chip__text {
    text-transform: uppercase;
}

#dp__body.woocommerce-cart .wc-block-cart__submit-container span {
    background: #222;
    width: 100%;
    padding: 1rem;
    border-radius: 10px;
}

#dp__body.woocommerce-cart .wc-block-components-notices {
    display: none;
}

#dp__body button.wc-block-components-chip__remove {
    display: none;
}

#dp__body .wc-block-components-totals-discount__coupon-list {
    margin-top: 0.75rem;
}

/* Widzet "Kupuj więcej" */

.buy__more__container {
    gap: 0;
}

.buy__more {
    order: 11;
    /* border: 1px solid #222; */
    /* border-radius: 15px; */
    margin-top: 1rem;
}

.buy__more>div {
    width: fit-content;
    border: 1px solid #222;
    border-radius: 15px;
    max-width: 560px;
    margin-bottom: 2rem;
}

body.single-product .woocommerce div.product div.images {
    margin-bottom: 0;
}

p.buy__more__title {
    font-family: 'Quicksand';
    font-size: 22px;
    background: #222;
    color: #fff;
    width: 100%;
    padding: .75rem 1.25rem;
    font-weight: 500;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    text-transform: uppercase;
}

.wp-block-table td,
.wp-block-table th {
    border-left: none;
    border-right: none;
}

.buy__more figure.wp-block-table {
    padding: .25rem 1.5rem .5rem;
}

.buy__more tbody>tr:first-of-type>td {
    border-top: none;
}

.buy__more tbody>tr:last-of-type>td {
    border-bottom: none;
}

.buy__more tbody>tr td {
    padding: .85rem 0;
}

/* Ile zostało do następnej obnizki */

.discount__stages {
    display: none;
    background: #222;
    color: #fff;
    text-align: center;
    font-family: var(--font--family__secondary);
    font-size: 1.5rem;
    font-weight: 500;
    padding: 1.25rem 0rem;
}

/* Ile zostało produktów (ilościowo) do darmowej wysyłki */

.header__stages {
    margin-top: 80px;
    display: flex;
}

@media (max-width:1200px) {
    .header__stages {
        flex-direction: column;
    }
}

@media (max-width:600px) {

    .discount__stages,
    body .product__count__stages {
        font-size: 1.15rem;
        padding: 20px 2rem;
    }
}

.header__stages>div {
    flex: 50%;
}

.product__count__stages {
    background: #e5e5e5;
    color: #333;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 500;
    padding: 1.25rem 0rem;
    display: none;
}

/* Ukrywamy widget na startowej */

body.home .header__stages {
    display: none !important;
}

/* Pole wprowadzania ilości na kafelku produktu */

body#dp__body article#dp__woo li.product .quantity input.qty {
    font-size: 1rem;
}

li.product .quantity {
    display: flex;
}

body#dp__body .woocommerce ul.products li.product .button {
    font-size: 1rem;
    margin: initial;
}

.quantityButtons {
    display: flex;
    border: 1px solid #222;
    padding: 10px 12px;
    border-radius: 5px;
    gap: .4rem;
}

.quantityButtons button {
    cursor: pointer;
}

.add__to__cart__wrapper {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    flex-direction: row-reverse;
}

#dp__body article .quantityButtons .quantity input.qty {
    border: initial;
    width: min-content;
    font-size: 1rem;
    padding: 0;
}

.quantityButtons button {
    background: #222;
    color: #fff;
    outline: none;
    border: none;
    padding: 0;
    border-radius: 500px;
    width: 30px;
    height: 30px;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: monospace;
}

/* .woocommerce-notices-wrapper {
    display: none;
} */

span.producer-names {
    text-decoration: underline;
}

#dp__body li.product {
    display: flex !important;
}

#dp__body .woocommerce-product-gallery__image:first-of-type {
    border-bottom: none;
}

article#dp__woo div.product form.cart div.quantity:has(input[type="hidden"]) {
    display: none;
}

.quantityButtons .quantity .quantity button {
    display: none;
}

/* Powiadom mnie o dostępności */

.cwg_popup_submit {
    width: min-content;
    color: #fff;
    border: none;
    background: #222;
    font-family: 'Quicksand';
    text-transform: uppercase;
    font-size: 20px;
    padding: 20px 40px;
    border-radius: 5px;
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    margin-top: 0.5rem;
    cursor: pointer;
    transition: .3s;
    border: 1px solid #222;
}

@media (max-width:1240px) {
    .cwg_popup_submit {
        width: 100%;
        text-wrap: wrap;
    }
}

.cwg_popup_submit:hover {
    color: #222;
    background-color: #fff;
}

article#dp__woo div.product form.cart {
    margin-bottom: 1rem;
}

#dp__body .cwginstock-subscribe-form .panel-primary>.panel-heading {
    background: #fff;
    border: none;
    font-size: 1.5rem;
    padding: 1rem;
}

#dp__body .cwginstock-subscribe-form .panel-primary {
    border-width: 0;
}

#dp__body .cwginstock-subscribe-form .col-md-12,
#dp__body .cwginstock-subscribe-form .panel-body {
    padding: 0;
}

#dp__body .cwginstock-subscribe-form .panel-body {
    margin-top: 1rem;
}

#dp__body .cwginstock-panel-body input[type=text],
#dp__body .cwginstock-panel-body input[type=email] {
    border: none;
    background: #ebebeb;
    font-size: 1rem;
    padding: 1rem 1.15rem;
    text-align: left !important;
    color: #737373;
    margin-bottom: 1.15rem;
}

#dp__body .cwginstock-panel-body input[type=text]:focus-visible,
#dp__body .cwginstock-panel-body input[type=email]:focus-visible {
    outline: none;
}

#dp__body .cwg_iagree_checkbox {
    width: fit-content;
    font-size: 1rem;
    color: #222;
}

#cwg_iagree_checkbox_input {
    margin-right: .35rem;
    margin-bottom: 1.25rem;
}

#dp__body .cwgstock_button {
    border: 2px solid #222;
    border-radius: 5px;
    background: #222;
    font-family: 'Quicksand';
    font-size: 20px;
    padding: 12px 16px 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 500;
    margin-top: .59rem;
    cursor: pointer;
    transition: .3s;
}

@media (max-width:1240px) {
    #dp__body .cwgstock_button {
        text-wrap: wrap;
    }
}

#dp__body .cwgstock_button:hover {
    background-color: #fff;
    color: #222;
}

#dp__body .cwginstock-subscribe-form .panel-primary>.panel-heading h4 {
    font-weight: 600;
    color: #222;
    text-transform: uppercase;
}

#dp__body .cwginstock-subscribe-form .center-block {
    margin-bottom: .5rem;
}

#dp__body .cwg_iagree_checkbox a {
    text-decoration: underline;
}

#dp__body .cwginstock-subscribe-form .row {
    margin: 0;
}

#dp__body .cwginstock-subscribe-form .panel {
    box-shadow: initial;
}

.cwgstock_output {
    margin-top: 1.5rem;
}

/* Toggler widoku (siatka, lista, lista z obrazkami) */

.dp__view__wrapper {
    display: none;
    gap: .5rem;
    float: right;
    margin-left: 1.5rem;
    margin-top: 0.25rem;
}

.dp__view__wrapper img {
    width: 35px;
    height: 35px;
    object-fit: cover;
    padding: 5px;
    border: 1px solid transparent;
    transition: .3s;
    cursor: pointer;
}

.dp__view__wrapper img:hover {
    border-color: #222;
}

/* Obsługa view toggler (TYLKO DESKTOP) */

@media (min-width:1240px) {

    #dp__body.woocommerce .products.view__list__images {
        display: flex;
        flex-direction: column;
    }

    #dp__body.woocommerce .products.view__list__images li {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 1.5rem;
        padding: 0 1rem .5rem 0rem;
    }

    #dp__body.woocommerce ul.products.view__list__images li.product a img {
        max-height: 100px;
        max-width: 100px;
    }

    #dp__body.woocommerce ul.products.view__list__images li.product a {
        display: flex;
        align-items: center;
        width: 100%;
    }

    #dp__body.woocommerce ul.products.view__list__images li.product .add__to__cart__wrapper {
        margin: initial;
    }

    #dp__body.woocommerce ul.products.view__list__images li.product .product-labels {
        display: none;
    }

    #dp__body.woocommerce ul.products.view__list__images li.product .price {
        margin-left: auto;
        margin-bottom: 0.6rem;
    }

    #dp__body.woocommerce .products.view__list__images li.product .add__to__cart__wrapper>a {
        text-wrap: nowrap;
    }

    #dp__body.woocommerce .products.view__list__images li.product .woocommerce-loop-product__title {
        font-size: 1.25rem;
    }
}

/* Wyłączamy komunikat o darmowej dostawie */

.free-shipping-info {
    display: none;
}

/* Ukrywamy tagi */

.tagged_as {
    display: none;
}

/* Stylujemy przewidzianą datę dostawy InPost */

.wc-block-components-radio-control__label-group:has(.inpost__approx__date) {
    display: flex;
    flex-direction: column;
}

.inpost__approx__date {
    font-size: .875em;
    margin-bottom: 0.25rem;
}

#shipping_method .inpost__approx__date {
    font-weight: 500;
    margin-bottom: .5rem;
    width: 100%;
    display: block;
}

/* Ukrywamy pustą sekcję na stronie produktu */

.summary>p:empty {
    display: none;
}

p.iworks-omnibus {
    margin-bottom: 0;
}

/* PopUp na strone produktu "Jak pakujemy mrozonki?" */

/* Styl dla tła popupa */
#videoPopup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 9999;
}

/* Aktywacja popupa */
#videoPopup.active {
    opacity: 1;
    visibility: visible;
}

/* Styl dla zawartości popupa */
.popup-content {
    position: relative;
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    max-width: 90%;
    max-height: 90%;
    overflow: hidden;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
}

/* Styl dla samego video */
.popup-content video {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

/* Styl dla przycisku zamykania */
.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    font-size: 32px;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    z-index: 99999;
}

.close-btn:hover {
    background: transparent;
    color: #fff;
}

/* Styl dla tła overlay (umożliwia zamknięcie po kliknięciu) */
.popup-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: transparent;
    top: 0;
    left: 0;
}

#pakowanieTrigger {
    margin-top: 2rem;
    display: block;
}

.product_producer {
    margin-top: 1rem;
}

/* BLOG */

.posts__wrapper>.post>.media {
    position: relative;
}

.intro {
    display: none;
}

.post img {
    margin-bottom: 0;
    height: 100%;
    max-height: unset;
    transition: .5s;
}

.post img:hover {
    transform: scale(1.1);
    filter: brightness(0.85);
}

.post .media-body {
    position: absolute;
    bottom: 0;
    justify-content: flex-end;
    background: #fff;
    height: auto;
    opacity: .8;
    width: 100%;
    padding: .5rem;
}

.post .more-link {
    position: absolute;
    bottom: -20px;
    /* right: 0; */
    font-size: 10px;
}

.post .title {
    font-size: 12px;
}

@media (min-width: 1240px) {
    .posts__wrapper {
        grid-template-columns: repeat(3, 1fr);
    }
}

.post .media>a:first-of-type {
    width: 100%;
    height: 210px;
    overflow: hidden;
    border-radius: 10px;
}

.post .more-link:hover {
    text-decoration: underline;
}

/* WAŻNE! W edytorze strony włączamy przycisk "Zapisz" */

.editor-post-publish-button {
    display: block !important;
}

/* Pasek z markami na stronie głównej */

.home__brands img {
    width: 100px;
    height: 100px;
    display: block;
    margin: auto;
    object-fit: contain;
}

.home__brands a {
    display: block;
}

.home__brands p {
    text-align: center;
    margin-top: .25rem;
    font-size: 14px;
}

.home__brands p:hover {
    text-decoration: underline;
}

.home__brands {
    margin-bottom: 3.5rem;
}

@media (max-width:1240px) {
    #dp__body .home__brands .slick-prev {
        left: 15px;
    }

    #dp__body .home__brands .slick-next {
        right: 15px;
    }

    .home__brands {
        height: 130px;
        margin-bottom: 0;
    }
}

/* Wtyczka "Frequently bought together" */

section.woocommerce_after_single_product_summary.frequently-bought {
    clear: both;
}

h3.wt_product_recommendations_title {
    background: #222;
    color: #fff !important;
    padding: 1rem 0;
    text-transform: uppercase;
}

/* Odnośniki na sliderach na startowej */

p.slider__link__full {
    position: absolute;
    width: 100%;
    height: 100%;
}

p.slider__link__full>a {
    display: block;
    height: 100%;
    color: transparent;
}

/* Wtyczka GTranslate */

li.menu-item-gtranslate>div {
    position: relative !important;
    max-height: 25px;
    max-width: 85px;
}

.gt_float_switcher .gt_options a {
    font-size: 0;
}

div.gt_float_switcher img {
    margin: 0px;
}

div.gt_float_switcher .gt-open img {
    margin: auto;
    display: block;
}

/* Naprawiamy migające bloki dla wtyczki gTranslate */

html.translated-ltr div#deliveryHeaderWrapper {
    display: none !important;
}

html.translated-ltr .discount__stages {
    display: none !important;
}

html.translated-ltr .delivery__content {
    display: none !important;
}

@media (max-width:768px) {
    li.menu-item-gtranslate {
        display: flex;
        justify-content: center;
        padding: .5rem 0 !important;
    }

    .gt_float_switcher .gt_options a {
        background-color: #fff;
    }
}


/* Strona Thank You Page */

.thankyou__block {
    text-align: center;
}

.thankyou__block h2 {
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}

.thankyou__block h2::after {
    display: block;
    width: 50%;
    height: 1px;
    background: #bbbbbb;
    content: '';
    margin: 1rem auto 0;
}

p.thankyou__subtitle {
    margin-bottom: 1.5rem;
}

.thankyou__block strong {
    font-weight: 700;
}

a.thankyou__order__btn {
    display: block;
    text-decoration: none;
    background: #000;
    color: #ffffff;
    width: fit-content;
    margin: auto;
    padding: .75rem 1.25rem;
    font-weight: 500;
    border: 2px solid #000;
    margin-bottom: 1.75rem;
    margin-top: 1.25rem;
    transition: .3s;
}

a.thankyou__order__btn:hover {
    color: #000;
    background: #ffffff;
}

ul.brand-thumbnails {
    width: min(1240px, 90%);
    margin: auto;
}

.brand-thumbnails .slick-slide>div,
#dp__body .brand-thumbnails .slick-slide>div>li {
    width: 100% !important;
    height: 100%;
    display: block;
    aspect-ratio: 1 / 1;
}

#dp__body .brand-thumbnails .slick-slide>div>li>a {
    display: block;
    height: 100%;
    width: 100%;
}

#dp__body .brand-thumbnails .slick-slide>div>li>a>img {
    display: block;
    height: 100%;
    width: 85%;
    object-fit: contain;
    margin: auto;
}

/* Widget "Produkt w drodze". Domyslnie ukryty, pokazywany za posrednictwem JS */

.product__is__coming {
    display: none;
}

.product__is__coming>div {
    gap: 0;
    margin: 1rem 0 2.5rem;
    width: 72%;
}

@media (max-width:768px) {
    .product__is__coming>div {
        width: 100%;
    }
}

p.product__is__coming__heading {
    font-family: var(--font--family__secondary);
    font-weight: 600;
    font-size: 24px;
    margin-bottom: .5rem;
}

.product__is__coming img {
    width: 48px;
}

p.product__is__coming__content {
    font-family: var(--font--family__secondary);
    font-weight: 500;
    max-width: 320px;
    text-align: center;
}

span.dp__zamowienie {
    display: none;
}

/* Na potrzeby Pagespeed Insights */

.slick-slide[aria-hidden="true"] a {
    pointer-events: none;
}

.slick-slide[aria-hidden="true"] a,
.slick-slide[aria-hidden="true"] button,
.slick-slide[aria-hidden="true"] input {
    tabindex: -1 !important;
}

/* Progressbar na stronie koszyka */

img#dp_progressbar,
img#dp_progressbar2 {
    width: min(100%, 500px);
    display: block;
    margin: auto;
}

/* 
#dp__body #billing_nip_field {
    display: block;
} */

/* Strona checkout pole wyboru Faktura czy Paragon */

p#billing_faktura_czy_paragon_field {
    clear: both;
}

p#billing_faktura_czy_paragon_field>span {
    display: flex;
    align-items: center;
}

p#billing_faktura_czy_paragon_field>span>input {
    margin-right: .5rem;
}

/* Ukrywamy domyślnie NIP, bo musi być pokazany tylko przy wyborze "Faktura" na stronie Checkout */

p#billing_nip_field,
p#billing_company_field {
    display: none;
}

.woocommerce form .form-row .optional {
    display: none;
}

