/*!
Theme Name: PledgeToRecycle
*/

@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
    html {
        font-family: 'Inter', system-ui, sans-serif;
        color: #0F172A;
    }

    h1, h2, h3, h4, h5 {
        @apply font-heading font-normal text-[#0F172A];
    }

    h1 {
        @apply text-[4rem] lg:text-[6.25rem] leading-[56px] lg:leading-[90px];
    }

    h2 {
        @apply text-5xl md:text-6xl;
    }

    h3 {
        @apply text-[34px] leading-[34px] md:leading-[48px] md:text-5xl;
    }

    h4 {
        @apply text-[2.125rem] leading-[33px] md:leading-[2.438rem] md:text-[39px];
    }

    h5 {
        @apply text-[1.75rem] leading-[28px];
    }

    .subheading {
        @apply font-sans font-light text-xl text-[#0F172A];
    }

    body {
        display: flex;
        flex-direction: column;
        min-height: 100vh; /* Ensure the body takes up at least the full viewport height */
    }
    #content {
        flex-grow: 1;
    }
}

@layer components {
    .btn {
        @apply py-2.5 px-5 mr-2 no-underline mb-2 text-sm font-medium text-black focus:outline-none bg-white rounded-lg border border-black/10 hover:bg-black/5 hover:text-secondary focus:z-10 focus:ring-4 focus:ring-gray-200;
    }

    .btn.primary-btn {
        @apply bg-primary text-black border-primary;
    }

    .btn.secondary-btn {
        @apply bg-secondary text-black border-secondary;
    }

    .select2-results__options::-webkit-scrollbar {
        width: 6px;
        margin-right: 10px;
        background-clip: padding-box;
        scrollbar-width: thin;
        scrollbar-gutter: stable;
        scrollbar-color: var(--color-primary-light) var(--color-primary);
    }

    .select2-results__options {
        overflow-y: auto;
        scrollbar-gutter: stable;
        margin-right: 10px;
    }

    .select2-results__options::-webkit-scrollbar-track {
        background-color: var(--color-primary-light);
        height: 4px;
        border-radius: 10px;
        width: 2px;
        background-clip: padding-box;
        margin-right: 10px;
        border-right: 10px solid rgba(0, 0, 0, 0);
        border-top: 10px solid rgba(0, 0, 0, 0);
        border-bottom: 10px solid rgba(0, 0, 0, 0);
    }

    .select2-results__options::-webkit-scrollbar-thumb {
        background-clip: padding-box;
        background-color: #81BC41;
        width: 2px;
        border-radius: 10px;
        border-right: 10px solid rgba(0, 0, 0, 0);
        border-top: 10px solid rgba(0, 0, 0, 0);
        border-bottom: 10px solid rgba(0, 0, 0, 0);
    }

    .select2-results__options::-webkit-scrollbar-button {
        display: none;
    }

    .mobile-filters-container .select2.select2-container {
        width: 100% !important;
    }

    .mobile-filters-container .select2 .select2-selection__rendered {
        background-color: var(--color-primary);
        color: #ffffff;
        border-radius: 10px;
        width: 100%;
    }

    .mobile-filters-container .select2-container--default .select2-selection--single {
        border-radius: 10px;
        border: none;
    }

    .mobile-filters-container .select2-container--default .select2-selection--single .select2-selection__rendered {
        color: #fff;
    }

    .mobile-filters-container .select2-selection__rendered {
        border-radius: 10px;
        font-size: 14px;
        padding: 8px;
    }

    .mobile-filters-container .select2-container--default .select2-selection--single .select2-selection__arrow {
        top: 50% !important;
        right: 0;
        transform: translateY(-50%) !important;
    }

    .mobile-filters-container .select2-container--default .select2-selection--single .select2-selection__arrow b {
        /*border-color: white !important;*/
        background-color: transparent;
        background-size: contain;
        background-repeat: no-repeat;
        border: none !important;
        height: 8px !important;
        width: 8px !important;
        left: 50% !important;
        background-image: url('/wp-content/themes/pledge-to-recycle/assets/images/icons/chevron-down-white.svg');
    }

    .mobile-filters-container .select2-selection.select2-selection--single {
        height: 100%;
    }

    .forminator-col-6, .forminator-col-12 {
        width: 100%;
    }

    .forminator-row {
        font-weight: 400;
        font-size: 14px;
        line-height: 17px;
        display: block;
    }

    .forminator-label {
        font-weight: 400;
        font-size: 1rem;
        line-height: 17px;
        color: #191D23;
        margin-bottom: 5px;
    }

    .forminator-row {
        display: flex;
    }

    .forminator-row .forminator-col .forminator-field {
        display: flex;
        flex-wrap: wrap;
        flex-direction: column;
    }

    .forminator-custom-form {
        width: 100%
    }

    .forminator-input {
        padding: 0 12px;
        color: #A0ABBB;
        border: 1px solid #A0ABBB;
        border-radius: 4px;
        height: 36px;
    }

    .forminator-select--field {
        padding: 0 12px;
        color: #A0ABBB;
        border: 1px solid #A0ABBB;
        border-radius: 4px;
        height: 36px;
    }

    .forminator-row-last .forminator-button {
        @apply bg-primary hover:bg-primary-hover transition-all rounded-lg py-[8px] px-[16px] md:px-12 md:py-3 inline;
    }

    .forminator-row-last .forminator-field {
        display: inline !important;
    }

    .live-item-search-container .select2-selection{
        border-radius: 8px !important;
        border: 1px solid white !important;
        /*padding: 14px 0;*/
    }

    .live-item-search-container .select2-container--default .select2-search--dropdown .select2-search__field {
        border: none;
    }

    /* clears the ‘X’ from Internet Explorer */
    input[type=search]::-ms-clear { display: none; width : 0; height: 0; }
    input[type=search]::-ms-reveal { display: none; width : 0; height: 0; }
    /* clears the ‘X’ from Chrome */
    input[type="search"]::-webkit-search-decoration,
    input[type="search"]::-webkit-search-cancel-button,
    input[type="search"]::-webkit-search-results-button,
    input[type="search"]::-webkit-search-results-decoration { display: none; }

    .prose :where(ul > li):not(:where([class~="not-prose"] *))::marker {
        color: black !important;
    }

    .acf\/hero-featured .slick-dots {
        position: absolute;
        bottom: 20px;
        z-index: 200;
    }

    .acf\/hero-featured .slick-dots li button {
        z-index: 200;
        position: relative;
    }

    .nav-search-toggle {
        border: 0.5px solid black;
        display: flex;
    }

    .toggle-width {
        max-width: 400px !important;
        transition: all 0.7s !important;
    }

    #siteSearch {
        width: auto;
        max-width: 0;
        transition: all 0.7s;
    }

    #siteSearch .site-search-block {
        border-radius: 0px !important;
        border: 0 !important;
    }
    #siteSearch .site-search-block {
        background-color: transparent;
        border: 0px solid #aaa;
        border-radius: 0;
    }

    .select2-dropdown {
        background-color: transparent;
        border: 0;
    }

    .select2-container--default .select2-search--dropdown .select2-search__field {
        border: 0 !important;
        font-size: 0.8rem !important;
    }

    .select2-container--default .select2-results>.select2-results__options {
        font-size: 12px;
        outline: none;
        border-radius: 4px;
    }

    .select2-results__option {
        padding: 7px;
    }

    [type='search']:focus {
        box-shadow: none;
    }

    .select2-results__option--selectable {
        font-size: 0.8rem;
    }

    .select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
        background-color: white;
        color: black;
    }

    .select2-results__options {
        margin-right: 0 !important;
        background: white;
    }

    #search-results .select2-dropdown {
        background-color: #fff !important;
        padding: 5px;
        border-radius: 10px;
    }

    #search-results .select2-search__field {
        padding: 0 !important;
    }

    .live-item-search-container .select2-container {
        padding: 5px;
    }

    .live-item-search-container .select2-selection__arrow {
        visibility: hidden;
    }

    #siteSearch .select2-container {
        top: 16px !important;
    }

    #siteSearch .select2-results {
        position:absolute;
        top: 135%;
        width: 100%;
    }

    #siteSearch .select2-container--default .select2-selection--single {
        display: none;
    }

    .klw-container form {
        display: flex;
        flex-wrap: wrap;
        flex-direction: column;
        align-items: center;
    }

    .klw-title--default {
        text-align: center;
        width: 100%;
    }

    @media (min-width: 640px) {
        .pl-container {
            padding-left: calc(max(16px, (100vw - 640px) / 2));
        }
    }
    @media (min-width: 768px) {
        .pl-container {
            padding-left: calc(max(16px, (100vw - 768px) / 2));
        }
    }
    @media (min-width: 1024px) {
        .pl-container {
            padding-left: calc(max(16px, (100vw - 1024px) / 2));
        }
    }
    @media (min-width: 1280px) {
        .pl-container {
            padding-left: calc(max(16px, (100vw - 1280px) / 2));
        }
    }
    @media (min-width: 1536px) {
        .pl-container {
            padding-left: calc(max(16px, (100vw - 1536px) / 2));
        }
    }
}