/* B3YOND Maabela Opening Countdown (client supplied, styles prefixed "b3m-")
  --------------------------------------- */

.b3m-countdown, .b3m-countdown * { box-sizing: border-box; }
.b3m-countdown {
  --b3m-primary: hsl(204 65% 48%);
  --b3m-primary-hover: hsl(204 65% 48% / .9);
  width: 100%;
  background: #0a0a0a;
  border-top: 1px solid rgba(255,255,255,.1);
  border-bottom: 1px solid rgba(255,255,255,.1);
  padding: 48px 0;
  font-family: "Montserrat", "Montserrat Arabic", sans-serif;
  color: #fff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
/* Arabic uses the site's GE Dinar One (loaded by arabic.css) */
.b3m-countdown[dir="rtl"] { font-family: "GE Dinar One", "Montserrat Arabic", "Montserrat", sans-serif; }
.b3m-countdown h2, .b3m-countdown p { margin: 0; }
.b3m-wrap { width: 100%; max-width: 64rem; margin: 0 auto; padding: 0 24px; }
.b3m-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }

.b3m-eyebrow { display: inline-flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.b3m-line { display: inline-block; width: 32px; height: 1px; background: var(--b3m-primary); }
.b3m-eyebrow-text { color: var(--b3m-primary); font-weight: 700; font-size: 12px; line-height: 16px; letter-spacing: .25em; text-transform: uppercase; }

.b3m-title { font-size: 30px; line-height: 36px; font-weight: 900; font-style: italic; text-transform: uppercase; letter-spacing: -.025em; margin-bottom: 16px !important; color: #fff; }
.b3m-sub { color: #9ca3af; font-size: 16px; line-height: 24px; font-weight: 300; margin-bottom: 40px !important; max-width: 36rem; }

.b3m-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; width: 100%; max-width: 42rem; margin-bottom: 40px; }
.b3m-cell { background: #111; border: 1px solid rgba(255,255,255,.1); border-radius: 2px; padding: 24px 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.b3m-num { font-family: "Montserrat", "Montserrat Arabic", sans-serif; font-size: 36px; line-height: 1; font-weight: 900; color: #fff; font-variant-numeric: tabular-nums; margin-bottom: 8px; }
.b3m-label { color: #6b7280; font-size: 12px; line-height: 16px; font-weight: 500; text-transform: uppercase; letter-spacing: .05em; }

.b3m-open { display: none; margin-bottom: 40px; }
.b3m-open .b3m-eyebrow { margin-bottom: 0; }
.b3m-open-text { font-size: 36px; line-height: 40px; font-weight: 900; font-style: italic; text-transform: uppercase; color: var(--b3m-primary); letter-spacing: -.025em; }
.b3m-countdown.is-open .b3m-grid { display: none; }
.b3m-countdown.is-open .b3m-open { display: block; }

.b3m-btn { display: inline-block; background: var(--b3m-primary); color: #fff; text-decoration: none; font-size: 14px; line-height: 20px; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; padding: 16px 40px; border-radius: 2px; box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1); transition: background-color .15s ease; }
.b3m-btn:hover, .b3m-btn:focus-visible { background: var(--b3m-primary-hover); color: #fff; }

@media (min-width: 768px) {
  .b3m-countdown { padding: 64px 0; }
  .b3m-title { font-size: 48px; line-height: 1; }
  .b3m-sub { font-size: 18px; line-height: 28px; }
  .b3m-grid { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 20px; }
  .b3m-cell { padding: 32px 8px; }
  .b3m-num { font-size: 60px; }
  .b3m-label { font-size: 14px; line-height: 20px; }
  .b3m-open-text { font-size: 60px; line-height: 1; }
  .b3m-btn { font-size: 16px; line-height: 24px; }
}

/* Modal wrapper */
.b3m-modal .modal-dialog { max-width: 960px; }
.b3m-modal .modal-content { position: relative; background: #0a0a0a; border: 1px solid rgba(255,255,255,.1); border-radius: 4px; overflow: hidden; }
.b3m-modal .b3m-countdown { border: 0; padding-top: 56px; }
.b3m-modal .b3m-close { position: absolute; top: 16px; right: 16px; z-index: 2; opacity: .7; box-shadow: none; }
.b3m-modal .b3m-close:hover, .b3m-modal .b3m-close:focus { opacity: 1; }
.b3m-modal[dir="rtl"] .b3m-close { right: auto; left: 16px; }

@media (max-width: 575px) {
  .b3m-modal .b3m-countdown { padding: 44px 0 32px; }
  .b3m-modal .b3m-close { top: 12px; right: 12px; }
  .b3m-modal[dir="rtl"] .b3m-close { right: auto; left: 12px; }
  .b3m-modal .b3m-eyebrow { margin-bottom: 16px; }
  .b3m-modal .b3m-sub { margin-bottom: 28px !important; }
  .b3m-modal .b3m-grid { margin-bottom: 28px; }
}
