/* Cookie Banner - SiCo Theme (Dark Mode) - Based on reference design */

/* Overlay that blurs the background */
.stcm-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background: rgba(0, 0, 0, 0.7) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  z-index: 2147483646 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 16px !important;
}

.stcm-prompt { 
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; 
  color: #e5e5e5;
  position: relative !important;
  max-width: 580px; 
  width: 100%;
  background: #0f0f0f !important; 
  border: 1px solid rgba(255, 255, 255, 0.1) !important; 
  border-radius: 12px; 
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.9); 
  padding: 0; 
  z-index: 2147483647 !important; 
  overflow: hidden;
}

/* Header */
.stcm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.stcm-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.stcm-logo {
  height: 28px;
  width: auto;
}

.stcm-title {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
}

.stcm-close {
  background: none;
  border: none;
  color: #888;
  font-size: 24px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: color 0.2s;
}

.stcm-close:hover {
  color: #fff;
}

/* Content */
.stcm-content {
  padding: 24px;
}

.stcm-description {
  font-size: 14px;
  line-height: 1.6;
  color: #a0a0a0;
  margin-bottom: 20px;
}

/* Category rows */
.stcm-category {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  margin-bottom: 10px;
  overflow: hidden;
}

.stcm-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  cursor: pointer;
}

.stcm-category-header:hover {
  background: rgba(255, 255, 255, 0.02);
}

.stcm-category-name {
  font-size: 15px;
  font-weight: 500;
  color: #e5e5e5;
}

.stcm-category-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stcm-always-active {
  font-size: 13px;
  color: #00c8c8;
  font-weight: 500;
}

/* Toggle switch */
.stcm-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  background: #3a3a3a;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s;
}

.stcm-toggle.active {
  background: #00c8c8;
}

.stcm-toggle::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: #666;
  border-radius: 50%;
  transition: all 0.2s;
}

.stcm-toggle.active::after {
  left: 23px;
  background: #0a0a0a;
}

.stcm-chevron {
  color: #888;
  font-size: 12px;
  transition: transform 0.2s;
}

.stcm-chevron.open {
  transform: rotate(180deg);
}

.stcm-category-details {
  padding: 0 18px 16px 18px;
  font-size: 13px;
  line-height: 1.6;
  color: #888;
  display: none;
}

.stcm-category-details.open {
  display: block;
}

/* Buttons */
.stcm-buttons {
  display: flex;
  gap: 10px;
  padding: 0 24px 24px 24px;
  flex-wrap: wrap;
}

.stcm-btn {
  flex: 1;
  min-width: 140px;
  padding: 14px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #1a1a1a;
  color: #e5e5e5;
}

.stcm-btn:hover {
  background: #252525;
  border-color: rgba(255, 255, 255, 0.2);
}

.stcm-btn-primary {
  background: #00c8c8;
  color: #0a0a0a;
  border-color: #00c8c8;
}

.stcm-btn-primary:hover {
  background: #00b0b0;
  border-color: #00b0b0;
}

/* Footer links */
.stcm-footer {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 16px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.stcm-footer a {
  font-size: 13px;
  color: #00c8c8;
  text-decoration: none;
  transition: color 0.2s;
}

.stcm-footer a:hover {
  color: #00e0e0;
  text-decoration: underline;
}

/* Mobile responsive */
@media (max-width: 480px) {
  .stcm-header {
    padding: 16px;
  }
  
  .stcm-title {
    font-size: 14px;
  }
  
  .stcm-content {
    padding: 16px;
  }
  
  .stcm-buttons {
    padding: 0 16px 16px 16px;
    flex-direction: column;
  }
  
  .stcm-btn {
    min-width: 100%;
  }
  
  .stcm-footer {
    padding: 12px 16px;
  }
}
