/* ============================================================================
 * RobloxPets – Delivery Portal · Page chrome
 *
 * Owns ONLY the dedicated /delivery-portal/ surround: body background, the
 * slim hero, and the compact "how it works" strip. The [rp_account_claim]
 * shortcode ships its own canonical inline styles for the card itself.
 * Aligned to the canonical site tokens (#050E1B / #3B82F6 / #E7ECFF) so it
 * sits 1:1 with the homepage / order-track / how-to-claim pages.
 * Scoped behind .rp-delivery-portal-body / .rp-delivery-portal.
 * ========================================================================== */

.rp-delivery-portal-body {
  background: #050e1b !important;
  color: #e7ecff !important;
}
/* Suppress the theme's own footer so the portal stays focused; the plugin
   footer (.rbp-footer-root) still renders. */
.rp-delivery-portal-body .site-footer,
.rp-delivery-portal-body #colophon,
.rp-delivery-portal-body .wp-site-blocks > footer.wp-block-template-part {
  display: none !important;
}

.rp-delivery-portal,
.rp-delivery-portal * { box-sizing: border-box; }

.rp-delivery-portal {
  --bg: #050e1b;
  --panel: rgba(14, 24, 46, 0.72);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(123, 166, 255, 0.30);
  --text: #e7ecff;
  --muted: #aab7da;
  --dim: #7a89ad;
  --accent: #3b82f6;
  --accent-2: #6db0ff;
  --accent-soft: rgba(59, 130, 246, 0.16);
  --green: #34d399;
  --radius: 18px;

  position: relative;
  min-height: 100vh;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(8px, 1.4vw, 18px) clamp(16px, 4vw, 32px) clamp(40px, 5vw, 72px);
  color: var(--text);
  font-family: Inter, "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
}
.rp-delivery-portal::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(820px 460px at 70% -8%, rgba(59, 130, 246, 0.17), transparent 60%),
    radial-gradient(700px 420px at 8% 6%, rgba(84, 214, 255, 0.07), transparent 66%),
    linear-gradient(rgba(123, 166, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(123, 166, 255, 0.026) 1px, transparent 1px),
    var(--bg);
  background-size: auto, auto, 46px 46px, 46px 46px, auto;
}
.rp-delivery-portal::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(5, 14, 27, 0) 0%, rgba(5, 14, 27, 0.5) 80%, var(--bg) 100%);
}

.rp-delivery-portal a { color: var(--accent-2); text-decoration: none; }
.rp-delivery-portal :is(a, button, input):focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
}

/* Heading colour guard — Breakdance's theme sets -webkit-text-fill-color on
   headings, which silently overrides a plain `color`. Force both. */
.rp-delivery-portal :is(h1, h2, h3) {
  margin: 0;
  color: #fff !important;
  -webkit-text-fill-color: #fff;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.rp-dp-shell {
  width: min(1120px, 100%);
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

/* ── Slim hero ─────────────────────────────────────────────────────────── */
.rp-dp-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 11px;
  margin-bottom: clamp(18px, 2.4vw, 28px);
}
.rp-dp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 13px 5px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.rp-dp-eyebrow i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.18);
  animation: rp-dp-pulse 1.8s ease-in-out infinite;
}
@keyframes rp-dp-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.rp-dp-hero h1 {
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.05;
  font-weight: 900;
}
.rp-dp-hero p {
  margin: 0;
  max-width: 56ch;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.5;
}

/* ── How-it-works strip (compact 3-up) ─────────────────────────────────── */
.rp-dp-panels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 1.4vw, 16px);
  margin-top: clamp(20px, 2.4vw, 30px);
}
.rp-dp-panel {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.rp-dp-panel__ico {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.26), rgba(59, 130, 246, 0.08));
  color: var(--accent-2);
}
.rp-dp-panel__ico svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.rp-dp-panel h2 { font-size: 14px; line-height: 1.2; }
.rp-dp-panel p { margin: 6px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.45; }

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .rp-dp-panels { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  /* Small buffer only — footer sits flush below; mobile nav cleared by body padding. */
  .rp-delivery-portal { padding-bottom: clamp(16px, 4vw, 24px); }
  .rp-dp-hero h1 { font-size: clamp(24px, 8vw, 32px); }
}
@media (prefers-reduced-motion: reduce) {
  .rp-delivery-portal *,
  .rp-delivery-portal *::before { animation: none !important; transition: none !important; }
}
