:root{
  --oadc-pop-green:#1f6f3c;
  --oadc-pop-green2:#0f3f22;
  --oadc-pop-ink:#0f1a12;
}

/* Avoid theme CSS conflicts */
.oadc-popup-overlay,
.oadc-popup-overlay *{ box-sizing: border-box; }

.oadc-popup-overlay{
  position:fixed;
  inset:0;
  z-index: 99999;
  display:none;
  align-items:center;
  justify-content:center;
  padding: 16px;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(2px);
}

.oadc-popup-overlay.is-open{ display:flex; }

.oadc-popup-modal{
  width: 720px;
  max-width: calc(100vw - 32px);
  background:#fff;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: 0 22px 70px rgba(0,0,0,.25);
  overflow:hidden;
  position:relative;
  transform: translateY(6px) scale(.985);
  opacity: 0;
  transition: transform .18s ease, opacity .18s ease;
}

.oadc-popup-overlay.is-open .oadc-popup-modal{
  transform: translateY(0) scale(1);
  opacity: 1;
}

.oadc-popup-size-sm{ width: min(520px, 100%); }
.oadc-popup-size-md{ width: min(760px, 100%); }
.oadc-popup-size-lg{ width: min(980px, 100%); }

/* Keep size presets responsive */
.oadc-popup-size-sm{ max-width: calc(100vw - 32px); }
.oadc-popup-size-md{ max-width: calc(100vw - 32px); }
.oadc-popup-size-lg{ max-width: calc(100vw - 32px); }

.oadc-popup-close{
  position:absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.92);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  z-index:2;
}

.oadc-popup-close-x{
  font-size: 24px;
  line-height: 1;
  font-weight: 900;
  color: rgba(15,26,18,.78);
  transform: translateY(-1px);
}

.oadc-popup-media{
  background: linear-gradient(180deg, rgba(31,111,60,.10) 0%, rgba(255,255,255,0) 100%);
}

.oadc-popup-image{
  width:100%;
  height:auto;
  display:block;
}

.oadc-popup-content{ padding: 18px 18px 16px 18px; }

.oadc-popup-title{
  margin:0 0 8px 0;
  font-weight: 900;
  color: var(--oadc-pop-ink);
  letter-spacing: -.3px;
  line-height: 1.15;
  font-size: 22px;
}

.oadc-popup-desc{
  margin:0 0 10px 0;
  color: rgba(15,26,18,.72);
  line-height: 1.65;
  font-size: 14px;
}

.oadc-popup-editor{
  color: rgba(15,26,18,.80);
  line-height: 1.7;
  font-size: 14px;
}
.oadc-popup-editor h1,.oadc-popup-editor h2,.oadc-popup-editor h3{ margin: 10px 0 6px 0; }
.oadc-popup-editor p{ margin: 0 0 10px 0; }

.oadc-popup-actions{
  display:flex;
  gap: 10px;
  flex-wrap:wrap;
  margin-top: 12px;
}

.oadc-popup-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 12px 16px;
  border-radius: 12px;
  text-decoration:none !important;
  font-weight: 900;
  font-size: 14px;
  user-select:none;
  border: 1px solid rgba(31,111,60,.18);
}

.oadc-popup-btn--primary{
  background: linear-gradient(180deg, rgba(31,111,60,1), rgba(15,63,34,1));
  color:#fff;
}

.oadc-popup-btn--ghost{
  background: rgba(31,111,60,.08);
  color: var(--oadc-pop-green2);
}

.oadc-popup-footnote{
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(15,63,34,.10);
  font-size: 12.5px;
  color: rgba(15,26,18,.55);
}

@media (max-width: 767px){
  .oadc-popup-content{ padding: 14px 14px 12px 14px; }
  .oadc-popup-title{ font-size: 19px; }
  .oadc-popup-actions .oadc-popup-btn{ width: 100%; }
}
