/*
Theme Name: Blockbase
Theme URI: https://wordpress.com/theme/blockbase
Author: Automattic
Author URI: https://automattic.com/
Description: Blockbase is a simple theme that supports full-site editing. It comes with a set of minimal templates and design settings that can be manipulated through Global Styles. Use it to build something beautiful.
Requires at least: 6.1
Tested up to: 6.1
Requires PHP: 5.7
Version: 3.1.21
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: blockbase
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, theme-options, threaded-comments, translation-ready, wide-blocks, style-variations

Blockbase WordPress Theme, (C) 2021 Automattic, Inc.
Blockbase is distributed under the terms of the GNU GPL.

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
*/
/******Main Style***********/
@media (min-width:1080px){
    .desktop{
        display:flex;
    }

    .mobile{
        display:none !important;
    }

    body.page-id-11 main .entry-content > .wp-block-columns,
    body.page-id-11 main .entry-content .wp-block-cover{
        padding:80px !important;
    }
}

@media (max-width:1079px){
    .desktop{
        display:none !important;
    }

    .mobile{
        display:flex;
    }

    body.page-id-11 main .entry-content > .wp-block-columns,
    body.page-id-11 main .entry-content .wp-block-cover{
        padding:40px !important;
    }

    body.page-id-11 .steps .wp-block-column:last-of-type{
        margin-bottom:0px !important;
    }

    body.page-id-11 .steps .wp-block-column:first-of-type{
        margin-top:-20px !important;
    }

    body.page-id-11 .steps{
        margin:0px !important;
        padding:0px !important;
    }

    body.page-id-11 .steps .wp-block-column{
        margin-bottom:40px !important;
    }
}

body.page-id-11 .wp-block-cover p,
body.page-id-11 .wp-block-cover .wp-block-heading,
body.page-id-11 .wp-block-cover .wp-block-list,
body.page-id-11 .wp-block-cover label{
    text-shadow: 1px 2px 8px rgba(0,0,0,0.8);
    -webkit-text-shadow: 1px 2px 8px rgba(0,0,0,0.8);
    -moz-text-shadow: 1px 2px 8px rgba(0,0,0,0.8);
}

header .header-desktop{
    justify-content:center !important;
}

header > .wp-block-group{
    width:100% !important;
}

body.single-product .wp-block-woocommerce-product-meta > .wp-block-group{
    flex-wrap:wrap !important;
}

.search-icon{
    width:36px !important;
    height:36px !important;
}

.header-desktop > .site-header > .wp-block-group{
    width:330px !important;
    flex-grow:0 !important;
    flex-shrink: 0 !important;
}


/*******Site Search***********/
.wp-block-search {
    position: relative;
    display: inline-flex;
    align-items: center;
    max-width: 400px;
}

@media(max-width:599px){
    .wp-block-search__input.expanded{
        width:160px !important;
    }
}

@media(max-width:419px){
    .wp-block-search__input.expanded{
        width:100px !important;
    }
}

.wp-block-search__input.expanded{
    outline: none !important;
    outline-style: none !important;
    border-bottom-width:1px !important;
    border-top-width:1px !important;
    border-left-width:1px !important;
    border-right-width:1px !important;
    border-bottom-color:var(--wp--preset--color--primary) !important;
    border-top-color:var(--wp--preset--color--primary) !important;
    border-left-color:var(--wp--preset--color--primary) !important;
    border-right-color:var(--wp--preset--color--primary) !important;
    color: var(--wp--preset--color--primary) !important;
    border-radius:10px !important;
}

.wp-block-search__inside-wrapper.expanded{
    padding-left:10px;
    padding-right:10px;
}

.wp-block-search__inside-wrapper {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 25px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.wp-block-search__input {
    border: none;
    outline: none;
    padding:0px;
    margin:0px;
    font-size: 16px;
    background: transparent;
    width: 0;
    opacity: 0;
    transition: all 0.3s ease;
    margin-left: 0;
}

.wp-block-search__input.expanded {
    width: 250px;
    opacity: 1;
    padding-top: 12px;
    padding-left: 20px;
    margin-left: 10px;
}

.wp-block-search__button {
    background: none;
    background-color:transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    padding:8px;
}

.wp-block-search__button .search-icon {
    background: none;
    background-color:transparent;
    fill: var(--wp--preset--color--primary);

}

.wp-block-search__button:hover{
    background: var(--wp--preset--color--primary);
    background-color: var(--wp--preset--color--primary) !important;
}

.wp-block-search__button:hover .search-icon{
    fill: #fff !important;
    background: none;
    transform: scale(1.05);
}

.screen-reader-text {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Animation for the wrapper */
.wp-block-search__inside-wrapper.expanded {
    padding-right: 5px;
}


/*************Cookie Consent Banner************/
/* Basic Styles for the Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--wp--custom--color--foreground); /* Light background */
    color: #fff;
    padding: 15px 25px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    display: none; /* Initially hidden, shown by JavaScript */
}

.banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.banner-actions {
    display: flex;
    gap: 10px;
}

.cookie-banner p {
    margin: 0;
    flex-grow: 1;
}

/* Button Styles (Ensure 'Accept' and 'Reject' are equally prominent) */
.banner-actions .btn {
    padding: 10px 15px;
    border: 2px solid;
    cursor: pointer;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.2s, color 0.2s;
}

.btn-accept {
    background-color: transparent; /* Primary color */
    color: white;
    border-color: #fff;
}
.btn-accept:hover {
    background-color: var(--wp--custom--color--primary);
    border-color: var(--wp--custom--color--primary);
}

.btn-reject, .btn-customize {
    background-color: transparent;
    color: #fff;
    border-color:#fff;''
}

.btn-reject:hover, .btn-customize:hover {
    background-color: #fff;
    color:var(--wp--custom--color--foreground);
}

#save-preferences-btn{
    color:#fff;
    background-color: var(--wp--custom--color--primary);
    border-radius:5px;
    padding: 10px 15px;
    border-style:solid !important;
}

/* Modal Styling */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(31, 60, 80, 0.4); /* Black w/ opacity */
}

.modal-content label{
    color:var(--wp--custom--color--foreground);
}

.modal-content {
    background-color: #fff;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 30px;
    border: 1px solid var(--wp--custom--color--foreground);
    color:var(--wp--custom--color--foreground);
    width: 80%;
    max-width: 600px;
    border-radius: 8px;
}

.cookie-category {
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid var(--wp--custom--color--foreground);
    border-radius: 5px;
}

.cookie-category label {
    display: block;
    cursor: pointer;
    padding: 5px 0;
}

.cookie-category input {
    margin-right: 10px;
}

.cookie-category .description {
    font-size: 0.9em;
    color: var(--wp--custom--color--foreground);
    margin-top: 5px;
}

.modal-actions {
    margin-top: 20px;
    text-align: right;
}

#preference-modal{
    margin-top:0px !important;
}

/* Revisit button for easy consent withdrawal */
.revisit-btn {
    position: fixed;
    right: 20px;
    bottom: 20px;
    padding: 8px 12px;
    background-color: var(--wp--custom--color--foreground);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    z-index: 999;
    font-size: 0.8em;
}