/* Styling for the container */
.cc-consent-container {
    display: flex;          /* Use flexbox to manage the layout */
    flex-wrap:wrap;
    width: 90%;            /* Container takes half width of the viewport */
    justify-content: center; /* Centers the container horizontally */
    min-height: 150px; /* Full viewport height */
    align-items: center; /* Centers the container vertically */         /* Full viewport height */
    margin:0 auto;
    transform: translateX(-50%); /* Shift it back 50% of its own width to center */
    position: fixed;
    left: 50%;
    bottom: 30px;
    border-radius: 15px;
    overflow:hidden;
    background-color: #ffffff;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
    font-size:14px !important;

    & h4{
        margin:0 0 10px 0 !important;
        padding:0;

        &.h4-icon {
            background: url('../img/cookie.svg') no-repeat right center;
            background-size: 22px 22px; /* Set the width and height of the SVG */
            padding-right: 30px; /* Give enough padding to not overlap the text */
            display: inline-block; /* or 'block' depending on your layout needs */
        }
    }

    & p{
        padding: 0 !important;
        margin: 0 !important;
    }

    & a{
       
    }
}

#cc-consent-content, #cc-consent-preferences{
    flex-direction: column;
}

@keyframes slideInFromBottom {
    from {
        transform: translate(-50%,100%); /* Start below the view */
        opacity: 0; /* Start transparent to enhance effect */
    }
    to {
        transform: translate(-50%,0); /* End at the natural position */
        opacity: 1; /* Fully opaque */
    }
}

/* Class to apply the animation to an element */
.slide-in-bottom {
    opacity: 0; /* Ensure it starts invisible */
    animation: slideInFromBottom 1s ease-out forwards; /* Apply the defined animation */
}

.cc-rounded-corners{
    border-radius: 15px;
}

/* Styling for the main content area */
.main-content {
    flex: 70%;             /* Takes up 80% of the container's width */
    padding: 20px;         /* Padding around the content */
    border-radius: 15px 0 0 15px; /* Rounded corners on the left side */
    font-size:90%;
    & .labelbox-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* Creates 2 columns, each taking up half of the container's width */
        & .labelbox {
            padding: 10px; /* Padding inside each label box */
            display: grid;
            grid-template-columns: auto 1fr; /* Creates two columns: one for checkbox and one for label */
            align-items: center; /* Vertically aligns the grid items in the center */
            margin-bottom: 10px; /* Adds space between each labelbox */
        }
    }

}

/* Styling for the sidebar */
.sidebar {
    flex: 100%; /* Make both elements take full width of the container */
    padding:0 20px 20px 20px;
    align-items: center;
    border-radius: 0 15px 15px 0; /* Rounded corners on the right side */
    display: grid;
}


.labelbox label {
    display: contents; /* Allows label to spread over the grid columns */
}

/* Button styling */
.buttons {
    
}

.btn {
    border: none;
    border-radius: 15px;
    cursor: pointer;
    margin: 10px auto;
}

.btn.cc-btn{
    padding: 10px 20px !important;
    font-size:14px !important;
}

.btn.btn-block {
    display:block;
    width:100%;
}

.btn.accept {
    background-color: #d6b841;
    color: white;
}

.btn.manage {
    background-color: transparent;
    color: rgb(97, 97, 97);
    border:1px solid  rgb(97, 97, 97);
}

.wrapper{
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    width: 400px;
    margin: 50vh auto 0;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    -webkit-transform: translateY(-50%);
            transform: translateY(-50%);
  }
  
  .switch_box{
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    max-width: 200px;
    min-width: 200px;
    height: 200px;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-flex: 1;
        -ms-flex: 1;
            flex: 1;
  }
  
  /* Switch 1 Specific Styles Start */
  
  .box_1{
    background: #eee;
  }
  
  input[type="checkbox"].switch_1{
    font-size: 14px;
    -webkit-appearance: none;
       -moz-appearance: none;
            appearance: none;
    width: 3.5em;
    height: 1.5em;
    background: #ddd;
    border-radius: 3em;
    position: relative;
    cursor: pointer;
    outline: none;
    -webkit-transition: all .2s ease-in-out;
    transition: all .2s ease-in-out;
    }
    
    input[type="checkbox"].switch_1:checked{
    background: #98c272;
    }
    
    input[type="checkbox"].switch_1:after{
    position: absolute;
    content: "";
    width: 1.5em;
    height: 1.5em;
    border-radius: 50%;
    background: #fff;
    -webkit-box-shadow: 0 0 .25em rgba(0,0,0,.3);
            box-shadow: 0 0 .25em rgba(0,0,0,.3);
    -webkit-transform: scale(.7);
            transform: scale(.7);
    left: 0;
    -webkit-transition: all .2s ease-in-out;
    transition: all .2s ease-in-out;
    }
    
    input[type="checkbox"].switch_1:checked:after{
    left: calc(100% - 1.5em);
    }
    
  /* Switch 1 Specific Style End */

#cookie-consent-popup, #cc-consent-content, #cc-consent-preferences {
    display: none;
}

@media only screen and (min-width: 769px) {
    /* For tablets: */
    .cc-consent-container {
        width: 80%; 
        bottom: 40px;
    }
    #cc-consent-content, #cc-consent-preferences{
        flex-direction: row;
    }
    .sidebar {
        padding:20px;
    }
}
  
  @media only screen and (min-width: 1025px) {
    /* For desktop: */
    .cc-consent-container {
        width: 50%; 
        bottom: 60px;
    }
}