.file-downloadable-wrap {
    background-color: rgba(var(--wpte-primary-color-rgb, var(--primary-color-rgb)), 0.04);
    border-radius: 8px;
    padding: 32px 24px;
    margin-bottom: 32px;
}

.file-downloadable-wrap .file.downloadable-header {
    font-weight: 600;
    font-size: 24px;
    line-height: 1.5;
    margin: 0 0 12px;
}

.file-downloadable-wrap .file.downloadable-description {
    font-weight: 400;
    font-size: 18px;
    line-height: 1.66;
    color: #566267;
}

.file-downloadable-wrap>.file+.file-downloadable-list {
    margin-top: 24px;
    border-top: 1px solid rgba(15, 29, 35, .1);
    padding-top: 24px;
}

.file-downloadable-list-inner {
    border-top: 1px solid rgba(15, 29, 35, .1);
    padding: 20px 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.file-downloadable-list-inner:first-child {
    border-top: none;
    padding-top: 0;
}

.file-downloadable-list-inner:last-child {
    padding-bottom: 0;
}

.file-downloadable-list-inner .file-type-preview {
    width: 56px;
    border-radius: 8px;
    border: 1px solid rgba(15, 29, 35, 0.1);
    padding: 12px;
    background-color: #fff;
}

.file-type-preview img {
    width: 100%;
    height: auto;
    vertical-align: top;
}

.file-downloadable-list-inner .file-downloads-file-title {
    display: flex;
    flex: 1;
    word-break: break-word;
    font-weight: 600;
    font-size: 18px;
    line-height: 1.55;
}

.file-downloadable-list-inner .file-downloads-file-download {
    display: inline-block;
    text-align: center;
    padding: 15px 32px;
    border: 2px solid var(--wpte-primary-color, var(--primary-color));
    border-radius: 100px;
    background-color: #fff;
    color: var(--wpte-primary-color, var(--primary-color));
    cursor: pointer;
    font-weight: 500;
    font-size: 15px;
    line-height: 1.2;
    text-decoration: none !important;
    transition: all 0.3s;
}

.file-downloadable-list-inner .file-downloads-file-download:hover {
    background-color: var(--wpte-primary-color, var(--primary-color));
    color: #fff;
}

@media screen and (max-width: 1024px) {
    .file-downloadable-wrap {
        padding: 40px 20px;
    }
}

@media screen and (max-width: 767px) {
    .file-downloadable-list-inner {
        flex-direction: column;
        text-align: center;
        padding-left: 15px;
        padding-right: 15px;
    }

    .file-downloadable-list-inner .file-type-preview {
        margin-right: 0;
    }

    .file-downloadable-list-inner .file-downloads-file-title {
        display: block;
    }
}

.widget .file-downloadable-list-inner .file-downloads-file-download {
    width: 100%;
}
/* Documents list (3.0). Shared by the trip page tab, the shortcode and the
   traveler's booking, so a document reads the same wherever it is handed over. */
.wpte-documents__heading {
  margin: 0 0 6px;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 600;
}

.wpte-documents__description {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.6;
  color: #566267;
  max-width: 70ch;
}

/* Scoped under its wrapper: a host theme's own `.entry-content-wrap ul`
   reset (one class + one element) outranks a plain single-class selector. */
.wpte-documents .wpte-documents__list {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid #e4e7ec;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.wpte-documents__item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin: 0;
  padding: 16px 18px;
  list-style: none;
}

.wpte-documents__item + .wpte-documents__item {
  border-top: 1px solid #e4e7ec;
}

.wpte-documents__type {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #f2f4f7;
  color: #475467;
}

/* The band inside carries the label, so the glyph wants most of the tile. */
.wpte-documents__type svg {
  width: 34px;
  height: 34px;
}

.wpte-documents__type--pdf { background: #fef3f2; color: #d92d20; }
.wpte-documents__type--doc { background: #eff8ff; color: #175cd3; }
.wpte-documents__type--image { background: #ecfdf3; color: #039855; }

.wpte-documents__body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wpte-documents__name {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.wpte-documents__desc {
  font-size: 14px;
  line-height: 1.5;
  color: #566267;
}

.wpte-documents__meta {
  font-size: 13px;
  color: #98a2b3;
}

.wpte-documents__actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.wpte-documents__preview {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid #e4e7ec;
  border-radius: 50%;
  color: #566267;
  text-decoration: none;
}

.wpte-documents__preview:hover {
  border-color: #b2ccf4;
  color: #0c68e9;
}

.wpte-documents__download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border: 1px solid #0c68e9;
  border-radius: 999px;
  color: #0c68e9;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.wpte-documents__download:hover {
  background: #0c68e9;
  color: #fff;
}

/* The operator's delete, shaped like the eye it sits beside. */
.wpte-documents__withhold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid #e4e7ec;
  border-radius: 50%;
  background: none;
  color: #566267;
  cursor: pointer;
}

.wpte-documents__withhold:hover {
  border-color: #f2b8b5;
  color: #d92d20;
}

.wpte-documents__withhold[disabled] {
  opacity: .5;
  cursor: default;
}

@media (max-width: 600px) {
  .wpte-documents__item {
    flex-wrap: wrap;
  }

  .wpte-documents__actions {
    width: 100%;
    justify-content: flex-end;
  }
}

/* Booking documents (3.0): what a traveler owes, what they were given, and
   what they have sent. */
.wpte-booking-documents { display: flex; flex-direction: column; gap: 24px; }

.wpte-bdoc-card {
  border: 1px solid #e4e7ec;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.wpte-bdoc-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid #e4e7ec;
}

/* Scoped twice over: a host theme's own `.entry-content-wrap h1..h6` reset
   (one class + one element) ties this on specificity, so source order alone
   decided whether our zero margin survived. */
.wpte-bdoc-card .wpte-bdoc-card__head h3 { margin: 0; font-size: 17px; font-weight: 600; }
.wpte-bdoc-card .wpte-bdoc-card__head p { margin: 0; font-size: 14px; color: #667085; }
.wpte-bdoc-card__body { padding: 18px; }

.wpte-bdoc-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 18px;
  background: #f9fafb;
  border-bottom: 1px solid #e4e7ec;
}

.wpte-bdoc-progress strong { display: block; font-size: 15px; }
.wpte-bdoc-progress span { font-size: 13px; color: #667085; }
.wpte-bdoc-progress__right { display: flex; align-items: center; gap: 16px; }
.wpte-bdoc-progress__meter { display: flex; align-items: center; gap: 10px; }

.wpte-bdoc-bar {
  display: inline-block;
  width: 110px;
  height: 6px;
  border-radius: 999px;
  background: #e4e7ec;
  overflow: hidden;
}

.wpte-bdoc-bar > span { display: block; height: 100%; background: #12b76a; }

/* Which booking a group of rows on the all-bookings Documents page came
   from -- the per-booking panel never needs this, the booking is the page. */
.wpte-bdoc-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 18px;
  background: #f9fafb;
  border-top: 1px solid #e4e7ec;
  border-bottom: 1px solid #e4e7ec;
}

.wpte-bdoc-card > .wpte-bdoc-group:first-of-type { border-top: none; }

.wpte-bdoc-group__title { display: flex; flex-direction: column; gap: 2px; }
.wpte-bdoc-group__title strong { font-size: 15px; }
.wpte-bdoc-group__title span { font-size: 13px; color: #667085; }

.wpte-bdoc-group__meta { display: flex; align-items: center; gap: 10px; }
.wpte-bdoc-group__count { font-size: 13px; color: #667085; white-space: nowrap; }
.wpte-bdoc-group__meta a { font-size: 14px; font-weight: 600; color: #0c68e9; white-space: nowrap; }
.wpte-bdoc-group__meta a:hover { color: #0a59c7; }

.wpte-bdoc-card__head .wpte-bdoc-search { flex: 0 0 auto; width: 240px; margin: 0; }

.wpte-bdoc-request { padding: 16px 18px; }
.wpte-bdoc-request + .wpte-bdoc-request { border-top: 1px solid #e4e7ec; }
.wpte-bdoc-request__head { display: flex; align-items: flex-start; gap: 12px; }
.wpte-bdoc-request__title { flex: 1; min-width: 0; }
.wpte-bdoc-request__title strong { display: block; font-size: 15px; }

.wpte-bdoc-request__icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #fff6ed;
  color: #b54708;
}

.is-complete .wpte-bdoc-request__icon { background: #ecfdf3; color: #039855; }
.is-deleted .wpte-bdoc-request__icon { background: #f2f4f7; color: #667085; }
.wpte-bdoc-request.is-deleted { opacity: .7; }
.wpte-bdoc-chip.is-deleted { border-color: #e4e7ec; background: #f2f4f7; color: #667085; }
.wpte-bdoc-chip.is-operator { border-color: #d1e0ff; background: #eff4ff; color: #3538cd; }
.wpte-bdoc-chip.is-warning { border-color: #fec84b; background: #fffaeb; color: #b54708; }

/* What the operator took off this booking, with a way back. */
.wpte-bdoc-withheld { margin: 12px 20px 16px; padding-top: 12px; border-top: 1px dashed #e4e7ec; }
.wpte-bdoc-withheld__title { margin: 0 0 8px; font-size: 12px; font-weight: 600; color: #667085; text-transform: uppercase; letter-spacing: .04em; }
.wpte-bdoc-withheld__list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.wpte-bdoc-withheld__list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #667085; }

.wpte-bdoc-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 5px; }

.wpte-bdoc-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border: 1px solid #e4e7ec;
  border-radius: 999px;
  font-size: 12px;
  color: #475467;
}

.wpte-bdoc-count { font-size: 13px; color: #667085; }

.wpte-bdoc-status {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border: 1px solid #fcc89b;
  border-radius: 999px;
  background: #fff6ed;
  font-size: 12px;
  color: #b54708;
  white-space: nowrap;
}

.wpte-bdoc-status.is-done { border-color: #a6f4c5; background: #ecfdf3; color: #027a48; }

.wpte-bdoc-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid #fcc89b;
  border-radius: 8px;
  background: #fff6ed;
  font-size: 14px;
  color: #475467;
}

.wpte-bdoc-banner__icon {
  flex: none;
  display: inline-flex;
  color: #f79009;
}

.wpte-bdoc-banner strong { color: #101828; }

.wpte-bdoc-banner a { margin-inline-start: 4px; color: #0c68e9; text-decoration: underline; }

.wpte-bdoc-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 12px 0 0;
  padding: 10px 12px;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  background: #f9fafb;
  font-size: 14px;
  color: #475467;
}

/* Operators write these as a list, so the line breaks they typed survive --
   on the text alone, or the markup's own newlines render with it. */
.wpte-bdoc-note__text {
  white-space: pre-line;
}

/* Lines up with the title, not the icon beside it: 38px icon + 12px gap. */
.wpte-bdoc-request > .wpte-bdoc-note {
  margin-inline-start: 50px;
}

/* A host theme's own `.entry-content-wrap ul` reset (one class + one element)
   outranks a plain single-class selector here, leaving this list's padding
   half themed. Scoping under the request wraps beats it outright. */
.wpte-bdoc-request .wpte-bdoc-travelers { margin: 12px 0 0; margin-inline-start: 50px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }

.wpte-bdoc-traveler {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  list-style: none;
}

.wpte-bdoc-traveler.is-done { background: #f9fafb; }

.wpte-bdoc-avatar {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #eff8ff;
  color: #175cd3;
  font-size: 12px;
  font-weight: 600;
}

.wpte-bdoc-traveler__body { flex: 1; min-width: 0; }
.wpte-bdoc-traveler__body strong { display: block; font-size: 14px; }
.wpte-bdoc-traveler__body small { font-size: 13px; color: #667085; }

.wpte-bdoc-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.wpte-bdoc-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
}

.wpte-bdoc-btn--primary { background: #0c68e9; color: #fff; }
.wpte-bdoc-btn--primary:hover { background: #0a59c7; color: #fff; }
.wpte-bdoc-btn--ghost { border-color: #d0d5dd; background: #fff; color: #344054; }
.wpte-bdoc-btn--ghost:hover { border-color: #b2ccf4; color: #0c68e9; }
.wpte-bdoc-btn--ghost-blue { border-color: #b2ccf4; background: #fff; color: #0c68e9; }

.wpte-bdoc-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #0c68e9;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
/* On a solid blue button the badge needs its own contrast, not the button's. */
.wpte-bdoc-btn--primary .wpte-bdoc-badge { background: rgba(255, 255, 255, .25); color: #fff; }
.wpte-bdoc-btn--ghost-blue:hover { border-color: #0c68e9; background: #f5f9ff; }
.wpte-bdoc-btn[disabled] { opacity: .6; cursor: default; }

.wpte-bdoc-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid #e4e7ec;
  border-radius: 50%;
  color: #667085;
}

/* Muted at rest, red only on hover: it deletes the traveler's file. */
.wpte-bdoc-icon--danger { background: none; cursor: pointer; }
.wpte-bdoc-icon--danger:hover { border-color: #d92d20; color: #d92d20; }
.wpte-bdoc-icon--danger[disabled] { opacity: .5; cursor: default; }

.wpte-bdoc-card .wpte-bdoc-uploads { margin: 0; padding: 0; list-style: none; }

.wpte-bdoc-upload {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 0;
  padding: 14px 18px;
  list-style: none;
}

.wpte-bdoc-upload + .wpte-bdoc-upload { border-top: 1px solid #e4e7ec; }
.wpte-bdoc-upload__body { flex: 1; min-width: 0; }
.wpte-bdoc-upload__body strong { display: block; font-size: 15px; }
.wpte-bdoc-upload__body small { font-size: 13px; color: #667085; }

.wpte-bdoc-empty { margin: 0; padding: 18px; color: #667085; }

.wpte-bdoc-feedback { font-size: 13px; color: #667085; }
.wpte-bdoc-feedback.is-error { color: #d92d20; }

/* The field the message is about, so it is clear which one to fix. */
.wpte-bdoc-input.is-error,
.wpte-bdoc-drop.is-error {
  border-color: #d92d20;
  box-shadow: 0 0 0 1px rgba(217, 45, 32, .25);
}

/* Sits in the footer's flex row, left of the buttons, and takes no space
   until it has something to say. */
.wpte-bdoc-feedback--foot { flex: 1 1 auto; margin: 0; text-align: left; align-self: center; }

@media (max-width: 600px) {
  .wpte-bdoc-request__head { flex-wrap: wrap; }
  .wpte-bdoc-traveler { flex-wrap: wrap; }
  .wpte-bdoc-actions { width: 100%; justify-content: flex-end; }
}


/* Inside the traveler dashboard.

   The dashboard scopes a reset to its own root -- `.wpte-tdash p`,
   `.wpte-tdash button` -- to keep host themes out. Two classes beat one class
   plus an element, so a single class of ours loses to it and the upload
   buttons come out backgroundless with white text on white. These restate
   only what that reset takes away, and only where it applies. */
.wpte-tdash .wpte-bdoc-note { margin: 12px 0 0; padding: 10px 12px; }
.wpte-tdash .wpte-bdoc-request > .wpte-bdoc-note { margin-inline-start: 50px; }
.wpte-bdoc-note svg { flex: none; margin-top: 2px; color: #98a2b3; }
.wpte-tdash .wpte-bdoc-empty { padding: 18px; }
.wpte-tdash .wpte-bdoc-btn { border: 1px solid transparent; }
.wpte-tdash .wpte-bdoc-btn--primary { background: #0c68e9; }
.wpte-tdash .wpte-bdoc-btn--primary:hover { background: #0a59c7; }
.wpte-tdash .wpte-bdoc-btn--ghost { background: #fff; border-color: #d0d5dd; }
.wpte-tdash .wpte-documents__heading { margin: 0 0 6px; }
.wpte-tdash .wpte-documents__description { margin: 0 0 20px; }

/* The compose dialog behind "Upload document". Built in script rather than
   PHP, because it is opened from a page the server never re-renders. */
.wpte-bdoc-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(16, 24, 40, .55);
}

.wpte-bdoc-modal__panel {
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 20px 48px rgba(16, 24, 40, .22);
}

.wpte-bdoc-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid #e4e7ec;
}

.wpte-bdoc-modal__head h3 { margin: 0; font-size: 18px; font-weight: 600; }

/* A square button, stated at a specificity the host theme cannot reach: its
   own `button` rule brings 20px/32px of padding, which turns 34x34 into a
   66x42 lozenge with the mark sitting off to one side. */
.wpte-bdoc-modal .wpte-bdoc-modal__close {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 34px;
  min-width: 0;
  height: 34px;
  padding: 0;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  background: #fff;
  line-height: 1;
  color: #475467;
  cursor: pointer;
}

.wpte-bdoc-modal .wpte-bdoc-modal__close:hover { border-color: #d0d5dd; color: #101828; }
.wpte-bdoc-modal .wpte-bdoc-modal__close:focus-visible { outline: 2px solid #b2ccf4; outline-offset: 1px; }

.wpte-bdoc-modal__body { padding: 20px; overflow-y: auto; }

.wpte-bdoc-modal__foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 20px;
  border-top: 1px solid #e4e7ec;
}

.wpte-bdoc-field__label {
  display: block;
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 600;
  color: #344054;
}

.wpte-bdoc-input {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  font: inherit;
  font-weight: 400;
  color: #101828;
  background: #fff;
}

.wpte-bdoc-input:focus { outline: 2px solid #b2ccf4; outline-offset: 1px; }

.wpte-bdoc-field__hint { margin: -10px 0 16px; font-size: 13px; color: #667085; }
.wpte-bdoc-field__hint a { color: #0c68e9; }

.wpte-bdoc-reminder-preview {
  margin: 0 0 16px;
  padding: 18px;
  border: 1px solid #e4e7ec;
  border-radius: 10px;
  background: #fff;
}

.wpte-bdoc-switch {
  display: flex;
  gap: 4px;
  margin: 0 0 14px;
  padding: 4px;
  border-radius: 999px;
  background: #f2f4f7;
}

.wpte-bdoc-switch button {
  flex: 1;
  padding: 9px 12px;
  border: none;
  border-radius: 999px;
  background: none;
  font: inherit;
  font-weight: 600;
  color: #475467;
  cursor: pointer;
}

.wpte-bdoc-switch button.is-on { background: #fff; color: #0c68e9; box-shadow: 0 1px 2px rgba(16, 24, 40, .08); }

.wpte-bdoc-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
  margin: 0 0 16px;
  padding: 28px 16px;
  border: 1px dashed #b2ccf4;
  border-radius: 10px;
  background: #fff;
  font: inherit;
  color: #475467;
  cursor: pointer;
}

.wpte-bdoc-drop strong { font-size: 15px; color: #101828; }
.wpte-bdoc-drop small { font-size: 13px; color: #667085; }
.wpte-bdoc-drop:hover { border-color: #0c68e9; }

/* Says the drop will be caught, rather than opening the file in a new tab. */
.wpte-bdoc-drop.is-dragover {
  border-color: #0c68e9;
  background: #f0f6ff;
}

.wpte-bdoc-savedpane { margin: 0 0 16px; max-height: 240px; overflow-y: auto; }

.wpte-bdoc-saved__row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-bottom: 8px;
  padding: 10px 12px;
  border: 1px solid #e4e7ec;
  border-radius: 10px;
  background: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.wpte-bdoc-saved__row.is-picked { border-color: #0c68e9; background: #f5f9ff; }
.wpte-bdoc-saved__body { display: flex; flex-direction: column; }
.wpte-bdoc-saved__body { min-width: 0; }
.wpte-bdoc-saved__body strong { font-size: 14px; color: #101828; }
.wpte-bdoc-saved__body small { font-size: 12px; line-height: 1.5; color: #667085; }
.wpte-bdoc-saved__empty { margin: 0; padding: 18px; color: #667085; text-align: center; }

.wpte-bdoc-required { margin-left: 4px; color: #d92d20; }

/* Preview: a wider shell than the compose dialog, because the point of it is
   seeing the document rather than filling a form. */
.wpte-bdoc-modal--preview .wpte-bdoc-modal__panel { max-width: 880px; height: 88vh; max-height: 88vh; }
.wpte-bdoc-modal--notify .wpte-bdoc-modal__panel { max-width: 760px; }
.wpte-bdoc-modal__titles { flex: 1; min-width: 0; }
.wpte-bdoc-modal__titles h3 { margin: 0; font-size: 17px; font-weight: 600; }
.wpte-bdoc-modal__titles p { margin: 2px 0 0; font-size: 13px; color: #667085; }
.wpte-bdoc-modal--preview .wpte-bdoc-modal__head { gap: 12px; }

.wpte-bdoc-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 18px;
  background: #f9fafb;
}

.wpte-bdoc-preview img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(16, 24, 40, .12);
}

.wpte-bdoc-preview iframe {
  width: 100%;
  height: 100%;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  background: #fff;
}

.wpte-bdoc-preview__fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: #667085;
  text-align: center;
}

.wpte-bdoc-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 100001;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100vw - 48px);
  padding: 14px 18px;
  border-radius: 10px;
  background: #101828;
  color: #fff;
  font-size: 15px;
  box-shadow: 0 12px 32px rgba(16, 24, 40, .28);
  opacity: 1;
  transition: opacity .35s ease, transform .35s ease;
}

.wpte-bdoc-toast.is-going { opacity: 0; transform: translateY(8px); }
.wpte-bdoc-toast svg { flex: none; color: #32d583; }

.wpte-bdoc-locked {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid #eaecf0;
  border-radius: 8px;
  background: #f9fafb;
  font-size: 14px;
  color: #475467;
}

.wpte-bdoc-locked__icon { flex: none; display: flex; margin-top: 1px; color: #98a2b3; }
.wpte-bdoc-modal .wpte-bdoc-locked { margin: 0 0 18px; padding: 12px 14px; }

/* Same amber/orange this file already uses for an outstanding-document
   status (.wpte-doc-preview__status), not a new color of its own. */
.wpte-bdoc-warning {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid #fcc89b;
  border-radius: 8px;
  background: #fff6ed;
  font-size: 14px;
  color: #b54708;
}
.wpte-bdoc-warning__icon { flex: none; display: flex; margin-top: 1px; }
.wpte-bdoc-modal .wpte-bdoc-warning { margin: 0 0 18px; }
.wpte-bdoc-input[readonly] { background: #f9fafb; color: #475467; }
.wpte-bdoc-btn__icon { display: flex; }

.wpte-bdoc-info {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 20px;
  padding: 12px 14px;
  border: 1px solid #b2ccf4;
  border-radius: 8px;
  background: #eef4ff;
  font-size: 14px;
  color: #344054;
}
.wpte-bdoc-info svg { flex: none; margin-top: 1px; color: #0c68e9; }
.wpte-bdoc-info strong { font-weight: 600; }

/* The host theme's body line-height runs loose enough to space this dialog out
   like a page. It is a form: the rows belong closer together than prose. */
.wpte-bdoc-modal__panel { line-height: 1.45; }
.wpte-bdoc-modal__body .wpte-bdoc-field__label { margin-bottom: 18px; }
.wpte-bdoc-modal__body .wpte-bdoc-field__label:last-child { margin-bottom: 0; }

/* Three classes deep in both places this search field can sit, so it
   outweighs .wpte-tdash's and .wpte-bdoc-modal's own input resets further
   down: a search field always carries its own icon, so it keeps room for it
   rather than taking .wpte-bdoc-input's uniform padding. */
.wpte-bdoc-search .wpte-bdoc-input,
.wpte-tdash .wpte-bdoc-search .wpte-bdoc-input,
.wpte-bdoc-modal .wpte-bdoc-search .wpte-bdoc-input { padding: 10px 12px 10px 38px; }

.wpte-bdoc-pill {
  margin-left: 8px;
  padding: 1px 8px;
  border-radius: 999px;
  background: #e4e7ec;
  font-size: 12px;
  color: #475467;
}

/* A panel hidden with [hidden] must actually go: the UA rule that does that
   is weaker than any class setting a display, and every control in here sets
   one. Without this the dropzone and the saved list show at the same time. */
.wpte-bdoc-modal [hidden] { display: none !important; }

.wpte-bdoc-search { position: relative; display: block; margin: 0 0 10px; }
.wpte-bdoc-search .wpte-bdoc-input { margin-top: 0; background: #f9fafb; }

.wpte-bdoc-search__icon {
  position: absolute;
  left: 12px;
  top: 50%;
  display: flex;
  margin-top: -8px;
  color: #98a2b3;
  pointer-events: none;
}

.wpte-bdoc-saved__rows { display: flex; flex-direction: column; }

.wpte-bdoc-drop__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 6px;
  border-radius: 50%;
  background: #eaf2fe;
  color: #0c68e9;
}

/* Same reset defence as the section itself: the dialog is a child of body,
   outside .wpte-tdash, but the trip page and the dashboard share this CSS. */
.wpte-tdash .wpte-bdoc-input,
.wpte-bdoc-modal .wpte-bdoc-input { padding: 10px 12px; border-color: #d0d5dd; }
.wpte-bdoc-modal .wpte-bdoc-btn--primary { background: #0c68e9; color: #fff; }
.wpte-bdoc-modal .wpte-bdoc-btn--ghost { background: #fff; border: 1px solid #d0d5dd; color: #344054; }

.wpte-bdoc-reminder-to { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
/* Lines up under the pill, not under "To" -- matches the label's own
   rendered width plus the row's gap, not a guessed round number. */
.wpte-bdoc-reminder-to + .wpte-bdoc-field__hint { margin-left: 26px; }
.wpte-bdoc-reminder-to__email { font-size: 13px; color: #667085; }

/* Beats `.wpte-bdoc-modal__body .wpte-bdoc-field__label` (2 classes): that
   rule's 18px bottom margin, left in place, pads the label's flex item
   enough that centering it puts the text flush at the row's top instead of
   beside the pill. */
.wpte-bdoc-modal__body .wpte-bdoc-reminder-to .wpte-bdoc-reminder-to__label { margin: 0; line-height: 20px; }

/* The dialog is a child of <body>, so it sits outside the dashboard's reset
   and inside whatever the host theme says a <button> looks like -- which on a
   travel theme is a filled green pill. Every control in here is a button, so
   each one restates its own surface at a specificity the theme cannot reach. */
.wpte-bdoc-modal .wpte-bdoc-drop { background: #fff; border: 1px dashed #b2ccf4; color: #475467; }
.wpte-bdoc-modal .wpte-bdoc-drop:hover { background: #f9fbff; border-color: #0c68e9; }
.wpte-bdoc-modal .wpte-bdoc-switch button { background: none; color: #475467; }
.wpte-bdoc-modal .wpte-bdoc-switch button.is-on { background: #fff; color: #0c68e9; }
.wpte-bdoc-modal .wpte-bdoc-saved__row { background: #fff; color: #101828; }
.wpte-bdoc-modal .wpte-bdoc-saved__row.is-picked { background: #f5f9ff; }
.wpte-bdoc-modal .wpte-bdoc-modal__close { background: #fff; color: #475467; }

/* Edit and stop-asking, beside the request they belong to. */
.wpte-bdoc-request__manage { display: inline-flex; gap: 6px; margin-inline-start: auto; }
.wpte-bdoc-request__manage .wpte-bdoc-icon { width: 30px; height: 30px; background: none; cursor: pointer; }
.wpte-bdoc-request__manage .wpte-bdoc-icon:hover { border-color: #0c68e9; color: #0c68e9; }
