/* Spotify Consent Blocker — placeholder styles */

.spcb-placeholder {
  position: relative;
  display: block;
  overflow: hidden;
  background: #121212; /* Spotify dark background */
  border-radius: 12px;  /* matches Spotify's own iframe style */
  max-width: 100%;
  /* Height/aspect-ratio are driven by inline styles set from PHP */
}

/* Fallback min-height when no dimensions are available */
.spcb-placeholder:not([style*="aspect-ratio"]) {
  min-height: 152px;
}

.spcb-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1.25rem;
  text-align: center;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.72);
}

/* Spotify logo icon */
.spcb-spotify-logo {
  width: 48px;
  height: 48px;
  margin-bottom: 0.85rem;
  flex-shrink: 0;
}

.spcb-title {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.spcb-msg {
  margin: 0 0 1.1rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 30rem;
  line-height: 1.5;
}

/*
 * Buttons — hard reset so browser defaults and wp-element-button don't
 * bleed in. All visual styling is driven by the theme classes set in
 * Settings › Spotify Consent.
 */
.spcb-btn {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  line-height: inherit;
  text-transform: none;
  letter-spacing: normal;
  box-shadow: none;
  outline: none;
  display: inline-block;
  cursor: pointer;
  white-space: nowrap;
}

/* Button row */
.spcb-btn-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--spcb-btn-gap, 8px);
}

/* Responsive: stack buttons on small screens */
@media (max-width: 400px) {
  .spcb-title {
    font-size: 0.95rem;
  }

  .spcb-msg {
    font-size: 0.8rem;
  }

  .spcb-btn-wrap {
    flex-direction: column;
    align-items: stretch;
  }

  .spcb-btn {
    display: block;
    width: 100%;
    text-align: center;
  }
}
