/* Atech Cookie Banner Styles */
.atech-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--atech-banner-bg, #ffffff);
    color: var(--atech-banner-text, #333333);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 99999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    padding: 15px 0;
}

.atech-cookie-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    z-index: 99998; /* Just below the banner */
    backdrop-filter: blur(2px);
}

.atech-cookie-floating-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--atech-btn-bg, #0073aa);
    color: var(--atech-btn-text, #ffffff);
    border: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    cursor: pointer;
    z-index: 99997;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.atech-cookie-floating-btn:hover {
    transform: scale(1.1);
}

.atech-cookie-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.atech-cookie-content {
    flex: 1 1 300px;
}

.atech-cookie-content p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.atech-cookie-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.atech-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

.atech-btn:hover {
    opacity: 0.9;
}

.atech-btn-primary {
    background-color: var(--atech-btn-bg, #0073aa);
    color: var(--atech-btn-text, #ffffff);
}

.atech-btn-secondary {
    background-color: transparent;
    color: var(--atech-banner-text, #333333);
    border: 1px solid currentColor;
}

.atech-btn-link {
    background: none;
    color: var(--atech-banner-text, #333333);
    text-decoration: underline;
    padding: 10px;
}

/* Modal Styles */
.atech-cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.atech-cookie-modal-content {
    background-color: #fff;
    color: #333;
    padding: 30px;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.atech-cookie-modal-content h2 {
    margin-top: 0;
    font-size: 24px;
}

.atech-cookie-category {
    margin: 20px 0;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.atech-cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.atech-cookie-category-header h3 {
    margin: 0;
    font-size: 16px;
}

.atech-cookie-desc {
    margin-top: 5px;
    font-size: 13px;
    color: #666;
}

.atech-cookie-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.atech-cookie-powered-by {
    text-align: center;
    margin-top: 15px;
    font-size: 11px;
    color: #999;
}

.atech-cookie-powered-by a {
    color: inherit;
    text-decoration: underline;
}

/* Toggle Switch Styles */
.atech-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}
.atech-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.atech-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
}
.atech-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
}
input:checked + .atech-slider {
  background-color: var(--atech-btn-bg, #0073aa);
}
input:focus + .atech-slider {
  box-shadow: 0 0 1px var(--atech-btn-bg, #0073aa);
}
input:checked + .atech-slider:before {
  transform: translateX(26px);
}
.atech-slider.round {
  border-radius: 24px;
}
.atech-slider.round:before {
  border-radius: 50%;
}
input:disabled + .atech-slider {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Responsive Media Queries */
@media (max-width: 768px) {
    .atech-cookie-container {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    .atech-cookie-actions {
        flex-direction: column;
        width: 100%;
    }
    .atech-btn {
        width: 100%;
        text-align: center;
        padding: 12px;
        font-size: 16px; /* Better for tapping */
    }
    .atech-cookie-modal-content {
        padding: 20px;
        width: 95%;
    }
    .atech-cookie-modal-actions {
        flex-direction: column-reverse;
    }
    .atech-cookie-modal-actions .atech-btn {
        width: 100%;
    }
}
