/* MakarenaLabs - Cookie Banner & Preferences Modal Styles */

.mklabs-cookie-banner {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: 480px;
  width: calc(100% - 48px);
  z-index: 99999;
  background: rgba(10, 24, 48, 0.92);
  color: #f0f7ff;
  border: 1px solid rgba(212, 232, 255, 0.22);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 16px 40px rgba(0, 8, 30, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  font-family: Inter, system-ui, -apple-system, sans-serif;
  font-size: 13px;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mklabs-cookie-banner.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.mklabs-cookie-banner-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.mklabs-cookie-banner-icon {
  width: 22px;
  height: 22px;
  color: #159cff;
  flex-shrink: 0;
}

.mklabs-cookie-banner-title {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
  margin: 0;
}

.mklabs-cookie-banner-text {
  color: #cbdcf3;
  margin: 0 0 18px;
  font-size: 13px;
}

.mklabs-cookie-banner-text a {
  color: #5bbdff;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.mklabs-cookie-banner-text a:hover {
  color: #ffffff;
}

.mklabs-cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.mklabs-cookie-btn {
  appearance: none;
  border: 1px solid transparent;
  outline: none;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1.3;
  text-align: center;
}

.mklabs-cookie-btn-primary {
  background: linear-gradient(135deg, #159cff, #0a70cf);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 14px rgba(21, 156, 255, 0.35);
}

.mklabs-cookie-btn-primary:hover {
  background: linear-gradient(135deg, #38adff, #1181ec);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(21, 156, 255, 0.45);
}

.mklabs-cookie-btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #e5f1ff;
  border: 1px solid rgba(212, 232, 255, 0.2);
}

.mklabs-cookie-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  border-color: rgba(212, 232, 255, 0.4);
}

.mklabs-cookie-btn-text {
  background: transparent;
  color: #8fa7c6;
  border: none;
  padding: 8px 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mklabs-cookie-btn-text:hover {
  color: #ffffff;
}

/* Modal Preference Center */
.mklabs-cookie-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 10, 24, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.mklabs-cookie-modal-backdrop.is-open {
  display: flex !important;
  opacity: 1;
  visibility: visible;
}

.mklabs-cookie-modal {
  position: relative;
  background: #08172e;
  border: 1px solid rgba(212, 232, 255, 0.22);
  border-radius: 24px;
  padding: 32px;
  max-width: 580px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  color: #f0f7ff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  font-family: Inter, system-ui, -apple-system, sans-serif;
  transform: scale(0.95);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.mklabs-cookie-modal-backdrop.is-open .mklabs-cookie-modal {
  transform: scale(1);
}

.mklabs-cookie-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #c5daf2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.2s ease;
}

.mklabs-cookie-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.mklabs-cookie-modal h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 10px;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.mklabs-cookie-modal-desc {
  font-size: 13px;
  color: #cbdcf3;
  line-height: 1.6;
  margin: 0 0 24px;
}

.mklabs-cookie-category {
  background: rgba(16, 38, 72, 0.6);
  border: 1px solid rgba(212, 232, 255, 0.14);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 14px;
}

.mklabs-cookie-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.mklabs-cookie-category-title {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
}

.mklabs-cookie-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(21, 156, 255, 0.18);
  color: #5bbdff;
  border: 1px solid rgba(21, 156, 255, 0.35);
}

.mklabs-cookie-category p {
  margin: 0;
  font-size: 12px;
  color: #9cb6d8;
  line-height: 1.55;
}

/* Custom switch toggle */
.mklabs-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.mklabs-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.mklabs-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: .3s;
  border-radius: 24px;
}

.mklabs-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: #ffffff;
  transition: .3s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 50%;
}

.mklabs-switch input:checked + .mklabs-slider {
  background-color: #159cff;
  border-color: #159cff;
}

.mklabs-switch input:checked + .mklabs-slider:before {
  transform: translateX(20px);
}

.mklabs-cookie-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(212, 232, 255, 0.12);
}

@media (max-width: 600px) {
  .mklabs-cookie-banner {
    bottom: 12px;
    right: 12px;
    left: 12px;
    width: auto;
    padding: 20px;
    border-radius: 18px;
  }

  .mklabs-cookie-banner-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .mklabs-cookie-btn {
    width: 100%;
  }

  .mklabs-cookie-modal {
    padding: 24px 18px;
  }

  .mklabs-cookie-modal-footer {
    flex-direction: column-reverse;
  }
}

/* Floating Iubenda-style cookie preferences badge */
.mklabs-cookie-badge-btn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 99990;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 12px;
  background: rgba(10, 24, 48, 0.88);
  color: #d6e8ff;
  border: 1px solid rgba(212, 232, 255, 0.24);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 8, 30, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  font-family: Inter, system-ui, -apple-system, sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s, border-color 0.2s, box-shadow 0.2s, color 0.2s;
  letter-spacing: -0.01em;
}

.mklabs-cookie-badge-btn.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.mklabs-cookie-badge-btn:hover {
  background: rgba(15, 36, 72, 0.95);
  color: #ffffff;
  border-color: rgba(21, 156, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 8, 30, 0.5), 0 0 16px rgba(21, 156, 255, 0.25);
}

.mklabs-cookie-badge-icon {
  width: 15px;
  height: 15px;
  color: #159cff;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.mklabs-cookie-badge-btn:hover .mklabs-cookie-badge-icon {
  transform: rotate(15deg);
}

@media (max-width: 600px) {
  .mklabs-cookie-badge-btn {
    bottom: 16px;
    left: 16px;
    padding: 7px 11px;
    font-size: 11px;
  }
}

