/* system-cookies/cookie-panel.css */
#ccBtn,
#ccModal,
#ccModal * {
  box-sizing: border-box;
}

.cc-open {
  overflow: hidden;
}

.cc-btn {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 999999;
  width: 60px;
  height: 60px;
  border: 0;
  border-radius: 999px;
  background: #111827;
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.cc-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.32);
}

.cc-btn:focus-visible {
  outline: 3px solid #93c5fd;
  outline-offset: 3px;
}

.cc-ico {
  display: block;
}

.cc-modal[hidden] {
  display: none !important;
}

.cc-modal {
  position: fixed;
  inset: 0;
  z-index: 1000000;
}

.cc-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(2px);
}

.cc-dialog {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(800px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  overflow: auto;
  background: #ffffff;
  color: #111827;
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.cc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  background: #ffffff;
  z-index: 2;
}

.cc-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

.cc-x {
  border: 0;
  background: transparent;
  color: #111827;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.cc-x:hover {
  background: #f3f4f6;
}

.cc-body {
  padding: 20px;
}

.cc-intro {
  font-size: 12px;
  margin: 0 0 18px;
  color: #374151;
  line-height: 1.6;
}

.cc-card {
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
  background: #ffffff;
}

.cc-disabled {
  opacity: 0.82;
}

.cc-locked {
  border-color: #d1d5db;
  background: #fafafa;
}

.cc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cc-left {
  min-width: 0;
}

.cc-name {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
}

.cc-desc {
  font-size: 12px;    
  color: #4b5563;
  line-height: 1.4;
}

.cc-right {
  flex: 0 0 auto;
}

.cc-switch {
  position: relative;
  display: inline-flex;
}

.cc-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cc-slider {
  width: 54px;
  height: 32px;
  border-radius: 999px;
  background: #d1d5db;
  position: relative;
  transition: background .2s ease;
}

.cc-slider::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 4px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  transition: transform .2s ease;
}

.cc-switch input:checked + .cc-slider {
  background: #111827;
}

.cc-switch input:checked + .cc-slider::after {
  transform: translateX(22px);
}

.cc-switch-locked .cc-slider {
  background: #111827;
}

.cc-switch-locked .cc-slider::after {
  transform: translateX(22px);
}

.cc-cookie-list {
  font-size: 12px;
  margin-top: 14px;
}

.cc-cookie-item {
  padding: 10px 0;
  border-top: 1px solid #eef2f7;
}

.cc-cookie-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.cc-cookie-name {
  font-size: 12px;    
  font-weight: 400;
  margin-bottom: 6px;
  color: #111827;
}

.cc-cookie-desc {
  font-size: 12px;
  color: #4b5563;
  line-height: 1.55;
}

.cc-small {
  font-size: 12px;    
  margin: 12px 0 0;
  color: #6b7280;
  line-height: 1.5;
}

.cc-detect-msg { 
  font-size: 12px;    
  margin-top: 16px;
  color: #6b7280;
}

.cc-foot {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding: 18px 20px 20px;
  border-top: 1px solid #e5e7eb;
  position: sticky;
  bottom: 0;
  background: #ffffff;
}

.cc-btn-primary,
.cc-btn-secondary {
  appearance: none;
  border: 0;
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s ease, opacity .2s ease, box-shadow .2s ease;
}

.cc-btn-primary {
  background: #111827;
  color: #ffffff;
}

.cc-btn-secondary {
  background: #eef2f7;
  color: #111827;
}

.cc-btn-primary:hover,
.cc-btn-secondary:hover {
  transform: translateY(-1px);
}

@media (max-width: 767px) {
  .cc-btn {
    right: 16px;
    bottom: 16px;
    width: 58px;
    height: 58px;
  }

  .cc-dialog {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
  }

  .cc-head,
  .cc-body,
  .cc-foot {
    padding-left: 16px;
    padding-right: 16px;
  }

  .cc-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .cc-right {
    width: 100%;
  }

  .cc-foot {
    flex-direction: column;
  }

  .cc-btn-primary,
  .cc-btn-secondary {
    width: 100%;
  }
}
