/* =========================================================
   Cookie Consent Banner — cookieconsent.css
   PrestaShop 1.7 module
   ========================================================= */

/* ---- Overlay ------------------------------------------ */
.cc-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 99998;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: all;
}

.cc-overlay.cc-visible {
  opacity: 1;
}

.cc-overlay.cc-hide {
  opacity: 0;
  pointer-events: none;
}

.cc-overlay.cc-hidden {
  display: none;
}

/* ---- Banner ------------------------------------------- */
.cc-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--cc-bg, #1a1a2e);
  color: var(--cc-text, #ffffff);
  z-index: 99999;
  padding: 0;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.5);
  transform: translateY(100%);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
  opacity: 0;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.cc-banner.cc-visible {
  transform: translateY(0);
  opacity: 1;
}

.cc-banner.cc-hide {
  transform: translateY(110%);
  opacity: 0;
}

.cc-banner.cc-hidden {
  display: none;
}

/* ---- Inner layout ------------------------------------- */
.cc-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 1300px;
  margin: 0 auto;
  padding: 20px 28px;
}

/* ---- Cookie icon -------------------------------------- */
.cc-icon-wrap {
  flex-shrink: 0;
}

.cc-icon {
  width: 52px;
  height: 52px;
  color: var(--cc-btn, #e94560);
  animation: cc-rotate 8s linear infinite;
}

@keyframes cc-rotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ---- Text content ------------------------------------- */
.cc-content {
  flex: 1;
  min-width: 0;
}

.cc-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cc-btn, #e94560);
  margin: 0 0 6px;
}

.cc-message {
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 8px;
}

.cc-link {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--cc-btn, #e94560);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s;
}

.cc-link:hover {
  opacity: 0.75;
}

/* ---- Actions ------------------------------------------ */
.cc-actions {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
  min-width: 180px;
}

/* ---- Buttons ------------------------------------------ */
.cc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 6px;
  padding: 12px 22px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
  white-space: nowrap;
  letter-spacing: 0.03em;
}

.cc-btn-accept {
  background: var(--cc-btn, #e94560);
  color: #fff;
  box-shadow: 0 4px 20px rgba(233, 69, 96, 0.45);
}

.cc-btn-accept:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(233, 69, 96, 0.6);
}

.cc-btn-accept:active {
  transform: translateY(0);
}

/* ---- Close button ------------------------------------- */
.cc-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: color 0.2s;
}

.cc-close:hover {
  color: rgba(255, 255, 255, 0.9);
}

/* ---- Responsive --------------------------------------- */
@media (max-width: 768px) {
  .cc-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 18px 18px;
    gap: 14px;
  }

  .cc-icon-wrap {
    display: none;
  }

  .cc-actions {
    width: 100%;
    min-width: 0;
  }

  .cc-btn {
    width: 100%;
    padding: 13px 18px;
  }

  .cc-title {
    font-size: 0.9rem;
  }

  .cc-message {
    font-size: 0.83rem;
  }

  .cc-close {
    top: 10px;
    right: 10px;
  }
}

@media (max-width: 480px) {
  .cc-inner {
    padding: 16px 14px 14px;
  }
}
