/* Concierge PDF export: intentionally separate from the general Trips CSS. */
#atlasTripsRoot .trips-card-pdf {
  position:absolute;right:9px;top:9px;z-index:3;
  display:grid;place-items:center;
  width:35px;height:35px;padding:7px;margin:0;
  color:#b4ffdf;background:rgba(8,35,46,.93);
  border:1px solid #3b7e80;border-radius:10px;
  backdrop-filter:blur(6px);cursor:pointer;
}
#atlasTripsRoot .trips-card-pdf svg {width:20px;height:20px;display:block}
#atlasTripsRoot .trips-card-pdf:hover {background:#1b5756;border-color:#72edbf}
#atlasTripsRoot .trips-card-pdf:focus-visible {outline:2px solid #9cffd6;outline-offset:2px}
#atlasTripsRoot .trips-card-pdf:disabled {opacity:.55;cursor:wait}
#atlasTripsRoot .trips-card-details {padding-right:48px}

/* A one-screen export sheet: every control and both final actions remain
   available without scrolling on an ordinary Telegram phone viewport.
   Keep overflow fallback only for exceptional tiny/zoomed viewports. */
.atlas-trip-pdf-backdrop {
  box-sizing:border-box;position:fixed;inset:0;z-index:8500;
  display:flex;align-items:center;justify-content:center;
  padding:max(8px, env(safe-area-inset-top))
          max(8px, env(safe-area-inset-right))
          max(8px, env(safe-area-inset-bottom))
          max(8px, env(safe-area-inset-left));
  background:rgba(1,12,22,.82);backdrop-filter:blur(6px);
}
.atlas-trip-pdf-dialog {
  box-sizing:border-box;width:min(100%,460px);
  max-height:calc(100dvh - max(8px, env(safe-area-inset-top)) - max(8px, env(safe-area-inset-bottom)));
  overflow-y:auto;
  overscroll-behavior:contain;
  padding:14px 16px;border:1px solid #4d7e86;border-radius:16px;
  background:linear-gradient(160deg,#133746,#081e2d 85%);
  box-shadow:0 22px 70px #000a;color:#eaf7f7;font-family:Arial,sans-serif;
}
.atlas-trip-pdf-top {
  display:flex;align-items:center;justify-content:space-between;gap:10px;
}
.atlas-trip-pdf-eyebrow {
  font-size:10px;font-weight:800;letter-spacing:.15em;color:#E6C08B;
}
.atlas-trip-pdf-close {
  display:grid;place-items:center;flex:0 0 30px;
  width:30px;height:30px;padding:0;margin:0;
  border:1px solid #376273;border-radius:9px;
  background:#173b4a;color:#d2e5ed;font-size:22px;line-height:1;
}
.atlas-trip-pdf-dialog h2 {
  margin:6px 0 3px;font-size:20px;line-height:1.15;color:#f3fffc;
}
.atlas-trip-pdf-trip-name {
  margin:0 0 8px;color:#a2becb;font-size:12px;line-height:1.2;
  overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;
  -webkit-box-orient:vertical;overflow:hidden;
}
.atlas-trip-pdf-options {display:grid;gap:5px}
.atlas-trip-pdf-options label {
  display:flex;justify-content:space-between;align-items:center;gap:8px;
  min-height:42px;box-sizing:border-box;
  padding:7px 11px;margin:0;border-radius:10px;
  border:1px solid #355668;background:#112f3e;cursor:pointer;
}
.atlas-trip-pdf-options label span {
  display:flex;flex-direction:column;gap:1px;flex:1;min-width:0;
}
.atlas-trip-pdf-options b {font-size:12.5px;color:#e6f5f8;line-height:1.15}
.atlas-trip-pdf-options small {
  font-size:10px;color:#91b0bf;line-height:1.16;
}
.atlas-trip-pdf-options input[type="checkbox"] {
  flex:0 0 20px;width:20px;height:20px;margin:0;accent-color:#54e7a2;
}
.atlas-trip-pdf-privacy {
  margin:7px 0 2px;color:#91afba;font-size:10px;line-height:1.25;
}
.atlas-trip-pdf-status {
  min-height:13px;margin:5px 0 6px;color:#86f0bc;
  font-size:11px;line-height:1.2;
}
.atlas-trip-pdf-status.is-error {color:#ffafb6}
.atlas-trip-pdf-build,.atlas-trip-pdf-download,.atlas-trip-pdf-share {
  display:flex;align-items:center;justify-content:center;
  flex:1;min-width:0;width:100%;min-height:42px;
  padding:8px 9px;margin:0;border:1px solid #79f6bc;border-radius:10px;
  background:#67edaa;color:#073024;font-size:12px;font-weight:800;
}
.atlas-trip-pdf-build:hover,.atlas-trip-pdf-download:hover {background:#8dfbcc}
.atlas-trip-pdf-build:disabled {opacity:.52;cursor:wait}
.atlas-trip-pdf-build[hidden] {display:none!important}
.atlas-trip-pdf-ready {display:flex;gap:7px}
.atlas-trip-pdf-ready[hidden],.atlas-trip-pdf-ready button[hidden] {
  display:none!important;
}
.atlas-trip-pdf-share {color:#c4f8e2;border-color:#4e9987;background:#194e4e}
.atlas-trip-pdf-share:hover {background:#216263}
.atlas-trip-pdf-dialog button:focus-visible,
.atlas-trip-pdf-options input:focus-visible {
  outline:2px solid #b8ffdf;outline-offset:2px;
}
@media(max-width:420px) {
  .atlas-trip-pdf-dialog {padding:12px 13px;border-radius:14px}
  .atlas-trip-pdf-options label {padding:7px 9px}
}
@media(max-height:620px) {
  .atlas-trip-pdf-dialog {padding-top:10px;padding-bottom:10px}
  .atlas-trip-pdf-dialog h2 {margin:4px 0 2px;font-size:19px}
  .atlas-trip-pdf-trip-name {margin-bottom:6px}
  .atlas-trip-pdf-options label {padding-top:5px;padding-bottom:5px}
  .atlas-trip-pdf-privacy {margin:5px 0 1px}
  .atlas-trip-pdf-status {margin:3px 0 4px}
  .atlas-trip-pdf-build,.atlas-trip-pdf-download,.atlas-trip-pdf-share {
    min-height:40px;
  }
}
@media(max-height:490px) {
  .atlas-trip-pdf-dialog {padding:8px 11px}
  .atlas-trip-pdf-options small {display:none}
  .atlas-trip-pdf-options label {min-height:34px;padding:4px 9px}
  .atlas-trip-pdf-options {gap:4px}
  .atlas-trip-pdf-privacy {font-size:9.5px;line-height:1.18}
  .atlas-trip-pdf-build,.atlas-trip-pdf-download,.atlas-trip-pdf-share {
    min-height:36px;
  }
}

.atlas-trip-pdf-map-notice:not([hidden]) {
  margin:7px 0 10px;padding:9px 11px;
  border-radius:9px;border:1px solid rgba(226,179,107,.55);
  color:#E9D3A8;background:rgba(122,83,27,.17);
  font-size:12px;line-height:1.45;
}
