/* Cloudpilar Booking — front-end.
   Uses the theme's tokens where they exist, with fallbacks so the forms stay
   legible if the plugin is ever active under a different theme. */

.cpb-form {
  background: var(--card, #fff);
  border: 1px solid var(--mist, #dfe7ee);
  border-radius: var(--radius, 14px);
  padding: var(--space-4, 2.5rem);
  box-shadow: var(--shadow-soft, 0 1px 2px rgba(11, 29, 48, 0.05));
  margin-bottom: var(--space-3, 1.5rem);
}

.cpb-form-head {
  margin-bottom: var(--space-3, 1.5rem);
  padding-bottom: var(--space-3, 1.5rem);
  border-bottom: 1px solid var(--mist, #dfe7ee);
}

.cpb-form-head h3 {
  font-family: var(--font-display, inherit);
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
}

.cpb-form-head p {
  color: var(--slate, #4e6478);
  margin: 0;
  font-size: 0.95rem;
}

.cpb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
  gap: 0 var(--space-3, 1.5rem);
}

.cpb-field {
  display: block;
  margin: 0 0 var(--space-2, 1rem);
}

.cpb-field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--ink, #0b1d30);
}

.cpb-optional {
  font-weight: 400;
  color: var(--slate-2, #6b8093);
}

.cpb-field input,
.cpb-field select,
.cpb-field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--mist-2, #ccd8e2);
  border-radius: var(--radius-sm, 8px);
  background: #fff;
  color: var(--ink, #0b1d30);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cpb-field input:focus,
.cpb-field select:focus,
.cpb-field textarea:focus {
  outline: none;
  border-color: var(--azure, #0e62c4);
  box-shadow: 0 0 0 3px rgba(14, 98, 196, 0.15);
}

.cpb-hint {
  display: block;
  font-size: 0.83rem;
  color: var(--slate, #4e6478);
  margin-top: 0.35rem;
}

.cpb-hint-legal {
  margin-top: var(--space-2, 1rem);
}

/* Honeypot — off-screen rather than display:none, which some bots detect. */
.cpb-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.cpb-notice {
  border-radius: var(--radius-sm, 8px);
  padding: 1rem 1.15rem;
  margin-bottom: var(--space-3, 1.5rem);
  border-left: 4px solid;
}

.cpb-notice p {
  margin: 0;
}

.cpb-notice-success {
  background: #e9f6ee;
  border-left-color: #2f8f52;
  color: #16341f;
}

.cpb-notice-error {
  background: #fdecec;
  border-left-color: #c8434a;
  color: #4a1418;
}

.cpb-alt {
  margin-top: var(--space-3, 1.5rem);
}

.cpb-alt > summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--azure-deep, #0a4c99);
  padding: 0.6rem 0;
}

.cpb-cohort-list {
  list-style: none;
  margin: 0 0 var(--space-3, 1.5rem);
  padding: 0;
}

.cpb-cohort-list li {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--mist, #dfe7ee);
}

/* ---------- Free workshops ---------- */

.cpb-workshop-list {
  display: grid;
  gap: var(--space-3, 1.5rem);
}

.cpb-workshop-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 22rem);
  gap: var(--space-4, 2.5rem);
  background: var(--card, #fff);
  border: 1px solid var(--mist, #dfe7ee);
  border-radius: var(--radius, 14px);
  padding: var(--space-4, 2.5rem);
  box-shadow: var(--shadow-soft, 0 1px 2px rgba(11, 29, 48, 0.05));
}

.cpb-workshop-image {
  margin: 0 0 var(--space-3, 1.5rem);
  border-radius: var(--radius-sm, 8px);
  overflow: hidden;
  background: var(--paper, #f6f8fa);
}

.cpb-workshop-image img {
  display: block;
  width: 100%;
  height: auto;
}

.cpb-workshop-topic {
  display: inline-block;
  font-family: var(--font-mono, monospace);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-ink, #a8323b);
  background: #fdecec;
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  margin: 0 0 0.7rem;
}

.cpb-workshop-date {
  font-family: var(--font-mono, monospace);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--azure-deep, #0a4c99);
  margin: 0 0 0.5rem;
  text-transform: uppercase;
}

.cpb-workshop-summary h3 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display, inherit);
  font-size: 1.4rem;
}

.cpb-workshop-desc {
  color: var(--slate, #4e6478);
  font-size: 0.98rem;
}

.cpb-workshop-desc p:last-child {
  margin-bottom: 0;
}

/* The description is authored in a rich editor, so bold, links and both list
   types have to render properly on the public page. */
.cpb-workshop-desc ul,
.cpb-workshop-desc ol {
  margin: 0 0 var(--space-2, 1rem);
  padding-left: 1.4rem;
}

.cpb-workshop-desc ul {
  list-style: disc;
}

.cpb-workshop-desc ol {
  list-style: decimal;
}

.cpb-workshop-desc li {
  margin-bottom: 0.35rem;
}

.cpb-workshop-desc li:last-child {
  margin-bottom: 0;
}

.cpb-workshop-desc strong,
.cpb-workshop-desc b {
  color: var(--ink, #0b1d30);
  font-weight: 600;
}

.cpb-workshop-desc a {
  color: var(--azure-deep, #0a4c99);
}

.cpb-workshop-meta {
  font-size: 0.85rem;
  color: var(--slate-2, #6b8093);
  margin: 0.75rem 0 0;
}

.cpb-workshop-form {
  margin-bottom: 0;
  align-self: start;
}

@media (max-width: 780px) {
  .cpb-workshop-card {
    grid-template-columns: 1fr;
  }
}

/* ---------- Training schedule ---------- */

.cpb-sched-section + .cpb-sched-section {
  margin-top: var(--space-5, 4rem);
}

.cpb-sched-section h2 {
  font-family: var(--font-display, inherit);
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  margin: 0 0 var(--space-3, 1.5rem);
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--mist, #dfe7ee);
}

.cpb-sched-list {
  display: grid;
}

.cpb-sched-row {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr) auto;
  gap: var(--space-3, 1.5rem);
  align-items: center;
  padding: var(--space-3, 1.5rem) 0;
  border-bottom: 1px solid var(--mist, #dfe7ee);
}

.cpb-sched-when {
  display: grid;
  gap: 0.15rem;
}

.cpb-sched-date {
  font-weight: 600;
  color: var(--ink, #0b1d30);
}

.cpb-sched-time {
  font-family: var(--font-mono, monospace);
  font-size: 0.8rem;
  color: var(--slate, #4e6478);
}

.cpb-sched-kicker {
  font-family: var(--font-mono, monospace);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--azure-deep, #0a4c99);
  margin: 0 0 0.2rem;
}

.cpb-sched-what h3 {
  margin: 0;
  font-family: var(--font-display, inherit);
  font-size: 1.1rem;
}

.cpb-sched-what h3 a {
  color: var(--ink, #0b1d30);
  text-decoration: none;
}

.cpb-sched-what h3 a:hover {
  color: var(--azure-deep, #0a4c99);
  text-decoration: underline;
}

.cpb-sched-meta {
  margin: 0.3rem 0 0;
  font-size: 0.87rem;
  color: var(--slate, #4e6478);
}

.cpb-pill {
  display: inline-block;
  white-space: nowrap;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.cpb-pill-live {
  background: #e3f3e8;
  color: #1c6b34;
}

.cpb-pill-open {
  background: var(--azure-tint, #e8f1fb);
  color: var(--azure-deep, #0a4c99);
}

.cpb-pill-closed {
  background: #f0f0f1;
  color: #50575e;
}

@media (max-width: 720px) {
  .cpb-sched-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

/* ---------- Downloads ---------- */

.cpb-file-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.cpb-file {
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1fr);
  gap: var(--space-2, 1rem);
  align-items: start;
  padding: var(--space-2, 1rem);
  background: var(--card, #fff);
  border: 1px solid var(--mist, #dfe7ee);
  border-radius: var(--radius-sm, 8px);
  transition: border-color 0.2s ease;
}

.cpb-file:hover {
  border-color: var(--azure, #0e62c4);
}

.cpb-file-ext {
  display: grid;
  place-items: center;
  height: 2.4rem;
  border-radius: 6px;
  background: var(--azure-tint, #e8f1fb);
  color: var(--azure-deep, #0a4c99);
  font-family: var(--font-mono, monospace);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.cpb-file-body {
  display: grid;
  gap: 0.15rem;
}

.cpb-file-body > a {
  font-weight: 600;
  text-decoration: none;
  color: var(--ink, #0b1d30);
}

.cpb-file-body > a:hover {
  color: var(--azure-deep, #0a4c99);
  text-decoration: underline;
}

.cpb-file-desc {
  font-size: 0.9rem;
  color: var(--slate, #4e6478);
}

.cpb-file-meta {
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  color: var(--slate-2, #6b8093);
}

.cpb-downloads-note {
  margin: var(--space-2, 1rem) 0 0;
  font-size: 0.9rem;
  color: var(--slate, #4e6478);
}

.cpb-materials-who {
  font-family: var(--font-mono, monospace);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-2, #6b8093);
  margin: 0 0 0.3rem;
}

.cpb-materials h2 {
  font-family: var(--font-display, inherit);
  margin: 0 0 var(--space-3, 1.5rem);
}

/* ---------- Pay page ---------- */

.cpb-pay {
  max-width: 34rem;
  background: var(--card, #fff);
  border: 1px solid var(--mist, #dfe7ee);
  border-radius: var(--radius, 14px);
  padding: var(--space-4, 2.5rem);
  box-shadow: var(--shadow-soft, 0 1px 2px rgba(11, 29, 48, 0.05));
}

.cpb-pay-for {
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-2, #6b8093);
  margin: 0 0 0.4rem;
}

.cpb-pay h2 {
  font-family: var(--font-display, inherit);
  font-size: 1.35rem;
  margin: 0 0 0.4rem;
}

.cpb-pay-when {
  color: var(--slate, #4e6478);
  margin: 0 0 var(--space-3, 1.5rem);
}

.cpb-pay-amount {
  font-family: var(--font-display, inherit);
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink, #0b1d30);
  margin: 0 0 0.4rem;
}

.cpb-pay-note {
  font-size: 0.85rem;
  color: var(--slate, #4e6478);
  margin: 0.6rem 0 0;
}

.cpb-pay-form {
  margin-top: var(--space-3, 1.5rem);
}

.cpb-pay-form .btn {
  width: 100%;
}

.cpb-pay-summary {
  color: var(--slate, #4e6478);
}

/* ---------- Payment plan & voucher ---------- */

.cpb-sched-plan {
  list-style: none;
  margin: var(--space-3, 1.5rem) 0;
  padding: 0;
  border-top: 1px solid var(--mist, #dfe7ee);
}

.cpb-sched-plan li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: var(--space-2, 1rem);
  align-items: baseline;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--mist, #dfe7ee);
  font-size: 0.92rem;
}

.cpb-sched-plan li:last-child > span:last-child,
.cpb-sched-plan li > span:last-child {
  color: var(--slate-2, #6b8093);
  font-size: 0.85rem;
  text-align: right;
}

.cpb-sched-plan li.is-paid {
  color: #1c6b34;
}

.cpb-sched-plan li.is-paid > span:last-child {
  color: #1c6b34;
}

.cpb-pay-options {
  margin: var(--space-3, 1.5rem) 0;
  padding: var(--space-3, 1.5rem);
  background: var(--paper, #f6f8fa);
  border-radius: var(--radius-sm, 8px);
}

.cpb-plan {
  border: 0;
  margin: 0 0 var(--space-2, 1rem);
  padding: 0;
}

.cpb-plan legend {
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0;
  margin-bottom: 0.6rem;
  color: var(--ink, #0b1d30);
}

.cpb-plan-opt {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.6rem;
  align-items: start;
  padding: 0.7rem 0.9rem;
  background: #fff;
  border: 1.5px solid var(--mist-2, #ccd8e2);
  border-radius: var(--radius-sm, 8px);
  margin-bottom: 0.5rem;
  cursor: pointer;
  font-size: 0.93rem;
  transition: border-color 0.2s ease;
}

.cpb-plan-opt:hover {
  border-color: var(--azure, #0e62c4);
}

.cpb-plan-opt input {
  margin-top: 0.25rem;
}

.cpb-voucher {
  margin-bottom: 0.8rem;
}

.cpb-voucher input {
  text-transform: uppercase;
}

.cpb-apply {
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  border: 1.5px solid var(--mist-2, #ccd8e2);
  background: #fff;
  color: var(--ink, #0b1d30);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.cpb-apply:hover {
  border-color: var(--azure, #0e62c4);
  color: var(--azure-deep, #0a4c99);
}

/* ---------- Promo banner (Bookings → Promo Banner) ----------
   Navy on the light page, matching the theme's existing .on-dark sections —
   deliberately not a new colour, and deliberately not a modal. */

.cpb-promo {
  background: var(--ink, #0b1d30);
  color: #fff;
  font-family: var(--font-body, inherit);
}

.cpb-promo-inner {
  display: flex;
  align-items: center;
  gap: 0.5rem 1.5rem;
  flex-wrap: wrap;
}

.cpb-promo-text {
  flex: 1 1 16rem;
  min-width: 0;
}

.cpb-promo-topic {
  font-family: var(--font-mono, monospace);
  font-size: 0.68rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--brand-soft, #ef9096);
  margin: 0 0 0.15rem;
}

.cpb-promo-code {
  color: #fff;
  opacity: 0.55;
  margin-right: 0.5rem;
}

.cpb-promo-headline {
  font-family: var(--font-display, inherit);
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.25;
  margin: 0;
}

.cpb-promo-meta {
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.72);
  margin: 0.15rem 0 0;
}

.cpb-promo-price {
  margin: 0;
  font-family: var(--font-display, inherit);
  white-space: nowrap;
}

.cpb-promo-price strong {
  font-size: 1.15rem;
}

.cpb-promo-price s {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  margin-right: 0.4rem;
}

.cpb-promo-cta {
  flex-shrink: 0;
  background: #fff;
  color: var(--ink, #0b1d30);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  padding: 0.5rem 1.15rem;
  border-radius: 999px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.cpb-promo-cta:hover {
  background: var(--azure, #0e62c4);
  color: #fff;
}

.cpb-promo-close {
  flex-shrink: 0;
  background: none;
  border: 0;
  color: rgba(255, 255, 255, 0.55);
  padding: 0.4rem;
  line-height: 0;
  cursor: pointer;
  border-radius: 50%;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.cpb-promo-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.cpb-promo-close:focus-visible,
.cpb-promo-cta:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* ---------- The "SALE" badge ----------
   Brand red on navy. This is the one element whose whole job is to say "this
   is an offer" before anything is read. */

.cpb-promo-badge {
  display: inline-block;
  flex-shrink: 0;
  background: var(--brand, #c8434a);
  color: #fff;
  font-family: var(--font-mono, monospace);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
  margin: 0;
}

.cpb-promo-badge-lg {
  font-family: var(--font-display, inherit);
  font-size: clamp(1.35rem, 5vw, 1.75rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  margin-bottom: 0.75rem;
  /* Continuous, slow, and low-amplitude on purpose: enough to catch the eye
     in peripheral vision, not enough to be the flashing-banner cliche. */
  animation: cpb-badge-pulse 2.8s ease-in-out infinite;
}

@keyframes cpb-badge-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(200, 67, 74, 0.45); }
  50%      { transform: scale(1.035); box-shadow: 0 0 0 0.55rem rgba(200, 67, 74, 0); }
}

/* ---------- Strip across the top ----------
   .container comes from the theme, so the bar lines up with every other
   section without duplicating the width rule. */
.cpb-promo-bar .cpb-promo-inner {
  padding-block: 0.7rem;
}

/* ---------- Floating sale panel ----------
   Floats OVER the page — it never replaces or hides the site's own content.
   Mobile first: the base rules below are the phone layout (a full-width sheet
   pinned to the bottom edge, clear of the hero headline); the min-width block
   promotes it to a floating corner card once there is room. */

.cpb-promo-card {
  position: fixed;
  z-index: 95;
  left: 0.6rem;
  right: 0.6rem;
  bottom: 0.6rem;
  border-radius: var(--radius, 14px);
  box-shadow: var(--shadow-lift, 0 16px 44px rgba(11, 29, 48, 0.28));
  overflow: hidden;
  /* Starts off-screen; .is-in is added by the inline script a beat after load
     so it reads as arriving rather than as part of the page painting. */
  opacity: 0;
  transform: translateY(120%);
  transition: opacity 0.5s var(--ease-out, cubic-bezier(0.19, 1, 0.22, 1)),
              transform 0.5s var(--ease-out, cubic-bezier(0.19, 1, 0.22, 1));
}

.cpb-promo-card.is-in {
  opacity: 1;
  transform: none;
}

.cpb-promo-card .cpb-promo-inner {
  display: block;
  position: relative;
  padding: 0;
}

.cpb-promo-card .cpb-promo-body {
  padding: 1rem 1.15rem 1.15rem;
}

/* Sits on top of the image, so it needs its own contrast rather than the
   inherited translucent white. */
.cpb-promo-card .cpb-promo-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 2;
  color: #fff;
  background: rgba(11, 29, 48, 0.55);
}

.cpb-promo-media {
  display: none; /* Phone: the image is the first thing to go — height is scarcer than attention here. */
}

.cpb-promo-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cpb-promo-card .cpb-promo-headline {
  font-size: 1.15rem;
  margin-bottom: 0.3rem;
}

.cpb-promo-audience {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.72);
  margin: 0 0 0.5rem;
}

.cpb-promo-card .cpb-promo-price {
  margin: 0.6rem 0 0.35rem;
  white-space: normal;
}

.cpb-promo-card .cpb-promo-price strong {
  font-size: 1.6rem;
}

.cpb-promo-card .cpb-promo-meta {
  margin-bottom: 0.9rem;
}

.cpb-promo-card .cpb-promo-cta {
  display: block;
  text-align: center;
  padding: 0.7rem 1.15rem;
}

/* Tablet and up: enough room to float in the corner and show the image. */
@media (min-width: 700px) {
  .cpb-promo-card {
    left: auto;
    right: clamp(1rem, 3vw, 1.75rem);
    bottom: clamp(1rem, 3vw, 1.75rem);
    width: 23rem;
    transform: translateY(1.5rem);
  }

  .cpb-promo-media {
    display: block;
    aspect-ratio: 16 / 9;
  }

  .cpb-promo-card .cpb-promo-cta {
    display: inline-block;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cpb-promo-card {
    transition: none;
    opacity: 1;
    transform: none;
  }
  .cpb-promo-badge-lg {
    animation: none;
  }
}

@media (max-width: 640px) {
  .cpb-promo-bar .cpb-promo-headline { font-size: 0.95rem; }
  .cpb-promo-bar .cpb-promo-inner { gap: 0.4rem 1rem; }
}

/* ---------- Registration dialog ----------
   Holds the real booking block from CPB_Forms, so the promo can take a
   registration without sending the visitor anywhere. Mobile first: full-screen
   sheet on a phone, centred panel once there is room. */

.cpb-promo-dialog {
  padding: 0;
  border: 0;
  background: transparent;
  width: 100%;
  max-width: 100%;
  max-height: 100%;
  height: 100%;
  margin: 0;
  color: var(--ink, #0b1d30);
}

.cpb-promo-dialog::backdrop {
  background: rgba(11, 29, 48, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.cpb-promo-dialog-inner {
  background: var(--paper, #f6f8fa);
  height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.cpb-promo-dialog-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  background: var(--ink, #0b1d30);
  color: #fff;
}

.cpb-promo-dialog-head h2 {
  font-family: var(--font-display, inherit);
  font-size: 1.2rem;
  line-height: 1.25;
  margin: 0;
  color: #fff;
}

.cpb-promo-dialog-code {
  font-family: var(--font-mono, monospace);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-soft, #ef9096);
  margin: 0 0 0.2rem;
}

.cpb-promo-dialog-close {
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.12);
  border: 0;
  color: #fff;
  padding: 0.45rem;
  line-height: 0;
  border-radius: 50%;
  cursor: pointer;
}

.cpb-promo-dialog-close:hover {
  background: rgba(255, 255, 255, 0.24);
}

.cpb-promo-dialog-body {
  padding: 1.15rem;
}

/* The booking form already carries its own card styling on the page; inside
   the dialog that second frame is redundant. */
.cpb-promo-dialog-body .cpb-form {
  box-shadow: none;
  margin-bottom: 1rem;
}

@media (min-width: 700px) {
  .cpb-promo-dialog {
    width: min(38rem, calc(100vw - 3rem));
    height: auto;
    max-height: min(85vh, 48rem);
    margin: auto;
    border-radius: var(--radius, 14px);
    overflow: hidden;
    box-shadow: var(--shadow-lift, 0 16px 44px rgba(11, 29, 48, 0.28));
  }

  .cpb-promo-dialog-inner {
    max-height: min(85vh, 48rem);
  }

  .cpb-promo-dialog-head {
    padding: 1.15rem 1.5rem;
  }

  .cpb-promo-dialog-body {
    padding: 1.5rem;
  }
}
