/* ========================================================================
   email.css, phone showing Gmail-style open email of authentic
   Emirates corporate cancellation email (light version).
   ======================================================================== */

.email-stage {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  gap: 80px;
  padding: 80px 40px 60px;
}

/* Phone frame (mobile) */
.phone {
  width: 420px;
  height: 880px;
  background: #0a0c10;
  border-radius: 52px;
  padding: 14px;
  box-shadow:
    0 0 0 2px #1f2128,
    0 30px 80px rgba(0,0,0,0.4),
    inset 0 0 0 6px #1c1e25;
  position: relative;
  flex-shrink: 0;
}
.phone::before {
  content: "";
  position: absolute;
  top: 22px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 30px;
  background: #000;
  border-radius: 999px;
  z-index: 5;
}
.phone-screen {
  width: 100%; height: 100%;
  background: #ffffff;
  border-radius: 40px;
  overflow: hidden;
  position: relative;
  display: flex; flex-direction: column;
}

/* Status bar */
.status-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 32px 6px;
  font-size: 14px; font-weight: 600;
  color: #14161B;
  height: 50px;
  flex-shrink: 0;
}
.status-bar .left { font-feature-settings: "tnum"; }
.status-bar .right { display: flex; align-items: center; gap: 5px; }

/* ===== Gmail-style toolbar ===== */
.gm-toolbar {
  display: flex; align-items: center;
  padding: 6px 14px;
  height: 48px;
  flex-shrink: 0;
}
.gm-back {
  font-size: 22px; color: #5f6368;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 999px;
  cursor: pointer;
}
.gm-acts {
  margin-left: auto; display: flex; align-items: center; gap: 4px;
  color: #5f6368;
}
.gm-act {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 999px;
  cursor: pointer;
}
.gm-act.gm-more { font-size: 20px; }

/* ===== Gmail message metadata block ===== */
.gm-meta {
  padding: 6px 16px 12px;
  font-size: 12.5px;
  line-height: 1.5;
  color: #202124;
  border-bottom: 1px solid #e8eaed;
  flex-shrink: 0;
}
.gm-meta-line {
  display: block;
  margin: 1px 0;
  word-break: break-word;
}
.gm-meta-k {
  color: #202124;
  font-weight: 400;
}
.gm-meta-line strong {
  font-weight: 700;
  color: #202124;
}
.gm-mail-link {
  color: #1a73e8;
  text-decoration: none;
}

/* ===== Email body (the actual message content) ===== */
.ek-email-body {
  flex: 1;
  overflow-y: auto;
  background: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  color: #2c2c2c;
}

/* Sender bar with red logo tile + safe senders banner */
.ek-sender-bar {
  display: flex;
  align-items: stretch;
  background: #f1f1f1;
  border-bottom: 1px solid #e0e0e0;
}
.ek-logo-tile {
  width: 84px; height: 84px;
  background: #d71921;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.ek-logo-img {
  width: 60px;
  height: auto;
  /* invert the red-on-transparent logo to white */
  filter: brightness(0) invert(1);
  display: block;
}
.ek-safe-senders {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 8px 12px 8px 12px;
  font-size: 9.5px;
  color: #2c2c2c;
  font-weight: 400;
  text-align: right;
}

/* Document content */
.ek-doc {
  padding: 20px 16px 22px;
}

.ek-headline {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 18px;
  line-height: 1.25;
}

.ek-booking-ref {
  text-align: right;
  font-size: 10.5px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 18px;
}

.ek-greet {
  font-size: 11px;
  color: #2c2c2c;
  margin: 0 0 12px;
  line-height: 1.5;
}

.ek-para {
  font-size: 11px;
  color: #2c2c2c;
  margin: 0 0 10px;
  line-height: 1.5;
}
.ek-para-sm {
  font-size: 10px;
  color: #2c2c2c;
  line-height: 1.55;
  margin: 0 0 9px;
}
.ek-link {
  color: #1a73e8;
  text-decoration: underline;
  cursor: pointer;
}

/* Flight details table */
.ek-table-wrap {
  margin: 14px 0 18px;
  border: 1px solid #d4d4d4;
  background: #fff;
}
.ek-table-caption {
  padding: 6px 8px;
  background: #ededed;
  border-bottom: 1px solid #d4d4d4;
  font-size: 9.5px;
  color: #2c2c2c;
  font-weight: 400;
}
.ek-flight-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 8.5px;
  color: #2c2c2c;
  table-layout: fixed;
}
.ek-flight-table th {
  background: #f5f5f5;
  border-right: 1px solid #d4d4d4;
  border-bottom: 1px solid #d4d4d4;
  padding: 5px 4px;
  text-align: left;
  font-weight: 700;
  font-size: 8.5px;
  vertical-align: top;
  line-height: 1.25;
}
.ek-flight-table td {
  border-right: 1px solid #d4d4d4;
  padding: 5px 4px;
  vertical-align: top;
  font-size: 8.5px;
  line-height: 1.3;
  word-break: break-word;
}
.ek-flight-table th:last-child,
.ek-flight-table td:last-child {
  border-right: 0;
}
.ek-flight-table strong {
  font-weight: 700;
}

.ek-signoff {
  font-size: 11px;
  color: #2c2c2c;
  margin: 0 0 4px;
  line-height: 1.5;
}
.ek-signoff:first-of-type { margin-top: 14px; }

.ek-last-updated {
  text-align: right;
  font-size: 9px;
  color: #2c2c2c;
  font-weight: 700;
  margin-top: 14px;
}

/* ===== Gmail bottom Reply / Forward bar ===== */
.gm-bottom {
  display: flex;
  gap: 8px;
  padding: 8px 12px 12px;
  background: #fff;
  border-top: 1px solid #e8eaed;
  flex-shrink: 0;
}
.gm-bottom-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #f1f3f4;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 500;
  color: #202124;
  cursor: pointer;
}

/* ===== Side caption (the "what's happening" copy on the right) ===== */
.intent-card {
  width: 480px; flex-shrink: 0;
  display: flex; flex-direction: column;
  gap: 22px;
  padding-top: 60px;
}
.intent-card .eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ek-red);
}
.intent-card h2 {
  margin: 0;
  font-size: 38px; font-weight: 300; line-height: 1.15; letter-spacing: -0.01em;
  color: var(--ink);
}
.intent-card p {
  margin: 0;
  font-size: 15px; line-height: 1.65; color: var(--ink-2);
}
.intent-card .stat-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin-top: 6px;
}
.intent-card .stat {
  background: white; border: 1px solid var(--line); border-radius: 10px;
  padding: 16px 18px;
}
.intent-card .stat .num {
  font-size: 28px; font-weight: 300; color: var(--ink);
}
.intent-card .stat .lbl {
  margin-top: 4px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-3);
}
