/* Banner styling */
#cfy-cookie-banner {
    display: flex; /* Keep it flex by default so it can be animated */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #f1f1f1;
    color: #333;
    padding: 15px 20px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 99999;
    box-sizing: border-box;
    justify-content: space-between;
    align-items: center;
    font-family: sans-serif;
    font-size: 14px;
    
    /* Transition setup */
    transform: translateY(100%); /* Starts pushed completely off the bottom of the screen */
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1); /* Smooth deceleration curve */
}

/* Class added by JS to trigger the slide-up */
#cfy-cookie-banner.cfy-show {
    transform: translateY(0);
}

.cfy-banner-buttons {
    display: flex;
    gap: 10px;
}

.cfy-banner-buttons button {
    white-space: nowrap;
}
/* Add a buffer to the left of the Accept All button */
#cfy-accept-all {
    white-space: nowrap;
    margin-left: 20px; 
}


#cfy-cookie-banner button {
    background-color: #333;
    color: #fff;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    border-radius: 4px;
}

#cfy-cookie-banner button#cfy-customize {
    background-color: #ddd;
    color: #333;
}

/* Modal styling */
#cfy-cookie-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    z-index: 100000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto; /* Allows scrolling on small screens */
}

.cfy-modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    width: 100%;
    max-width: 500px;
    position: relative;
    font-family: sans-serif;
    color: #333;
    margin: auto;
}

#cfy-close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #999;
}

#cfy-close-modal:hover {
    color: #333;
}

.cfy-cookie-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}

.cfy-cookie-option:last-child {
    border-bottom: none;
}

.cfy-cookie-option p {
    margin: 5px 0 0 0;
    font-size: 12px;
    color: #666;
    max-width: 90%;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    #cfy-cookie-banner {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}

/* Modal Footer & Save Button Styling */
.cfy-modal-footer {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    text-align: right;
}

#cfy-save-prefs {
    background-color: #333;
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    transition: background-color 0.2s ease;
}

#cfy-save-prefs:hover {
    background-color: #555;
}


					   .cd-top,#toTop , #toTopHover{
   bottom: 85px !important;
  }
					 					   .cd-top {
   bottom: 155px !important;
  }
  
						@media only screen and (min-width: 1024px) {
						    .cd-top,#toTop, #toTopHover {
						        bottom: 85px !important;
						    }
						}
@media only screen and (min-width: 768px) {
  .cd-top,#toTop, #toTopHover {
   bottom: 85px !important;
  }
}					 


@media only screen and (max-width: 768px) {
  #toTop, #toTopHover {
   bottom: 200px !important;
  }
}					 

@media only screen and (max-width: 400px) {
  .cd-top ,#toTop , #toTopHover{
   bottom: 200px !important;
  }
}					 