
/* =========================================
   CASA CUBO - CONSENTIMIENTO DE COOKIES
   ========================================= */

#cc-cookie-banner[hidden] {
  display: none !important;
}

#cc-cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 420px;
  max-width: calc(100% - 48px);
  box-sizing: border-box;
  padding: 26px;
  background: #201e1b;
  color: #f5f2ec;
  border: 1px solid #514d46;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  font-family: "DM Sans", sans-serif;
  z-index: 10000;
}

#cc-cookie-banner h2 {
  margin: 0 0 12px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
  color: #ffffff;
}

#cc-cookie-banner p {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.6;
  color: #e4dfd7;
}

#cc-cookie-banner a {
  color: #f5f2ec;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cc-cookie-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

#cc-cookie-accept,
#cc-cookie-reject {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 12px 16px;
  border: 1px solid #bdb6ac;
  border-radius: 8px;
  background: transparent;
  color: #ffffff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

#cc-cookie-accept:hover,
#cc-cookie-reject:hover {
  background: #f5f2ec;
  color: #201e1b;
}

#cc-cookie-settings {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

#cc-cookie-banner button:focus-visible,
#cc-cookie-banner a:focus-visible,
#cc-cookie-settings:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

/* Adaptación a dispositivos móviles */

@media (max-width: 650px) {
  #cc-cookie-banner {
    left: 12px;
    bottom: 12px;
    width: calc(100% - 24px);
    max-width: none;
    max-height: calc(100vh - 24px);
    overflow-y: auto;
    padding: 20px;
    border-radius: 12px;
  }

  #cc-cookie-banner h2 {
    font-size: 20px;
  }

  .cc-cookie-actions {
    gap: 10px;
  }
}
