.ycb-placeholder {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 320px;
  padding: 28px;
  overflow: hidden;
  box-sizing: border-box;
  aspect-ratio: var(--ycb-aspect-ratio, 16 / 9);
  background: #d9d9d9;
  color: #222;
}

.ycb-consent {
  width: min(100%, 520px);
  padding: 28px 32px;
  box-sizing: border-box;
  background: #fff;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.ycb-title {
  display: block;
  margin: 0 0 10px;
  color: #111;
  font-family: inherit;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
}

.ycb-message {
  margin: 0 0 20px;
  color: #333;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: 0;
}

.ycb-message a {
  color: #333;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ycb-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin: 0;
  padding: 11px 22px;
  border: 1px solid #51ac3a;
  border-radius: 2px;
  background: #51ac3a;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.ycb-button:hover,
.ycb-button:focus-visible {
  border-color: #438f30;
  background: #438f30;
  color: #fff;
}

.ycb-button:focus-visible {
  outline: 3px solid rgba(81, 172, 58, 0.35);
  outline-offset: 3px;
}

.ycb-button:disabled {
  cursor: wait;
  opacity: 0.75;
}

.ycb-placeholder.ycb-is-loaded {
  padding: 0;
  min-height: 0;
  background: #000;
}

.ycb-placeholder .ycb-iframe {
  position: absolute;
  inset: 0 !important;
  display: block;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  box-sizing: border-box;
}

@media (max-width: 560px) {
  .ycb-placeholder {
    min-height: 340px;
    padding: 16px;
  }

  .ycb-consent {
    padding: 22px 18px;
  }

  .ycb-title {
    font-size: 18px;
  }

  .ycb-message,
  .ycb-button {
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ycb-button {
    transition: none;
  }
}
