/* M:E Insights — Prague editorial subscription confirmation */
.me-blog-thanks {
  box-sizing: border-box;
  width: min(1020px, calc(100% - 32px));
  max-width: 1020px;
  max-height: calc(100vh - 24px);
  max-height: min(calc(100dvh - 24px), 680px);
  padding: 0; margin: auto;
  border: 1px solid #F1DED0;
  border-radius: 24px;
  overflow-x: hidden;
  overflow-y: auto;
  background: #FFF8EF;
  color: #351521;
  box-shadow: 0 30px 100px #18071166;
}
.me-blog-thanks *, .me-blog-thanks *::before, .me-blog-thanks *::after { box-sizing: border-box; }
.me-blog-thanks::backdrop {
  background: #1E0E1BC2;
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}
.me-blog-thanks-inner {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 52fr) minmax(0, 48fr);
  min-height: 0;
  overflow: hidden; /* Clip decorative arcs, including in older Safari. */
  background: radial-gradient(ellipse at 12% 15%, #FFFFFF, #FAEEE2 78%);
  font-family: Onest, Arial, sans-serif;
}
.me-blog-thanks-content {
  position: relative; z-index: 3;
  display: flex; flex-direction: column; align-items: flex-start;
  justify-content: center;
  min-width: 0;
  padding: clamp(28px, 4.8vh, 48px) clamp(24px, 3.2vw, 44px);
}
.me-blog-thanks-visual {
  position: relative; z-index: 1; min-width: 0;
  background-image:
    linear-gradient(90deg, #FCF2E6 0%, #FCF2E600 33%),
    linear-gradient(0deg, #5D284029, #FFE2B012),
    url('/assets/prague-tyn-dusk-original-20261117.webp');
  background-size: cover;
  background-position: center;
  clip-path: ellipse(110% 94% at 112% 56%);
}
.me-blog-thanks-visual::before {
  content: ''; position: absolute;
  inset: 0;
  border-left: 2px solid #C99B55;
  border-radius: 50% 0 0 50%;
  transform: translateX(-4px);
  pointer-events: none;
}
.me-blog-thanks-inner::after {
  content: ''; z-index: 2; pointer-events: none;
  position: absolute; width: 46%; height: 130%; right: -7%; top: -15%;
  border-left: 2px solid #CD9F56;
  border-radius: 50%;
  transform: rotate(13deg);
}
.me-blog-thanks-eyebrow {
  display: flex; align-items: center; gap: 18px;
  width: 100%; margin: 0 0 20px;
  white-space: normal;
  color: #A16D24;
  font: 700 11px/1.4 Onest, Arial, sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.me-blog-thanks-eyebrow::after {
  content: ''; display: block;
  flex: 1; max-width: 120px; height: 1px;
  background: linear-gradient(90deg, #CB9B52, transparent);
}
.me-blog-thanks h2 {
  margin: 0;
  max-width: 510px;
  color: #6B1F3A;
  font: italic 500 clamp(34px, 4.3vw, 56px)/1.07 Kazimir, Georgia, serif;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.me-blog-thanks #me-blog-thanks-text {
  max-width: 405px;
  margin: 22px 0 16px;
  color: #322A2B;
  font: 400 clamp(15px, 1.35vw, 17px)/1.5 Onest, Arial, sans-serif;
}
.me-blog-thanks-note {
  margin: 0 0 24px;
  color: #6B1F3A;
  font: italic 400 clamp(17px, 1.5vw, 20px)/1.35 Kazimir, Georgia, serif;
}
.me-blog-thanks-close {
  display: inline-flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 52px; min-width: 0;
  width: min(100%, 260px); max-width: 100%;
  padding: 12px 24px; border: 1px solid #6B1F3A;
  border-radius: 999px;
  background: #6B1F3A;
  color: #FFFAF3;
  font: 600 15px/1.5 Onest, Arial, sans-serif;
  cursor: pointer; transition: background .2s;
}
.me-blog-thanks-close:hover { background: #52152D; }
.me-blog-thanks-close:focus-visible,
.me-blog-thanks-dismiss:focus-visible { outline: 3px solid #D9AB59; outline-offset: 4px; }
.me-blog-thanks-dismiss {
  position: absolute; z-index: 5; right: 21px; top: 16px;
  width: 44px; height: 44px;
  border: 0; background: #FFF9F0CF; border-radius: 50%;
  color: #6B1F3A;
  cursor: pointer; font: 300 32px/1 Onest, Arial, sans-serif;
}
.me-blog-subscribe-feedback {
  margin: 12px 0 0; color: #9B1639;
  font: 400 13px/1.5 Onest, Arial, sans-serif;
}
@media (max-width: 740px) {
  .me-blog-thanks { width: min(510px, calc(100% - 24px)); border-radius: 20px; }
  .me-blog-thanks-inner { display: flex; flex-direction: column; min-height: 0; }
  .me-blog-thanks-visual {
    height: clamp(82px, 19dvh, 145px); flex: none;
    clip-path: ellipse(115% 140% at 73% 150%);
    background-position: center 44%;
  }
  .me-blog-thanks-inner::after {
    width: 150%; height: 210px; left: -20%; top: -58px; right: auto;
    border-left: 0; border-bottom: 1px solid #D2A25A;
    transform: rotate(-8deg);
  }
  .me-blog-thanks-content { padding: 24px 26px; }
  .me-blog-thanks-eyebrow { margin-bottom: 16px; font-size: 10px; }
  .me-blog-thanks h2 { font-size: clamp(30px, 8vw, 42px); }
  .me-blog-thanks #me-blog-thanks-text { margin: 18px 0 12px; font-size: 16px; }
  .me-blog-thanks-note { margin-bottom: 20px; font-size: 18px; }
  .me-blog-thanks-close { width: 100%; min-width: 0; min-height: 51px; font-size: 14px; }
  .me-blog-thanks-dismiss { right: 12px; top: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .me-blog-thanks::backdrop { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .me-blog-thanks-close { transition: none; }
}


/* Compact spacing for short portrait and landscape viewports; keep every control visible. */
@media (max-width: 740px) and (max-height: 650px) {
  .me-blog-thanks-visual { height: clamp(64px, 14dvh, 90px); }
  .me-blog-thanks-content { padding: 20px 22px 18px; }
  .me-blog-thanks-eyebrow { margin-bottom: 12px; }
  .me-blog-thanks h2 { font-size: clamp(28px, 7.7vw, 36px); }
  .me-blog-thanks #me-blog-thanks-text { margin: 16px 0 10px; font-size: 15px; line-height: 1.45; }
  .me-blog-thanks-note { margin-bottom: 16px; font-size: 16px; }
  .me-blog-thanks-close { min-height: 46px; padding: 10px 18px; }
}
@media (min-width: 600px) and (max-height: 560px) {
  .me-blog-thanks-inner { display: grid; grid-template-columns: minmax(0, 36fr) minmax(0, 64fr); }
  .me-blog-thanks-visual { height: auto; min-height: 0; clip-path: ellipse(110% 94% at 112% 56%); }
  .me-blog-thanks-content { padding: 22px 30px 20px; }
  .me-blog-thanks-eyebrow { margin-bottom: 12px; font-size: 10px; }
  .me-blog-thanks h2 { font-size: clamp(28px, 3.6vw, 40px); }
  .me-blog-thanks #me-blog-thanks-text { margin: 14px 0 10px; font-size: 15px; line-height: 1.45; }
  .me-blog-thanks-note { margin-bottom: 16px; font-size: 16px; }
  .me-blog-thanks-close { min-height: 44px; padding: 10px 20px; }
}
