/* Monettech cookie / privacy notice bar */

.mt-consent-tab {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  z-index: 10000;
  width: min(640px, calc(100% - 24px));
  margin-bottom: 12px;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.mt-consent-tab.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mt-consent-tab.is-minimized .mt-consent-panel {
  display: none;
}

.mt-consent-tab.is-minimized .mt-consent-reopen {
  display: inline-flex;
}

.mt-consent-panel {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.14);
  padding: 18px 18px 16px;
  color: #1a1a1a;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.9rem;
  line-height: 1.55;
}

.mt-consent-panel h2 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a1a;
}

.mt-consent-panel p {
  margin: 0 0 12px;
  color: #555;
}

.mt-consent-panel a {
  color: #2563eb;
  font-weight: 500;
  text-decoration: none;
}

.mt-consent-panel a:hover {
  text-decoration: underline;
}

.mt-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.mt-consent-btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 9999px;
  padding: 9px 16px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.2;
}

.mt-consent-btn--primary {
  background: #2563eb;
  color: #fff;
}

.mt-consent-btn--primary:hover {
  background: #1d4ed8;
}

.mt-consent-btn--secondary {
  background: #f3f4f6;
  color: #1a1a1a;
  border-color: #e5e7eb;
}

.mt-consent-btn--secondary:hover {
  background: #e5e7eb;
}

.mt-consent-btn--ghost {
  background: transparent;
  color: #2563eb;
  padding-left: 8px;
  padding-right: 8px;
}

.mt-consent-btn--ghost:hover {
  text-decoration: underline;
}

.mt-consent-settings {
  display: none;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #e5e7eb;
}

.mt-consent-settings.is-open {
  display: block;
}

.mt-consent-category {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f3f4f6;
}

.mt-consent-category:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.mt-consent-category h3 {
  margin: 0 0 4px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1a1a1a;
}

.mt-consent-category p {
  margin: 0;
  font-size: 0.8125rem;
  color: #666;
}

.mt-consent-badge {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
  background: #f3f4f6;
  border-radius: 9999px;
  padding: 4px 10px;
  white-space: nowrap;
}

.mt-consent-toggle {
  flex-shrink: 0;
  width: 44px;
  height: 26px;
  border-radius: 9999px;
  border: none;
  background: #d1d5db;
  position: relative;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}

.mt-consent-toggle[aria-checked="true"] {
  background: #2563eb;
}

.mt-consent-toggle::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s;
}

.mt-consent-toggle[aria-checked="true"]::after {
  transform: translateX(18px);
}

.mt-consent-toggle:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.mt-consent-reopen {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  position: fixed;
  bottom: 14px;
  left: 14px;
  z-index: 9999;
  background: #1a1a1a;
  color: #fff;
  border: none;
  border-radius: 9999px;
  padding: 10px 14px;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  font-family: inherit;
}

.mt-consent-reopen:hover {
  background: #333;
}

body.mt-consent-open {
  padding-bottom: 0;
}

@media (max-width: 520px) {
  .mt-consent-tab {
    width: calc(100% - 16px);
    margin-bottom: 8px;
  }

  .mt-consent-panel {
    padding: 16px 14px 14px;
  }

  .mt-consent-actions {
    flex-direction: column;
  }

  .mt-consent-btn {
    width: 100%;
    justify-content: center;
  }

  .mt-consent-btn--ghost {
    width: auto;
    align-self: center;
  }
}
