/* 1.36 layout fixes for dashboard parts the theme stylesheet doesn't cover. Loaded on the front end by inc/frontdesk.php. */

/* Upsell buttons ("See the Guest Guide plan ($9.00 per month)") wrap instead of overflowing at 390px. */
.tpa-upsell .tp-btn { white-space: normal; height: auto; max-width: 100%; text-align: center; }

/* Billing: an open card dispute's evidence rows wrap at 390px (no horizontal scroll). */
.tp-dispute-slot { flex-wrap: wrap; min-width: 0; }
.tp-dispute-slot > div { min-width: 0; overflow-wrap: anywhere; }
.tp-dispute-file { flex-wrap: wrap; max-width: 100%; min-width: 0; }
.tp-dispute-file input[type="file"] { max-width: 100%; min-width: 0; }

/* Front-desk check-in screen (/desk/{token}/). */
.tp-desk { min-height: 100vh; padding: 24px 16px 48px; box-sizing: border-box; }
.tp-desk__in { max-width: 960px; margin: 0 auto; display: grid; gap: 24px; }
.tp-desk__top { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.tp-desk__qr { width: min(320px, 80vw); aspect-ratio: 1; background: #fff; padding: 12px; border-radius: 12px; box-sizing: border-box; }
.tp-desk__qr canvas, .tp-desk__qr img, .tp-desk__qr svg { width: 100% !important; height: auto !important; display: block; }
.tp-desk__form { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.tp-desk__form .tp-field { flex: 1 1 220px; min-width: 0; margin: 0; }
.tp-desk__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tp-desk__list li { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; padding: 12px 14px; border: 1px solid var(--line, #d8dee4); border-radius: 10px; background: var(--surface, #fff); }
.tp-desk__list .is-in { font-weight: 700; color: var(--ok, #137333); }
.tp-desk__msg { padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line, #d8dee4); }
.tp-desk__msg--ok { border-color: #137333; background: #e6f4ea; color: #0d5323; }
.tp-desk__msg--err { border-color: #b3261e; background: #fce8e6; color: #8c1d18; }

/* 1.39.3: sample account links on /join/ and the home page partner cards. */
.tp-joindemos { margin-top: 28px; padding: 18px 20px; border: 1px dashed var(--line, #d8dee4); border-radius: 16px; }
.tp-joindemos--card { margin-top: 16px; border-style: solid; }
.tp-joindemos__title { margin: 0 0 8px; font-weight: 700; }
.tp-joindemos__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.tp-joindemos__list a { font-weight: 600; }
.tp-joindemos__note { margin: 10px 0 0; font-size: .875rem; color: var(--muted, #4a5b68); }
.tp-pcard__demo { display: inline-block; margin-top: 12px; font-weight: 600; color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.tp-pcard__note { margin: 4px 0 0 !important; font-size: .8125rem; opacity: .85; }

/* 1.40: Sponsored package cards (inc/pkgpromo.php) and the promotion box in the venue dashboard. */
.tp-pp { margin: 24px 0 32px; }
.tp-pp__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-bottom: 12px; }
.tp-pp__head h2 { margin: 0; }
.tp-pp__head .tp-help { margin: 0; }
.tp-pp__all { margin: 8px 0 12px; }
.tp-bcard__sponsored { margin: 0 0 6px; }
.tp-ppbox { margin-top: 16px; padding: 16px 18px; border: 1px solid var(--line, #d8dee4); border-radius: 14px; }
.tp-ppbox h3 { margin: 0 0 6px; font-size: 1.05rem; }
.tp-ppbox p { margin: 6px 0; }
.tp-ppbox .tp-check { margin: 8px 0; }

/* 1.40.3: collab deal line on bundle cards. */
.tp-bcard__deal { margin: 4px 0 0; }
.tp-bcard__deal s { opacity: .7; margin-right: 4px; }
.tp-bcard__deal-more { margin: 2px 0 0; font-size: .9rem; font-weight: 600; }
