/* Minimal styling for cookie consent elements (uses Bulma classes) */
#wpsb-cc-modal .modal-card { width: 90%; max-width: 640px; }
#wp-spectra-cookie-banner { box-shadow: 0 6px 18px rgba(10,10,10,.12); }
#wpsb-cc-open-button { box-shadow: 0 6px 18px rgba(10,10,10,.12); }
@media (min-width: 769px) {
  #wp-spectra-cookie-banner { left: auto; right: 1rem; width: 420px; }
}

/* Floating cookie icon button */
.wpsb-cc-float { position: fixed; right: 1rem; bottom: 6rem; z-index: 2000; width: 44px; height: 44px; border-radius: 999px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.wpsb-cc-float .wpsb-cc-icon { font-size: 18px; line-height:1; }
.wpsb-cc-inline { display: inline-flex; align-items:center; justify-content:center; width:36px; height:36px; padding:0; border-radius:999px; }
.wpsb-cc-inline .wpsb-cc-icon { font-size:16px; }

/* Reduce banner buttons spacing on small screens */
#wp-spectra-cookie-banner .buttons { gap: .35rem; }

/* Modal visual enhancement: soft backdrop blur, drop shadow and entrance animation */
#wpsb-cc-modal .modal-background {
  background-color: rgba(10,10,10,0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background-color .2s ease;
}

#wpsb-cc-modal .modal-card {
  width: 90%;
  max-width: 640px;
  border-radius: 10px;
  position: relative;
  box-shadow: 0 20px 50px rgba(10,10,10,0.35), 0 6px 18px rgba(10,10,10,0.08);
  transform: translateY(8px) scale(0.995);
  transition: transform .28s cubic-bezier(.2,.8,.2,1), box-shadow .28s ease;
  overflow: hidden;
}

.modal.is-active #wpsb-cc-modal .modal-card,
#wpsb-cc-modal.modal.is-active .modal-card {
  transform: translateY(0) scale(1);
}

/* subtle glow under the modal for depth */
#wpsb-cc-modal .modal-card::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -22px;
  width: 80%;
  height: 36px;
  filter: blur(20px);
  background: radial-gradient(closest-side, rgba(50,50,60,0.18), rgba(50,50,60,0));
  pointer-events: none;
}

/* Position variants for floating cookie button */
.wpsb-cc-pos-bottom-right { right: 1rem; left: auto; top: auto; bottom: 6rem; }
.wpsb-cc-pos-bottom-left { left: 1rem; right: auto; top: auto; bottom: 6rem; }
.wpsb-cc-pos-top-right { right: 1rem; left: auto; top: 1rem; bottom: auto; }
.wpsb-cc-pos-top-left { left: 1rem; right: auto; top: 1rem; bottom: auto; }
.wpsb-cc-pos-outside-right { right: -36px; bottom: 6rem; }
.wpsb-cc-pos-outside-left { left: -36px; bottom: 6rem; }

@media (max-width: 640px) {
  .wpsb-cc-pos-outside-right, .wpsb-cc-pos-outside-left { right: 1rem; left: auto; }
  .wpsb-cc-pos-top-right, .wpsb-cc-pos-top-left { top: 0.75rem; }
  .wpsb-cc-float { width:40px; height:40px; }
}

/* Cookie consent floating button */
.wp-spectra-cookie-btn {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 2100;
}

/* Banner base */
.wpsb-cc-banner {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 2000;
  display: flex;
  align-items: flex-end;
}

.wpsb-cc-inner {
  max-width: 420px;
  width: 100%;
  padding: 1rem;
  background: #ffffffcc;
  backdrop-filter: blur(6px);
  border-radius: 12px;
  box-shadow: 0 6px 30px rgba(0,0,0,0.18);
  border: 1px solid rgba(0,0,0,0.06);
}

.wpsb-cc-header {
  margin-bottom: 0.45rem;
}

.wpsb-cc-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.wpsb-cc-body {
  margin-bottom: 0.6rem;
}

.wpsb-cc-text {
  margin: 0;
  font-size: 0.95rem;
  color: #222;
}

.wpsb-cc-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.wpsb-cc-left {
  flex: 1 1 auto;
}

.wpsb-cc-right {
  flex: 0 0 auto;
}

@media (max-width: 520px) {
  .wpsb-cc-banner {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
  }
  .wpsb-cc-inner {
    max-width: 100%;
    padding: 0.85rem;
    border-radius: 10px;
  }
  .wpsb-cc-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .wpsb-cc-right .button {
    width: 100%;
  }
}
