@import url('general.css');

/* *****************************************************************************
                            HEADER STYLING
***************************************************************************** */
header form.wp-block-search {
    width: 44%;
    position: relative;
    z-index: 999;
}

header .wp-block-search__inside-wrapper:before {
    content: "\f52a";
    font-family: "Bootstrap-icons";
    font-size: 1em;
    color: var(--wp--preset--color--placeholder-text);
    position: absolute;
    right: 15px;
    top: 12px;
}

header .wp-block-search__inside-wrapper:focus-within::before {
    color: var(--wp--preset--color--primary-text);
}

header .wp-block-search__input {
    padding: 11px 15px;
    font-size: 16px;
    color: var(--wp--preset--color--primary-text) !important;
}

.mini-cart-wrap img {
    margin-bottom: -8px;
}

.mini-cart-count {
    position: absolute;
    background-color: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--white);
    top: -12px;
    right: -10px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    padding: 10px 6px;
    font-size: 14px;
}

.lss-clear {
    display: none;
}

header .wp-block-search__input::placeholder {
    color: var(--wp--preset--color--placeholder-text);
}

header .usp-stars {
    max-width: 80px;
}

@media (max-width: 780px) {
    header form.wp-block-search {
        width: 100%;
    }

    header .wp-block-search__input {
        background-color: var(--wp--preset--color--border-grey);
        padding: 5px 15px;
    }

    header .wp-block-search__input::placeholder {
        color: var(--wp--preset--color--primary);
    }

    header .wp-block-search__inside-wrapper:focus-within::before {
        color: var(--wp--preset--color--primary);
    }

    header .wp-block-search__inside-wrapper:before {
        top: 3px;
        color: var(--wp--preset--color--primary);
    }

    .lss-overlay {
        opacity: 0 !important;
    }

    .lss-modal {
        width: 100vw !important;
        left: -59px !important;
        border-radius: 0;
        box-shadow: none;
        padding-left: 0;
        padding-right: 0;
    }

    .lss-results {
        padding-left: 0;
        padding-right: 0;
    }

    .lss-results li {
        padding: 4px;
    }

    .lss-results li:not(:last-child) {
        border-bottom: 1px solid var(--wp--preset--color--border-grey);
    }

    .lss-item a {
        gap: 4px;
    }

    .mobile-menu-header {
        display: flex;
        justify-content: space-between;
        font-weight: 700;
        padding: 16px 16px 0 16px;
        font-size: large;

    }
}

/* *****************************************************************************
                            FOOTER STYLING
***************************************************************************** */
.footer-list-wrap ul.footer-products li,
.footer-contact-links-list li {
    margin-top: var(--wp--preset--spacing--small);
}

.footer-list-wrap ul.footer-products li:first-child,
.footer-contact-links-list li:first-child {
    margin-top: var(--wp--preset--spacing--medium);
}

.footer-contact-links-list li a {
    position: relative;
    padding-left: 2rem;
}

.footer-contact-links-list li a::before {
    font-family: "Bootstrap-icons";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--wp--preset--color--primary);
    font-size: larger;
    line-height: 1;
}

.footer-contact-links-list li a.phone-item::before {
    content: "\F5C1";
}

.footer-contact-links-list li a.wa-item::before {
    content: "\F618";
}

.footer-contact-links-list li a.mail-item::before {
    content: "\F32F";
}

.privacy-links ul li:not(:last-child)::after {
    content: '|';
    margin: 0 var(--wp--preset--spacing--large);
}

@media (max-width: 576px) {
    .footer-list-wrap:not(:last-child) {
        border-bottom: 1px solid var(--wp--preset--color--primary);
    }

    .footer-list-wrap.active {
        padding-bottom: var(--wp--preset--spacing--large);
    }

    .footer-list-wrap h4 {
        padding: var(--wp--preset--spacing--large) 0;
        cursor: pointer;
    }

    .footer-list-wrap h4:after {
        content: "\F282";
        font-family: "Bootstrap-icons";
        font-size: 1em;
        color: var(--wp--preset--color--primary-text);
        float: right;
    }

    .footer-list-wrap.active h4:after {
        transform: rotate(180deg);
    }

    .footer-list-wrap ul.footer-products {
        max-height: 0;
        overflow: hidden;
    }

    .footer-list-wrap ul.footer-products li:first-child {
        margin-top: -4px;
    }

}

/* *****************************************************************************
                            HOME PAGE STYLING
***************************************************************************** */
/* Hero Section */

.hero-section .icon-list {
    display: flex;
    flex-direction: column;
    gap: var(--wp--preset--spacing--regular);
}

.icon-list.check-icon-list li::before {
    content: "\F633";
    background-color: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--accent);
    height: 20px;
    width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
    font-size: 18px;
    margin-top: 3px;
}

@media (max-width: 780px) {
    .hero-section {
        background-image: unset !important;
    }
}

/* How it works section */
.tab-content {
    display: none;
    counter-reset: step;
    width: 100%;
}

.tab-content .accordion-item__heading {
    position: relative;
    padding-left: 2.75rem !important;
    counter-increment: step;
}

.tab-content .accordion-item__heading::before {
    content: counter(step);
    position: absolute;
    left: 12px;
    top: 10px;
    color: var(--wp--preset--color--white);
    height: 34px;
    width: 34px;
    border-radius: 50px;
    background-color: var(--wp--preset--color--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tab-content .accordion-item__heading:has(.accordion-item__toggle[aria-expanded="true"]) {
    border-bottom-right-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

.accordion-item__toggle-icon {
    color: var(--wp--preset--color--secondary-text);
    font-size: 32px;
}

/* We Plant Trees Section */
.we-plant-section figure {
    position: absolute;
    top: -100px;
}

/* *****************************************************************************
                            ABOUT US PAGE STYLING
***************************************************************************** */
@media (min-width: 780px) {
    .benefits-section .wp-block-columns {
        flex-wrap: wrap !important;
        justify-content: center;
    }

    .benefits-section .wp-block-columns .wp-block-column {
        width: 40%;
        flex-grow: unset !important;
        flex-basis: unset !important;
        text-align: center;
    }
}

/* *****************************************************************************
                            CONTACT PAGE STYLING
***************************************************************************** */
.wpcf7-form label {
    font-weight: 700 !important;
    margin-bottom: var(--wp--preset--spacing--large);
}

.wpcf7-form p {
    margin-bottom: var(--wp--preset--spacing--x-large);
}

.wpcf7-form input,
.wpcf7-form textarea {
    width: 100%;
    min-height: 35px;
    font-size: 16px !important;
    background-color: var(--wp--preset--color--white);
    border: 1px solid var(--wp--preset--color--secondary-text);
    border-radius: 8px;
    box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.08);
    padding: 0 14px;
    margin-top: 5px;
}

.wpcf7-form textarea {
    padding-top: 8px;
    font-family: var(--wp--preset--font-family--open-sans);
}

.wpcf7-form input::placeholder,
.wpcf7-form textarea::placeholder {
    color: var(--wp--preset--color--placeholder-text);
}

.wpcf7-form .send-btn p {
    margin-top: var(--wp--preset--spacing--large);
    margin-bottom: 0;
}

.wpcf7-form input[type="submit"] {
    background-color: var(--wp--preset--color--primary);
    padding-top: 12px;
    padding-bottom: 12px;
    color: var(--wp--preset--color--white);
    font-weight: 500;
    font-size: 18px !important;
    border: none;
    cursor: pointer;
}

/* *****************************************************************************
                            SEO PAGES STYLING
***************************************************************************** */
.banner-seo-image {
    position: absolute;
    top: -97px;
    width: 75%;
}

.nintendo-img {
    top: -26px;
    width: 60%;
    left: 90px;
}

.ipad-img,
.apple-watch-img {
    top: -50px;
    width: 60%;
}

/* *****************************************************************************
                            BLOG PAGE STYLING
***************************************************************************** */
.wp-block-categories-list.wp-block-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cat-item {
    background-color: var(--wp--preset--color--primary-background);
    padding: 6px 12px;
    border: 1px solid var(--wp--preset--color--border-grey);
    border-radius: 4px;
}

.wp-block-post-excerpt__more-text {
    margin-top: 6px;
}

.custom-toc {
    position: relative;
    padding-left: 24px;
}

.custom-toc ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.custom-toc li {
    margin-bottom: 10px;
    font-weight: 400;
    transition: 0.2s;
}

/* Active heading */
.custom-toc li.active {
    font-weight: 700;
}

/* Vertical line background */
.toc-progress {
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: #eee;
}

/* Animated progress fill */
.toc-progress span {
    display: block;
    width: 100%;
    height: 0%;
    background: #000;
    transition: height 0.2s linear;
}

@media(max-width:767px) {
    .single-post .wp-block-cover {
        margin: 0 -5% !important;
        border-radius: 0!important;
    }
}