/*======================================
  *** General Styles ***
======================================*/

.image-right-rotation {
    transform: scale(var(--scale-image)) rotate(var(--rotate-image-deg));
}

.image-left-rotation {
    transform: scale(var(--scale-image)) rotate(var(--rotate-image-minus-deg));
}

.small-text {
    font: var(--small-text);
}

.small-text-regular {
    font: var(--small-text-regular);
}

.dark-green-text-color {
    color: var(--dark-green);
}

.tiny-text-custom-font {
    font: var(--tiny-text-custom-font);
    text-transform: uppercase;
}

.margin-bottom-20 {
    margin-bottom: 20px;
}

@media (max-width: 767px) {
    .wp-block-stackable-columns.full-width-mobile.alignfull>.stk-row:not(.alignfull) {
        width: var(--full-width) !important;
    }
}

.border-radius-medium {
    border-radius: var(--border-radius-medium);
}

/*--- Footer ---*/
/*Make columns in footer only take on the width of their content*/
@media (min-width: 768px) {
    #footer .footer-columns .footer-column {
        flex-grow: 0 !important;
        flex-shrink: 0 !important;
        flex-basis: auto !important;
        width: auto !important;
        /* Optional to ensure no width restriction */
    }

    #footer .footer-columns .stk-row:not(.social-media-icons-footer .stk-row) {
        justify-content: space-between;
    }
}

/*--- Header ---*/
/*Adjust social media icons on offcanvas menu*/
#offcanvas .ct-header-socials .ct-icon-container {
    width: 40px;
    height: 40px;
}

/*--- Banner Above Header ---*/
/*Align reviews*/
.banner-above-header .reviews {
    display: flex;
    gap: 10px;
}

/*Resize image*/
.banner-above-header img {
    width: 20px;
}

/*Optimize for mobile and tablet*/
@media (max-width: 767px) {
    .banner-above-header.gspb_container {
        --gap: 3rem !important;
    }
}

@media (min-width: 768px) and (max-width: 1000px) {
    .banner-above-header.gspb_container {
        --gap: 5rem !important;
    }
}

/*Style coupon code button*/
.banner-above-header button.promo-code-btn {
    color: inherit;
    background: none;
}

/*======================================
  *** Homepage Styles ***
======================================*/

/*--- Sustainability Section ---*/

/* Animations */

/* Snowflake falling animation */
@keyframes snowflake-fall {
    0% {
        transform: translateY(-100px);
        /* Start at the original position */
        opacity: 0.5;
    }

    100% {
        transform: translateY(0);
        /* Move down */
        opacity: 1;
    }
}

/* Snowflake rotation on hover */
@keyframes rotate-snowflake {
    0% {
        transform: rotate(0deg);
        /* Starting at the original position */
    }

    50% {
        transform: rotate(45deg);
        /* Rotate right to 45 degrees */
    }

    100% {
        transform: rotate(0deg);
        /* Rotate back to the original position */
    }
}

/* Snowflake styles */
.snowflake {
    position: absolute;
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 2;
    /* Behind content */
    transition:
        transform 0.1s ease-in-out,
        opacity 0.3s ease-in-out;
    opacity: 0;
}

.snowflake.falling {
    animation: snowflake-fall 3s ease-out forwards;
    /* Play falling animation */
}

/* Hover effect for rotating snowflakes */
.snowflake:hover {
    animation: rotate-snowflake 0.6s ease-in-out;
}

/* Snowflake sizes */
.snowflake.big {
    background-image: url("../images/big-snowflake.png");
}

.snowflake.medium {
    width: clamp(32px, 6vw, 55px);
    height: clamp(35px, 6vw, 60px);
    background-image: url("../images/medium-snowflake.svg");
}

.snowflake.small {
    width: clamp(30px, 4vw, 40px);
    height: clamp(30px, 4vw, 40px);
    background-image: url("../images/small-snowflake.svg");
}

@media (min-width: 768px) {

    /* Individual snowflake positions */
    .snowflake:nth-child(1) {
        width: clamp(45px, 8vw, 87px);
        height: clamp(45px, 8vw, 87px);
        top: calc(15vw - 100px);
        left: 0;
    }

    .snowflake:nth-child(2) {
        width: clamp(45px, 6vw, 55px);
        height: clamp(45px, 6vw, 60px);
        bottom: 15%;
        right: 3%;
    }

    .snowflake:nth-child(3) {
        bottom: 20%;
        left: calc(25vw - 225px);
    }

    .snowflake:nth-child(4) {
        top: 25%;
        right: 40%;
    }

    .snowflake:nth-child(5) {
        bottom: 25%;
        right: 35%;
    }

    .snowflake:nth-child(6) {
        top: 15%;
        right: 15%;
    }
}

@media (max-width: 767px) {

    /* Individual snowflake positions */
    .snowflake:nth-child(1) {
        width: clamp(45px, 8vw, 87px);
        height: clamp(45px, 8vw, 87px);
        top: calc(15vw - 35px);
        left: 0;
    }

    .snowflake:nth-child(2) {
        height: clamp(35px, 6vw, 60px);
        width: clamp(35px, 6vw, 60px);
        bottom: 15%;
        right: 3%;
    }

    .snowflake:nth-child(3) {
        bottom: 20%;
        left: calc(25vw - 80px);
    }

    .snowflake:nth-child(4) {
        bottom: 32%;
        right: 25%;
    }

    .snowflake:nth-child(5) {
        bottom: 35%;
        left: 5%;
    }

    .snowflake:nth-child(6) {
        top: 15%;
        right: 15%;
    }
}

/*--- Product Loop ---*/
/*Remove bottom margin*/
.home div.woocommerce.columns-3 {
    margin-bottom: 0;
}

/*======================================
  *** Thank You Page Styles ***
======================================*/

/*--- Bank Details Section ---*/

/*Text Styling*/
body.woocommerce-order-received div.woocommerce-order span.bank-details-thank-page-heading {
    color: var(--theme-headings-color);
    font-weight: 600;
    font-size: 15px;
}

/*======================================
  *** Header ***
======================================*/
/*--- Country Switcher ---*/

/* Desktop */
.country-switcher-container {
    position: relative;
    display: flex;
    height: 100px;
    margin-bottom: 0px;
}

header .entry-content p {
    margin-bottom: 0px;
}

.country-current {
    display: flex;
    align-items: center;
}

.country-dropdown {
    position: absolute;
    top: 100%;
    left: -16px;
    background-color: white;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
    margin-top: 10px;
    z-index: 10;
    display: none;
}

.country-dropdown {
    padding: 12px 16px;
    white-space: nowrap;
    width: 100%;
    box-sizing: content-box;
}

.country-dropdown li a {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.country-dropdown li:hover {
    background-color: var(--white);
}

.country-switcher-container img {
    width: 25px;
    height: auto;
    margin-right: 8px;
}

.country-switcher-container span {
    font: var(--header-text);
    text-transform: uppercase;
    color: var(--theme-text-color);
}

/*Mobile*/
.mobile-country-tabs {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: space-around;
    position: absolute;
    top: 16px;
}

@media (min-width: 768px) {
    .mobile-country-tabs {
        top: 26px;
    }
}

.mobile-country-tabs-title {
    flex: 1;
    text-align: center;
    padding-bottom: 10px;
    margin-right: 25px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-country-tabs-title a {
    text-decoration: none;
    color: var(--dark-green);
    font: var(--header-text);
    display: flex;
    align-items: center;
}

.mobile-country-tabs-title img.mobile-country-flag {
    width: 20px;
    height: auto;
    margin-right: 8px;
    /* Space between flag and text */
}

.mobile-country-tabs-title.is-active {
    border-bottom: 2px solid var(--dark-green);
}

#offcanvas .entry-content p {
    margin-bottom: 0;
}

#offcanvas .ct-panel-content-inner {
    padding-top: 35px;
}

/*======================================
  *** Hide header, footer and content blocks on EU pages ***
======================================*/

html:not([lang$="-CH"]) :is(#header, #footer, [data-block^="hook:"]) {
    display: none;
}