/* ── WRM Boarding Pass — Luxury Layout ─────────────────────────────
   Two-panel: cream LEFT (public) · dark RIGHT (private stub)
   Desktop: side-by-side flex row
   Mobile  (<600px): stacks, stub becomes a compact strip
   ─────────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&display=swap');

:root {
  --bp-cream:      #F7F3EE;
  --bp-tan:        #E8DDD0;
  --bp-gold:       #C9A84C;
  --bp-brown:      #6B5C42;
  --bp-brown-lt:   #9A8370;
  --bp-near-black: #3A2E22;
  --bp-dark-bg:    #1A140C;
  --bp-page-bg:    #EDE5D8;
}

/* ── Page wrapper ── */
.wrm-bp-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 24px 16px 32px;
  box-sizing: border-box;
  width: 100%;
  font-family: 'Cormorant Garamond', 'Georgia', serif;
}

/* ── Above-card label ── */
.wrm-bp__above-label {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.wrm-bp__above-label span {
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--bp-brown-lt);
  text-transform: uppercase;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}
.wrm-bp__above-rule {
  width: 36px;
  height: 1px;
  background: var(--bp-gold);
}

/* ── The card shell ── */
.wrm-bp {
  width: 100%;
  max-width: 700px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 12px 48px rgba(58,46,34,0.18),
    0 2px 8px rgba(58,46,34,0.10);
  /* KEY: explicit row so left+right panels sit side by side on desktop */
  display: flex;
  flex-direction: row;
  position: relative;
}

/* ── LEFT panel (cream, public/shareable) ── */
.wrm-bp__left {
  background: var(--bp-cream);
  /* Take remaining space but don't shrink to zero */
  flex: 1 1 auto;
  min-width: 0;
  padding: 24px 24px 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-sizing: border-box;
  background-image: repeating-linear-gradient(
    0deg, transparent, transparent 3px,
    rgba(0,0,0,0.006) 3px, rgba(0,0,0,0.006) 4px
  );
}

/* ── RIGHT stub panel (dark, private) ── */
.wrm-bp__right {
  background: var(--bp-dark-bg);
  /* Fixed width — never flex-grows */
  width: 188px;
  flex: 0 0 188px;
  padding: 20px 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}
.wrm-bp__right::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 130px; height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,0.12) 0%, transparent 70%);
  pointer-events: none;
}

/* Perforated edge — sits on the left edge of the right panel */
.wrm-bp__perf {
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 1px;
  background: repeating-linear-gradient(
    to bottom,
    rgba(154,131,112,0.35) 0, rgba(154,131,112,0.35) 5px,
    transparent 5px, transparent 11px
  );
}

/* ── LEFT: top row ── */
.wrm-bp__top-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

/* Couple photo: strict circle, never overflows */
.wrm-bp__photo {
  width: 60px;
  height: 60px;
  min-width: 60px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--bp-tan);
  box-shadow: 0 0 0 1px rgba(201,168,76,0.3);
  box-sizing: border-box;
}
.wrm-bp__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.wrm-bp__status-block {
  flex: 1;
  min-width: 0;
  padding-top: 2px;
}
.wrm-bp__status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--bp-tan);
  border-radius: 3px;
  padding: 2px 7px;
  margin-bottom: 5px;
}
.wrm-bp__status-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--bp-gold);
  flex-shrink: 0;
}
.wrm-bp__status-label {
  font-size: 8px;
  letter-spacing: 0.18em;
  color: var(--bp-brown-lt);
  text-transform: uppercase;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}
.wrm-bp__status-title {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--bp-near-black);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 2px;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}
.wrm-bp__status-sub {
  font-size: 11px;
  color: var(--bp-brown-lt);
  font-style: italic;
}

/* JW micro monogram */
.wrm-bp__jw-mono {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(201,168,76,0.5);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.wrm-bp__jw-mono span {
  font-size: 8px;
  color: var(--bp-gold);
  font-weight: 700;
  letter-spacing: 0.04em;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Divider */
.wrm-bp__divider {
  height: 1px;
  background: linear-gradient(to right, var(--bp-tan), transparent);
  margin-bottom: 12px;
  flex-shrink: 0;
}

/* Passenger + Class */
.wrm-bp__fields {
  display: flex;
  gap: 24px;
  margin-bottom: 5px;
  flex-wrap: wrap;
}
.wrm-bp__field-label {
  font-size: 7px;
  letter-spacing: 0.2em;
  color: var(--bp-brown-lt);
  text-transform: uppercase;
  margin-bottom: 3px;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}
.wrm-bp__field-value {
  font-size: 14px;
  color: var(--bp-near-black);
  font-family: 'Courier New', monospace;
  letter-spacing: 0.04em;
  font-weight: 700;
}

.wrm-bp__tagline {
  font-size: 10px;
  color: var(--bp-brown-lt);
  font-style: italic;
  margin-bottom: 13px;
  line-height: 1.5;
}

/* Info cells */
.wrm-bp__info-box {
  display: flex;
  border: 1px solid var(--bp-tan);
  border-radius: 7px;
  overflow: hidden;
  margin-bottom: 16px;
  flex-shrink: 0;
}
.wrm-bp__info-cell {
  flex: 1;
  padding: 8px 10px;
  border-left: 1px solid var(--bp-tan);
  min-width: 0;
}
.wrm-bp__info-cell:first-child { border-left: none; }
.wrm-bp__info-cell--mid { background: rgba(232,221,208,0.35); }
.wrm-bp__info-cell-label {
  font-size: 7px;
  letter-spacing: 0.18em;
  color: var(--bp-brown-lt);
  text-transform: uppercase;
  margin-bottom: 3px;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}
.wrm-bp__info-cell-val {
  font-size: 11px;
  color: var(--bp-near-black);
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 2px;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  word-break: break-word;
}
.wrm-bp__info-cell-sub {
  font-size: 8px;
  color: var(--bp-brown-lt);
  font-style: italic;
}

/* Couple script name */
.wrm-bp__couple-name {
  text-align: center;
  margin-top: auto;
  padding-top: 4px;
}
.wrm-bp__couple-name-text {
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  font-size: 26px;
  font-style: italic;
  font-weight: 600;
  color: var(--bp-gold);
  letter-spacing: 0.02em;
  line-height: 1.1;
  display: block;
}
.wrm-bp__detach {
  font-size: 7px;
  letter-spacing: 0.3em;
  color: var(--bp-brown-lt);
  text-transform: uppercase;
  margin-top: 4px;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ── RIGHT panel ── */
.wrm-bp__flight {
  text-align: center;
  width: 100%;
}
.wrm-bp__flight-label {
  font-size: 7px;
  letter-spacing: 0.22em;
  color: rgba(201,168,76,0.6);
  text-transform: uppercase;
  margin-bottom: 3px;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}
.wrm-bp__flight-num {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.wrm-bp__flight-icon { font-size: 12px; color: var(--bp-gold); }
.wrm-bp__flight-num-text {
  font-size: 16px;
  font-weight: 700;
  color: var(--bp-cream);
  letter-spacing: 0.06em;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

.wrm-bp__qr-wrap {
  background: var(--bp-cream);
  padding: 6px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
}
.wrm-bp__qr-canvas { display: block; border-radius: 4px; }

.wrm-bp__privacy-note { text-align: center; }
.wrm-bp__privacy-title {
  font-size: 7px;
  color: rgba(201,168,76,0.7);
  letter-spacing: 0.06em;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 2px;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}
.wrm-bp__privacy-body {
  font-size: 8px;
  color: rgba(247,243,238,0.45);
  font-style: italic;
  line-height: 1.4;
}

.wrm-bp__barcode-wrap {
  margin-top: auto;
  padding-top: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.wrm-bp__bar-canvas { display: block; }
.wrm-bp__pass-no {
  font-size: 7px;
  color: rgba(247,243,238,0.3);
  letter-spacing: 0.1em;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  text-align: center;
}

/* ── Privacy pill ── */
.wrm-bp__privacy-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.45);
  border-radius: 20px;
  padding: 5px 13px;
  border: 1px solid var(--bp-tan);
  max-width: 700px;
  width: 100%;
  box-sizing: border-box;
}
.wrm-bp__privacy-pill-icon { font-size: 11px; flex-shrink: 0; }
.wrm-bp__privacy-pill-text {
  font-size: 9px;
  color: var(--bp-brown-lt);
  letter-spacing: 0.06em;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ── Action buttons ── */
.wrm-bp__actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.wrm-bp__btn {
  padding: 11px 26px;
  border-radius: 999px;
  border: 1.5px solid;
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: all 0.2s;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  white-space: nowrap;
}
.wrm-bp__btn--primary {
  background: var(--bp-gold);
  border-color: var(--bp-gold);
  color: #0a0a0a;
}
.wrm-bp__btn--primary:hover { background: #e8c97a; border-color: #e8c97a; }
.wrm-bp__btn--primary:disabled { opacity: 0.65; cursor: not-allowed; }
.wrm-bp__btn--secondary {
  background: transparent;
  border-color: rgba(112,78,23,0.3);
  color: #704e17;
}
.wrm-bp__btn--secondary:hover { background: rgba(112,78,23,0.06); }
.wrm-bp__btn--secondary:disabled { opacity: 0.65; cursor: not-allowed; }

/* ── Mobile: stack vertically ── */
@media (max-width: 600px) {
  .wrm-bp {
    flex-direction: column;
    max-width: 100%;
  }

  .wrm-bp__right {
    width: 100%;
    flex: none;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    padding: 14px 16px;
    gap: 12px;
  }

  .wrm-bp__right::before { display: none; }

  .wrm-bp__perf {
    /* Horizontal dashes at the top of the right panel when stacked */
    top: 0; left: 0; right: 0; bottom: auto;
    width: auto; height: 1px;
    background: repeating-linear-gradient(
      to right,
      rgba(154,131,112,0.35) 0, rgba(154,131,112,0.35) 5px,
      transparent 5px, transparent 11px
    );
  }

  .wrm-bp__barcode-wrap { margin-top: 0; }
  .wrm-bp__couple-name-text { font-size: 22px; }
  .wrm-bp__field-value { font-size: 13px; }
  .wrm-bp__left { padding: 20px 18px 16px; }
}

/* ── Print ── */
@media print {
  .wrm-bp-wrap { padding: 0; }
  .wrm-bp__actions,
  .wrm-bp__above-label,
  .wrm-bp__privacy-pill { display: none !important; }
  .wrm-bp { box-shadow: none; border-radius: 10px; }
}
