.ad-pricing-v1,
.ad-pricing-v1-dialog,
.ad-pricing-v1 * ,
.ad-pricing-v1-dialog * { box-sizing: border-box; }

.ad-pricing-v1 { margin: 1.5rem 0 2rem; }
.ad-pricing-v1 h2 { margin: 0 0 .6rem; }
.ad-pricing-v1-note { margin: 0 0 1rem; line-height: 1.65; color: #43536a; }
.ad-pricing-v1-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.ad-pricing-v1-card { display: block; min-width: 0; width: 100%; padding: 0; border: 1px solid #d3e2f2; border-radius: 16px; background: #fff; overflow: hidden; cursor: zoom-in; box-shadow: 0 8px 24px rgba(8, 47, 92, .09); }
.ad-pricing-v1-card img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; }
.ad-pricing-v1-card:hover { border-color: #2872bd; }
.ad-pricing-v1-card:focus-visible,
.ad-pricing-v1-dialog button:focus-visible,
.ad-pricing-v1-slides:focus-visible { outline: 3px solid #ffb900; outline-offset: 3px; }

.ad-pricing-v1-dialog { width: min(980px, calc(100vw - 24px)); max-width: none; max-height: calc(100dvh - 24px); margin: auto; padding: 0; border: 0; border-radius: 18px; background: #fff; color: #123052; box-shadow: 0 22px 70px rgba(0, 0, 0, .35); overflow: hidden; }
.ad-pricing-v1-dialog::backdrop { background: rgba(0, 0, 0, .65); }
.ad-pricing-v1-dialog[open] { display: block; }
.ad-pricing-v1-dialog-shell { display: flex; flex-direction: column; max-height: calc(100dvh - 24px); min-width: 0; }
.ad-pricing-v1-dialog-head { position: relative; z-index: 2; display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex: 0 0 auto; padding: .9rem 1rem .35rem; background: #fff; }
.ad-pricing-v1-dialog-head h2 { margin: 0; font-size: clamp(1.1rem, 2.5vw, 1.5rem); line-height: 1.3; }
.ad-pricing-v1-dialog-head p { margin: .25rem 0 0; font-size: .83rem; line-height: 1.4; color: #52647c; }
.ad-pricing-v1-close { flex: 0 0 44px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #e6eef7; color: #123052; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.ad-pricing-v1-close[hidden] { display: none !important; }
.ad-pricing-v1-skip { align-self: flex-end; flex: 0 0 auto; margin: 0 1rem .35rem; padding: .3rem .5rem; border: 0; background: transparent; color: #154f8b; font-size: .85rem; text-decoration: underline; cursor: pointer; }
.ad-pricing-v1-slides { display: flex; min-width: 0; min-height: 0; flex: 1 1 auto; overflow-x: auto; overflow-y: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior: contain; }
.ad-pricing-v1-slides::-webkit-scrollbar { display: none; }
.ad-pricing-v1-slide { display: flex; flex: 0 0 100%; flex-direction: column; align-items: center; justify-content: center; min-width: 0; margin: 0; padding: .35rem .8rem; scroll-snap-align: start; }
.ad-pricing-v1-slide img { display: block; width: auto; max-width: 100%; height: auto; max-height: min(70dvh, 700px); object-fit: contain; }
.ad-pricing-v1-slide figcaption { margin-top: .25rem; font-size: .88rem; font-weight: 700; }
.ad-pricing-v1-controls { display: flex; align-items: center; justify-content: center; gap: 1rem; flex: 0 0 auto; padding: .5rem .75rem .75rem; background: #fff; }
.ad-pricing-v1-controls button { min-height: 44px; padding: .45rem .9rem; border: 1px solid #acc9e8; border-radius: 10px; background: #f3f8fe; color: #123e6e; cursor: pointer; }
.ad-pricing-v1-controls button:disabled { opacity: .45; cursor: default; }
.ad-pricing-v1-position { min-width: 3.2rem; text-align: center; font-variant-numeric: tabular-nums; }
.ad-pricing-v1-full { align-self: center; flex: 0 0 auto; padding: 0 .7rem .6rem; color: #154f8b; font-size: .85rem; }

@media (max-width: 700px) {
  .ad-pricing-v1-grid { grid-template-columns: minmax(0, 1fr); gap: .75rem; }
  .ad-pricing-v1-dialog { width: calc(100vw - 12px); max-height: calc(100dvh - 12px); border-radius: 12px; }
  .ad-pricing-v1-dialog-shell { max-height: calc(100dvh - 12px); }
  .ad-pricing-v1-dialog-head { padding: .7rem .7rem .2rem; }
  .ad-pricing-v1-skip { margin-right: .7rem; }
  .ad-pricing-v1-slide { padding: .2rem; }
  .ad-pricing-v1-slide img { max-height: 58dvh; }
}

@media (prefers-reduced-motion: reduce) {
  .ad-pricing-v1-slides { scroll-behavior: auto; }
  .ad-pricing-v1-card { transition: none; }
}
