@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
    html.front {
        scroll-behavior: smooth;
        overflow-x: hidden;
    }

    .front body {
        word-spacing: 0.16rem;
        @apply relative text-white text-base font-poppins antialiased font-normal leading-normal bg-quper-red;
    }

    .front main {
        overflow-x: hidden;
    }

    section.top-line::before {
        content: "";
        position: absolute;
        top: 0;
        left: 30px;
        right: 30px;
        border-top: 1px solid #E0DDD9;
    }

    section.bottom-line::after {
        content: "";
        position: absolute;
        top: 0;
        left: 30px;
        right: 30px;
        border-bottom: 1px solid #E0DDD9;
    }

    .alignfull {
        @apply max-w-none;
    }

    .container {
        @apply mx-auto px-4 xl:px-0;
    }

    h1 {
        @apply font-paytoneone text-[40px] lg:text-[64px] leading-none;
    }

    h1.enhanced {
        @apply font-paytoneone text-[50px] lg:text-[75px] leading-none;
    }

    h2 {
        @apply font-paytoneone text-[24px] lg:text-[44px] leading-tight;
    }

    h3 {
        @apply font-paytoneone text-[20px] lg:text-[32px] leading-tight;
    }

    p {
        @apply last:mb-0 empty:mb-0;
        @apply mb-8;
        @apply break-words;
    }

    a:not(.btn-primary):not(.btn-secondary):not(.nav-item):not(#logo):not(#logo-small):not(.home-icon):not(.wc-block-components-button):not(.add-request-quote-button) {
        @apply hover:opacity-80;
    }

    .entry-content {
        @apply break-words max-w-full;

        ol,
        ul {
            @apply list-outside last:mb-0 ml-0 mb-6 mt-10 only:mt-0;

            li {
                @apply mb-2.5 last:mb-0;
                @apply marker:text-quper-golden;
            }
        }

        ol {
            @apply list-decimal;

            li {
                @apply ml-[25px];
            }
        }

        ul {
            @apply list-disc;

            li {
                @apply ml-[25px];
            }
        }

        p {
            @apply mb-4 last:mb-0 leading-relaxed;
        }
    }

    .entry-content.enhanced {
        p {
            @apply text-lg;
        }
    }

    .shrink-logo {
        transform: scale(0.5);
    }

    .btn-primary {
        @apply !flex !w-fit !items-center !shrink-0 !bg-quper-yellow !border-2 !border-quper-yellow !rounded-[10px] !overflow-hidden !px-10 !py-3 !font-paytoneone !text-white !text-lg !leading-tight;
        @apply hover:!bg-transparent
    }

    .single_add_to_cart_button.btn-primary {
        @apply !flex !w-fit !items-center !shrink-0 !gap-x-4 !bg-black !rounded-5px !overflow-hidden !border !border-black px-5 xl:!px-25 !py-4 !text-white !text-base !font-bold !leading-tight;
        @apply hover:!bg-white hover:!border hover:!border-black hover:!text-quper-dark-blue;
    }

    .btn-primary:hover img {
        filter: invert(1);
    }

    .btn-secondary:hover img {
        filter: invert(1);
    }

    .btn-secondary {
        @apply flex w-fit items-center shrink-0 bg-transparent border-2 border-quper-yellow rounded-[10px] overflow-hidden px-10 py-3 font-paytoneone text-white text-lg leading-tight;
        @apply hover:bg-quper-yellow
    }

    .swiper-prev,
    .swiper-next,
    .pagination-prev,
    .pagination-next {
        @apply transition-all ease-in bg-white w-[56px] h-[56px] rounded-full text-quper-dark-blue;
        @apply flex items-center justify-center hover:cursor-pointer;

        &.swiper-button-disabled{
            @apply invisible;
        }
    }

    .swiper-pagination.swiper-pagination-horizontal {
        @apply w-max mx-auto relative;
    }

    .swiper-pagination-bullet {
        @apply inline-block mt-3 bg-black opacity-100 w-3 h-3 rounded-full mr-3 last:mr-0 only:hidden;
    }

    .swiper-pagination-bullet-active {
        @apply bg-black;
    }

    .page-numbers {
        @apply flex items-center gap-x-6;
    }

    .page-numbers a {
        @apply text-base;
    }

    .page-numbers span.current {
        @apply text-white px-2 py-1 bg-quper-golden text-base;
    }

    .cards-testimonials .swiper-slide {
        height: auto;
    }
}

h1.styled {
    @apply text-92px lg:text-262px text-quper-golden font-thin;
}

h2.styled {
    @apply text-6xl lg:text-92px text-quper-golden font-thin;
}

h3.styled {
    @apply text-5xl lg:text-6xl text-quper-golden font-thin;
}

.front form input[type=password],
.front form input[type=email],
.front form input[type=tel],
.front form input[type=number]:not(.qty),
.front form select,
.front form .select2-selection,
.front form textarea,
.front form input[type=text]:not(.storelocator-city) {
    @apply border-2 border-quper-golden rounded-5px bg-white text-xs font-medium text-quper-dark-blue p-3;
}

.select2-container .select2-selection--single {
    @apply !h-auto;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    @apply !top-4;
}

.front form input[type=password]::placeholder,
.front form input[type=email]::placeholder,
.front form textarea::placeholder,
.front form input[type=text]:not(.storelocator-city)::placeholder {
    @apply text-sm;
}

.front form input[type=password]:focus,
.front form input[type=email]:focus,
.front form textarea:focus,
.front form input[type=text]:not(.storelocator-city):focus {
    @apply border-quper-golden;
}

.front form label {
    @apply pb-2.5 text-sm;
}

#add_payment_method #payment, .woocommerce-cart #payment, .woocommerce-checkout #payment {
    @apply bg-quper-golden;
}

:where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce button.button,
.woocommerce a.wc-forward {
    @apply !flex !items-center gap-x-5 !w-fit !items-center !border-solid !shrink-0 !bg-quper-yellow !border-2 !border-quper-yellow !rounded-[10px] !overflow-hidden !p-5 !text-white !leading-tight;
    @apply hover:!bg-transparent hover:!text-quper-yellow;
}

.woocommerce form {
    @apply !border-quper-golden;
}

.woocommerce form span em {
    @apply pt-2.5 text-xs;
}

.woocommerce form legend {
    @apply pt-10 pl-[3px] text-3xl lg:text-4xl mb-4 leading-normal;;
}

.woocommerce-LostPassword,
.woocommerce-form-register p:nth-child(2) {
    @apply pt-2.5 text-sm;
}

.woocommerce-page main .woocommerce .single-product div.product div.summary {
    @apply w-full lg:w-[42%];
}

.wp-block-button.wc-block-components-product-button {
    justify-content: end !important;
}

.swiper-slide {
    height: auto !important;
}

.quper-product-img img {
    @apply object-cover;
}

.quper-product-img img[src$=".png"] {
    @apply object-contain;
}

.entry-content a {
    @apply text-quper-golden;
}

.map-basic,
.storelocator-map-wrapper,
#storelocator-map {
    min-height: calc(100dvh - 108px);
    max-height: calc(100dvh - 108px);
}

.map-basic::-webkit-scrollbar {
    display: none;
}

.map-basic {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.wc-block-cart__submit {
    @apply !p-0;
}

.wc-block-cart__submit a {
    @apply !min-h-0;
}

.wc-block-components-checkout-place-order-button {
    @apply !flex !w-fit !items-center !shrink-0 !gap-x-4 !bg-black !rounded-5px !overflow-hidden !border !border-black px-5 xl:!px-25 !py-4 !text-white !text-base !font-bold !leading-tight;
    @apply hover:!bg-white hover:!border hover:!border-black hover:!text-quper-dark-blue;
}

:where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce button.button.alt {
    @apply !flex !items-center gap-x-5 !w-fit !items-center !border-solid !shrink-0 !bg-quper-yellow !border-2 !border-quper-yellow !rounded-[10px] !overflow-hidden !p-5 !text-white !leading-tight;
    @apply hover:!bg-transparent hover:!text-quper-yellow;
}

.single-product .wc-block-components-button:not(.wc-block-components-drawer__close) {
    @apply !flex !w-full !items-center !font-bold !border-solid !shrink-0 !bg-quper-yellow !border-2 !border-quper-yellow !rounded-[10px] !overflow-hidden !p-5 !text-white !leading-tight;
    @apply hover:!bg-transparent hover:!text-quper-yellow;
}

.wc-block-components-button:not(.wc-block-components-drawer__close) {
    @apply !flex !w-full !items-center !font-bold !border-solid !shrink-0 !bg-quper-yellow !border-2 !border-quper-yellow !rounded-[10px] !overflow-hidden !p-5 !text-white !leading-tight;
    @apply hover:!bg-white hover:!text-quper-yellow;
}

.wc-block-components-drawer__close svg {
    color: #010452;
}

.wc-block-components-drawer__content {
    color: #010452;
}

.woocommerce-checkout #payment div.payment_box {
    background-color: #CEBC97;
}

.woocommerce-checkout #payment div.payment_box::before {
    border: 1em solid #CEBC97;
    border-right-color: transparent;
    border-left-color: transparent;
    border-top-color: transparent;
}

.wc-block-mini-cart__badge {
    @apply text-quper-dark-blue text-sm;
}

.single-product .woocommerce-tabs {
    @apply mx-auto px-4 xl:px-0 max-w-full pb-12.5 lg:pb-25;
}

.single-product .yith-ywraq-add-to-quote {
    @apply mx-auto px-4 xl:px-0 max-w-full pt-12.5;
}

@media (min-width: 640px) {
    .single-product .woocommerce-tabs,
    .single-product .yith-ywraq-add-to-quote {
        max-width: 640px;
    }
}
@media (min-width: 768px) {
    .single-product .woocommerce-tabs,
    .single-product .yith-ywraq-add-to-quote {
        max-width: 768px;
    }
}
@media (min-width: 1024px) {
    .single-product .woocommerce-tabs,
    .single-product .yith-ywraq-add-to-quote {
        max-width: 1160px;
    }
}

.quper-form.gf-basic .gform_wrapper.gravity-theme input[type=submit],
.quper-form.gf-basic .gform_wrapper.gravity-theme .gpnf-nested-entries-container button,
.tingle-modal-box .gpnf-btn-cancel,
.tingle-modal-box .gpnf-btn-submit {
    @apply !flex !w-fit !items-center !shrink-0 !bg-quper-yellow !border-2 !border-quper-yellow !rounded-[10px] !overflow-hidden !p-5 !font-bold !text-white !leading-tight !cursor-pointer;
    @apply hover:!bg-transparent
}

.woocommerce .add-request-quote-button.button {
    @apply !flex !w-fit !items-center !border-solid !shrink-0 !bg-quper-yellow !border-2 !border-quper-yellow !rounded-[10px] !overflow-hidden !p-5 !font-bold !text-white !leading-tight !cursor-pointer;
    @apply hover:!bg-transparent
}

section h1.all-caps {
    @apply text-[28px] lg:text-[64px] md:max-w-[470px] lg:max-w-none;
}