/**
 * PATH: /wcm-privacy-and-cookies/assets/css/wcm-cookie.css
 * Everest Audio Labs theme — black/gold, Montserrat, sharp edges.
 * Class names and IDs are unchanged so the PHP view and JS keep working.
 */

#ct-ultimate-gdpr-cookie-popup,
#ct-ultimate-gdpr-cookie-popup-inner {
  display: none !important;
}

.cookie-popup {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  z-index: 2147483647 !important;
  width: calc(100% - 32px);
  max-width: 640px;
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  background: #070707;
  border: 1px solid rgba(202, 175, 100, 0.22);
  border-radius: 0;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.55s ease;
  opacity: 0;
  display: none;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  box-sizing: border-box;
}

.cookie-popup *,
.cookie-popup *:before,
.cookie-popup *:after {
  box-sizing: inherit;
}

.cookie-popup.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  display: block;
}

.cookie-popup-inner {
  padding: clamp(18px, 2.6vw, 24px);
}

.cookie-view { display: block; }
.cookie-view--hidden { display: none; }

.cookie-bar {
  display: flex;
  align-items: center;
  gap: 22px;
}

.cookie-bar-text {
  flex: 1;
  font-size: 12px;
  font-weight: 300;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.58);
  margin: 0;
}

.cookie-bar-link {
  color: var(--color-gold, #caaf64);
  text-decoration: none;
  border-bottom: 1px solid rgba(202, 175, 100, 0.3);
  white-space: nowrap;
  transition: border-color 0.25s ease;
}

.cookie-bar-link:hover { border-bottom-color: var(--color-gold, #caaf64); }

.cookie-bar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.cookie-bar-actions .cookie-btn {
  width: auto;
  height: 40px;
  padding: 0 22px;
  font-size: 11px;
  letter-spacing: 0.14em;
}

.cookie-bar-actions .cookie-btn--settings {
  padding: 0 8px;
  letter-spacing: 0.16em;
}

@media (max-width: 600px) {
  .cookie-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .cookie-bar-actions { width: 100%; flex-wrap: wrap; gap: 8px; }
  .cookie-bar-actions .cookie-btn { height: 44px; }
  .cookie-bar-actions .cookie-btn--accept { order: 1; flex: 1 1 100%; }
  .cookie-bar-actions .cookie-btn--reject { order: 2; flex: 1; }
  .cookie-bar-actions .cookie-btn--settings { order: 3; flex: 1; }
}

.cookie-popup-text {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 22px;
}

.cookie-icon {
  width: 22px;
  height: 22px;
  stroke: var(--color-gold, #caaf64);
  flex-shrink: 0;
  margin-top: 2px;
}

.cookie-title {
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #ffffff;
  margin: 0 0 7px;
}

.cookie-desc {
  font-size: 12.5px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.75;
  margin: 0;
}

.cookie-popup-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cookie-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 46px;
  padding: 0 22px;
  border-radius: 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  white-space: nowrap;
  border: 1px solid transparent;
}

.cookie-btn--accept {
  background: var(--color-gold, #caaf64);
  color: #000000;
  border-color: var(--color-gold, #caaf64);
}

.cookie-btn--accept:hover {
  background: #ffffff;
  border-color: #ffffff;
  box-shadow: 0 0 28px rgba(202, 175, 100, 0.3);
}

.cookie-btn--more {
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  border-color: rgba(255, 255, 255, 0.16);
}

.cookie-btn--more:hover {
  color: var(--color-gold, #caaf64);
  border-color: var(--color-gold, #caaf64);
}

.cookie-btn--settings {
  background: transparent;
  color: rgba(255, 255, 255, 0.42);
  border-color: transparent;
  letter-spacing: 0.18em;
}

.cookie-btn--settings:hover {
  color: var(--color-gold, #caaf64);
}

.cookie-settings-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
}

.cookie-back {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  background: rgba(202, 175, 100, 0.10);
  border: 1px solid rgba(202, 175, 100, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s;
  margin-top: 1px;
}

.cookie-back:hover {
  background: rgba(202, 175, 100, 0.20);
  border-color: rgba(202, 175, 100, 0.5);
}

.cookie-back svg {
  width: 14px;
  height: 14px;
  stroke: var(--color-gold, #caaf64);
}

.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  overflow-y: auto;
  overflow-x: hidden;
  max-height: 42vh;
}

.cookie-categories::-webkit-scrollbar { width: 6px; }
.cookie-categories::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.03); }
.cookie-categories::-webkit-scrollbar-thumb { background: rgba(202, 175, 100, 0.4); }
.cookie-categories::-webkit-scrollbar-thumb:hover { background: rgba(202, 175, 100, 0.6); }

.cookie-cat {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cookie-cat:last-child { border-bottom: none; }

.cookie-cat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  transition: background 0.2s;
}

.cookie-cat:hover .cookie-cat-header {
  background: rgba(255, 255, 255, 0.02);
}

.cookie-cat-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.cookie-cat-name {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #ffffff;
}

.cookie-cat-desc {
  font-size: 11px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.42);
  line-height: 1.65;
}

.cookie-toggle {
  flex-shrink: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  margin-bottom: 0;
}

.cookie-toggle-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.cookie-toggle-track {
  position: relative;
  width: 44px;
  height: 24px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: background 0.25s, border-color 0.25s;
  display: block;
}

.cookie-toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 0;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), background 0.25s;
}

.cookie-toggle-input:checked + .cookie-toggle-track {
  background: var(--color-gold, #caaf64);
  border-color: var(--color-gold, #caaf64);
  box-shadow: 0 0 12px rgba(202, 175, 100, 0.35);
}

.cookie-toggle-input:checked + .cookie-toggle-track .cookie-toggle-thumb {
  transform: translateX(20px);
  background: #000000;
}

.cookie-toggle--locked { cursor: default; }

.cookie-toggle-lock {
  width: 44px;
  height: 24px;
  background: rgba(202, 175, 100, 0.08);
  border: 1px solid rgba(202, 175, 100, 0.22);
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cookie-toggle-lock svg {
  width: 12px;
  height: 12px;
  stroke: var(--color-gold, #caaf64);
}

.cookie-btn--save {
  background: transparent;
  color: var(--color-gold, #caaf64);
  border-color: rgba(202, 175, 100, 0.4);
}

.cookie-btn--save:hover {
  background: rgba(202, 175, 100, 0.07);
  border-color: var(--color-gold, #caaf64);
}

.cookie-btn--reject {
  background: transparent;
  color: rgba(255, 255, 255, 0.4);
  border-color: rgba(255, 255, 255, 0.1);
}

.cookie-btn--reject:hover {
  border-color: rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 480px) {
  .cookie-popup {
    bottom: 0;
    width: 100%;
    border-radius: 0;
    max-height: 92vh;
    max-height: 92dvh;
    border-bottom: none;
    border-left: none;
    border-right: none;
  }
  .cookie-popup-inner { padding: 20px 16px; }

  .cookie-title { font-size: 14px; }
  .cookie-desc { font-size: 11.5px; line-height: 1.6; }
  .cookie-btn { height: 44px; font-size: 11px; padding: 0 18px; }

  .cookie-categories { margin-bottom: 16px; max-height: 50vh; }
  .cookie-cat-header { padding: 13px 14px; gap: 12px; }
  .cookie-cat-name { font-size: 12px; }
  .cookie-cat-desc { font-size: 10.5px; line-height: 1.45; }

  .cookie-toggle-track { width: 38px; height: 20px; }
  .cookie-toggle-thumb { width: 13px; height: 13px; top: 2px; left: 2px; }
  .cookie-toggle-input:checked + .cookie-toggle-track .cookie-toggle-thumb { transform: translateX(17px); }
  .cookie-toggle-lock { width: 38px; height: 20px; }
  .cookie-toggle-lock svg { width: 11px; height: 11px; }
}

/* Floating "manage cookies" (revoke) button */
.cookie-revoke-float {
  position: fixed;
  bottom: 26px;
  left: 26px;
  width: 46px;
  height: 46px;
  background: #0b0b0b;
  border: 1px solid rgba(202, 175, 100, 0.4);
  border-radius: 50%;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
  z-index: 2147483646 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
  padding: 0;
}

.cookie-revoke-float:hover {
  transform: scale(1.06);
  background: rgba(202, 175, 100, 0.12);
  border-color: rgba(202, 175, 100, 0.7);
}

.cookie-revoke-float svg {
  width: 20px;
  height: 20px;
  stroke: var(--color-gold, #caaf64);
}

@media (max-width: 768px) {
  .cookie-revoke-float {
    bottom: 18px;
    left: 18px;
    width: 40px;
    height: 40px;
  }
}

/* Iframe blocker placeholder */
.wcm-iframe-placeholder {
  position: relative;
  width: 100%;
  min-height: 350px;
  background: #0b0b0b;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid rgba(202, 175, 100, 0.2);
  font-family: 'Montserrat', sans-serif;
}

.wcm-iframe-placeholder iframe.wcm-blocked-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  z-index: -1;
  transition: opacity 0.4s ease;
}

.wcm-iframe-placeholder.wcm-unblocked iframe.wcm-blocked-iframe {
  opacity: 1;
  pointer-events: auto;
  z-index: 10;
}

.wcm-iframe-placeholder.wcm-unblocked {
  background: transparent;
  border: none;
}

.wcm-iframe-content {
  text-align: center;
  padding: 28px;
  color: #fff;
  max-width: 420px;
  z-index: 5;
  transition: opacity 0.3s ease;
}

.wcm-iframe-placeholder.wcm-unblocked .wcm-iframe-content {
  opacity: 0;
  pointer-events: none;
}

.wcm-iframe-icon {
  width: 36px;
  height: 36px;
  stroke: var(--color-gold, #caaf64);
  margin-bottom: 14px;
}

.wcm-iframe-content p {
  font-size: 13px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
  margin-bottom: 22px;
}

.wcm-iframe-unblock-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 28px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #000;
  background: var(--color-gold, #caaf64);
  border: 1px solid var(--color-gold, #caaf64);
  border-radius: 0;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.wcm-iframe-unblock-btn:hover {
  background: #fff;
  border-color: #fff;
  box-shadow: 0 0 28px rgba(202, 175, 100, 0.3);
}
