:root {
  --dcp-radius: 999px;
}

.dcp-root, .dcp-shortcode-wrap {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Tahoma, Arial, sans-serif;
  color: var(--dcp-text, #fff);
  box-sizing: border-box;
}
.dcp-root *, .dcp-shortcode-wrap * { box-sizing: border-box; }

.dcp-position-floating_bottom {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 99998;
}
.dcp-position-floating_top {
  position: fixed;
  left: 16px;
  right: 16px;
  top: 16px;
  z-index: 99998;
}
.dcp-position-inline {
  position: static;
}

.dcp-banner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 22px;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,.22), transparent 26%),
    linear-gradient(135deg, var(--dcp-bg, #3B2418), #7d5324 58%, #2b1a12);
  color: var(--dcp-text, #fff);
  box-shadow: 0 16px 42px rgba(38,20,10,.25);
  backdrop-filter: blur(12px);
}
.dcp-banner-inline { position: relative; }
.dcp-banner-main {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  min-width: 0;
}
.dcp-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: var(--dcp-radius);
  background: rgba(255,255,255,.13);
  border: 1px solid rgba(255,255,255,.16);
  font-size: 12px;
  line-height: 1;
  letter-spacing: .07em;
  text-transform: uppercase;
  white-space: nowrap;
}
.dcp-banner-text { font-size: 17px; white-space: nowrap; }
.dcp-highlight {
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.03em;
  color: #fff;
  text-shadow: 0 2px 0 rgba(0,0,0,.12);
}
.dcp-secondary-text, .dcp-urgency { font-size: 14px; opacity: .94; }
.dcp-countdown {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: var(--dcp-radius);
  background: var(--dcp-countdown-bg, rgba(255,255,255,.18));
  color: var(--dcp-text, #fff);
  font-size: 13px;
  white-space: nowrap;
}
.dcp-banner-actions, .dcp-popup-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.dcp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: var(--dcp-radius);
  font-weight: 800;
  text-decoration: none !important;
  line-height: 1.1;
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
  white-space: nowrap;
}
.dcp-btn:hover { transform: translateY(-1px); opacity: .96; }
.dcp-btn-primary {
  background: var(--dcp-primary-bg, #c79a3b);
  color: var(--dcp-primary-text, #2B1A12) !important;
  box-shadow: 0 10px 22px rgba(0,0,0,.14);
}
.dcp-btn-secondary {
  background: var(--dcp-secondary-bg, #f7e8c8);
  color: var(--dcp-secondary-text, #3B2418) !important;
}
.dcp-btn-ghost {
  background: transparent;
  color: var(--dcp-text, #fff) !important;
  border: 1px solid var(--dcp-ghost-border, rgba(255,255,255,.42));
}

.dcp-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(20,12,8,.54);
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s ease, visibility .22s ease;
}
.dcp-popup-overlay.dcp-is-open,
.dcp-popup-preview-mode {
  opacity: 1;
  visibility: visible;
}
.dcp-popup-preview-mode {
  position: static;
  inset: auto;
  background: transparent;
  padding: 0;
}
.dcp-popup {
  position: relative;
  width: min(940px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  display: grid;
  grid-template-columns: minmax(280px, 44%) 1fr;
  gap: 0;
  border-radius: 28px;
  background:
    radial-gradient(circle at 18% 0, rgba(255,255,255,.58), transparent 28%),
    linear-gradient(135deg, #fff9ed, #f8e5c5 44%, #3B2418 44%, #2a1710);
  color: #2B1A12;
  box-shadow: 0 34px 90px rgba(0,0,0,.36);
}
.dcp-popup-close {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  color: #2B1A12;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.dcp-popup-image {
  min-height: 320px;
  background: #f9ead1;
  display: flex;
  align-items: stretch;
  justify-content: center;
  overflow: hidden;
  border-radius: 28px 0 0 28px;
}
.dcp-popup-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.dcp-popup-content {
  padding: 34px 34px 30px;
  color: #fff;
}
.dcp-eyebrow {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(199,154,59,.2);
  color: #F7E8C8;
  border: 1px solid rgba(247,232,200,.25);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
}
.dcp-popup h3 {
  margin: 0 0 4px;
  font-size: clamp(28px, 5vw, 54px);
  line-height: .98;
  color: #fff;
  letter-spacing: -.04em;
}
.dcp-popup h3 span { color: #FFD56A; }
.dcp-popup-date {
  display: inline-flex;
  margin: 8px 0 12px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  font-weight: 800;
  color: #fff;
}
.dcp-popup p { margin: 0 0 14px; color: rgba(255,255,255,.88); line-height: 1.55; }
.dcp-bullets {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.dcp-bullets li {
  position: relative;
  padding-left: 26px;
  color: rgba(255,255,255,.94);
  line-height: 1.35;
}
.dcp-bullets li:before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #C79A3B;
  color: #2B1A12;
  font-size: 12px;
  font-weight: 900;
}
.dcp-countdown-popup { margin: 4px 0 14px; }
.dcp-code {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px dashed rgba(255,255,255,.35);
  border-radius: 14px;
  color: rgba(255,255,255,.9);
}

.dcp-hide-desktop { display: none !important; }
@media (max-width: 767px) {
  .dcp-hide-mobile { display: none !important; }
  .dcp-position-floating_bottom, .dcp-position-floating_top { left: 10px; right: 10px; }
  .dcp-banner { flex-direction: column; align-items: stretch; border-radius: 20px; padding: 12px; }
  .dcp-banner-main { justify-content: center; text-align: center; }
  .dcp-banner-actions { justify-content: center; }
  .dcp-banner-text { font-size: 15px; white-space: normal; }
  .dcp-highlight { font-size: 26px; }
  .dcp-secondary-text, .dcp-urgency { font-size: 13px; }
  .dcp-popup { grid-template-columns: 1fr; border-radius: 22px; max-height: calc(100vh - 24px); }
  .dcp-popup-image { min-height: 240px; max-height: 44vh; border-radius: 22px 22px 0 0; }
  .dcp-popup-content { padding: 24px 20px 22px; }
  .dcp-popup-actions { align-items: stretch; }
  .dcp-popup-actions .dcp-btn { width: 100%; }
}

@media (min-width: 768px) {
  .dcp-root.dcp-hide-desktop { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .dcp-btn, .dcp-popup-overlay { transition: none; }
}
