/* Product details (eSIM country / region page): header, plan picker, plan list, order summary, detail tabs.
   Neutral surfaces, 1px borders, one accent colour; sections inside tabs are reset to sit flat. */
:root {
	--pdx-ink: #0f172a;
	--pdx-text: #334155;
	--pdx-muted: #64748b;
	--pdx-line: #e2e8f0;
	--pdx-soft: #f8fafc;
	--pdx-accent: var(--primary, #2563eb);
	--pdx-accent-soft: #eff6ff;
	--pdx-radius: 10px;
}

/* ---------- Header ---------- */
.pdx-head { background: var(--pdx-soft); border-bottom: 1px solid var(--pdx-line); padding: 18px 0 20px; }
.pdx-breadcrumb { margin: 0 0 14px; font-size: 13px; }
.pdx-breadcrumb a { color: var(--pdx-muted); text-decoration: none; }
.pdx-breadcrumb a:hover { color: var(--pdx-accent); }
.pdx-breadcrumb .breadcrumb-item.active { color: var(--pdx-ink); }
.pdx-head-row { display: flex; align-items: center; gap: 16px; }
.pdx-flag { width: 56px; height: 42px; object-fit: cover; border-radius: 6px; box-shadow: 0 0 0 1px rgba(15, 23, 42, .12); flex: 0 0 auto; }
.pdx-title { margin: 0; color: var(--pdx-ink); font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 750; letter-spacing: -.01em; line-height: 1.15; }
.pdx-sub { margin: 4px 0 0; color: var(--pdx-muted); font-size: 15px; }
.pdx-facts { display: flex; flex-wrap: wrap; gap: 0; margin: 14px 0 0; padding: 0; list-style: none; color: var(--pdx-text); font-size: 14px; }
.pdx-facts li { display: inline-flex; align-items: center; gap: 4px; }
.pdx-facts li + li::before { content: ""; width: 4px; height: 4px; margin: 0 12px; border-radius: 50%; background: #cbd5e1; }
.pdx-facts strong { color: var(--pdx-ink); font-weight: 700; }
.pdx-facts-rating { color: inherit; text-decoration: none; }
.pdx-facts-rating i { color: #f59e0b; font-size: 13px; }
.pdx-facts-rating span { color: var(--pdx-muted); }
.pdx-facts-rating:hover strong { color: var(--pdx-accent); }

/* ---------- Plan picker ---------- */
.pdx-main { padding: 28px 0 48px; }
.pdx-config { border: 1px solid var(--pdx-line); border-radius: var(--pdx-radius); background: #fff; }
.pdx-field { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; align-items: start; padding: 16px 18px; }
.pdx-field + .pdx-field { border-top: 1px solid var(--pdx-line); }
.pdx-label { padding-top: 7px; color: var(--pdx-ink); font-size: 14px; font-weight: 650; }

.pdx-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pdx-chips .pd-day-btn,
.pdx-chips .data-option {
	display: inline-flex; align-items: baseline; gap: 4px; min-height: 36px; padding: 7px 12px;
	border: 1px solid var(--pdx-line); border-radius: 8px; background: #fff; color: var(--pdx-text);
	font-size: 14px; line-height: 1.2; cursor: pointer; transition: border-color .15s, background-color .15s, color .15s;
}
.pdx-chips .pd-day-btn strong { color: var(--pdx-ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.pdx-chips .pd-day-btn span { color: var(--pdx-muted); font-size: 13px; }
.pdx-chips .data-option { flex-direction: column; align-items: flex-start; gap: 1px; min-width: 92px; }
.pdx-chips .data-option strong { color: var(--pdx-ink); font-weight: 700; }
.pdx-chips .data-option small { color: var(--pdx-muted); font-size: 12px; }
.pdx-chips .pd-day-btn:hover,
.pdx-chips .data-option:hover { border-color: #94a3b8; }
.pdx-chips .pd-day-btn.active,
.pdx-chips .data-option.selected { border-color: var(--pdx-accent); background: var(--pdx-accent-soft); box-shadow: inset 0 0 0 1px var(--pdx-accent); }
.pdx-chips .pd-day-btn.active strong,
.pdx-chips .data-option.selected strong { color: var(--pdx-accent); }
.pdx-chips .pd-day-all { color: var(--pdx-muted); }
.pdx-chips button:focus-visible,
.pdx-seg button:focus-visible,
.pdx-cov button:focus-visible,
.pdx-plan:focus-visible,
.pdx-tab:focus-visible { outline: 2px solid var(--pdx-accent); outline-offset: 2px; }

.pdx-seg { display: inline-flex; flex-wrap: wrap; padding: 3px; border: 1px solid var(--pdx-line); border-radius: 9px; background: var(--pdx-soft); }
.pdx-seg .pd-type-tab { padding: 6px 14px; border: 0; border-radius: 7px; background: transparent; color: var(--pdx-muted); font-size: 14px; font-weight: 600; }
.pdx-seg .pd-type-tab.active { background: #fff; color: var(--pdx-ink); box-shadow: 0 1px 2px rgba(15, 23, 42, .12); }

.pdx-cov { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.pdx-cov .pd-coverage-card { position: relative; }
.pdx-cov .pd-coverage-option {
	display: flex; flex-direction: column; gap: 2px; width: 100%; height: 100%; padding: 9px 40px 9px 12px;
	border: 1px solid var(--pdx-line); border-radius: 8px; background: #fff; text-align: left; cursor: pointer;
}
.pdx-cov .pd-coverage-card-all .pd-coverage-option { padding-right: 12px; }
.pdx-cov .pd-coverage-option:hover { border-color: #94a3b8; }
.pdx-cov .pd-coverage-option.active { border-color: var(--pdx-accent); background: var(--pdx-accent-soft); box-shadow: inset 0 0 0 1px var(--pdx-accent); }
.pdx-cov-name { color: var(--pdx-ink); font-size: 14px; font-weight: 650; }
.pdx-cov-name em { margin-left: 4px; color: var(--pdx-muted); font-size: 12px; font-style: normal; font-weight: 600; }
.pdx-cov-meta { color: var(--pdx-muted); font-size: 12.5px; line-height: 1.4; }
.pdx-cov .pd-coverage-information {
	position: absolute; top: 50%; right: 6px; transform: translateY(-50%); width: 30px; height: 30px; padding: 0;
	border: 0; border-radius: 6px; background: transparent; color: var(--pdx-muted); font-size: 15px;
}
.pdx-cov .pd-coverage-information:hover { background: var(--pdx-soft); color: var(--pdx-accent); }

.pdx-config-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 18px; border-top: 1px solid var(--pdx-line); font-size: 13px; color: var(--pdx-muted); }
.pdx-config-foot:not(:has(> [style*="flex"], > [style*="block"])) { display: none; }
.pdx-config-foot .pd-filter-msg { padding: 10px 0; }
.pdx-link { padding: 10px 0; border: 0; background: none; color: var(--pdx-accent); font-size: 13px; font-weight: 600; cursor: pointer; }
.pdx-link:hover { text-decoration: underline; }

/* ---------- Plan list ---------- */
.pdx-plans-title { margin: 26px 0 10px; color: var(--pdx-ink); font-size: 17px; font-weight: 700; }
.pdx-plan-list { display: flex; flex-direction: column; border: 1px solid var(--pdx-line); border-radius: var(--pdx-radius); background: #fff; overflow: hidden; }
.pdx-plan-list:not(:has(.plan-item:not([style*="none"]))):not(:has(.pdx-empty)) { display: none; }
.pdx-plan-list > .plan-item + .plan-item { border-top: 1px solid var(--pdx-line); }
.pdx-plan {
	display: grid; grid-template-columns: 18px 48px 118px minmax(0, 1fr) auto auto;
	align-items: center; gap: 12px; padding: 11px 14px; cursor: pointer; transition: background-color .12s;
}
.pdx-plan:hover { background: var(--pdx-soft); }
.pdx-plan.selected-plan { background: var(--pdx-accent-soft); }
.pdx-plan-radio { width: 18px; height: 18px; border: 1.5px solid #cbd5e1; border-radius: 50%; background: #fff; }
.pdx-plan.selected-plan .pdx-plan-radio { border: 5px solid var(--pdx-accent); }
.pdx-plan-days strong, .pdx-plan-data strong { display: block; color: var(--pdx-ink); font-size: 16px; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.pdx-plan-days span, .pdx-plan-data span { display: block; color: var(--pdx-muted); font-size: 12.5px; line-height: 1.3; }
.pdx-plan-tags { display: flex; flex-wrap: wrap; gap: 4px 6px; min-width: 0; }
.pdx-plan-tags span { padding: 2px 6px; border-radius: 5px; background: #f1f5f9; color: #475569; font-size: 12px; font-weight: 500; white-space: nowrap; }
.pdx-plan-tags .is-voice { background: #ecfdf5; color: #047857; }
.pdx-plan-tags .is-popular { background: #fff7ed; color: #c2410c; }
.pdx-plan-price { text-align: right; white-space: nowrap; }
.pdx-plan-price strong { display: block; color: var(--pdx-ink); font-size: 17px; font-weight: 750; font-variant-numeric: tabular-nums; }
.pdx-plan-price span { display: block; color: #b91c1c; font-size: 12px; }
.pdx-plan-price s { color: #94a3b8; }
.pdx-plan-actions { display: flex; align-items: center; gap: 4px; }
.pdx-plan-actions form { margin: 0; }
.pdx-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--pdx-muted); font-size: 16px; }
.pdx-icon-btn:hover { border-color: var(--pdx-line); background: #fff; color: var(--pdx-accent); }
.pdx-plan-actions .pd-btn-buy { min-width: 84px; padding: 6px 12px; border-radius: 7px; font-size: 13px; font-weight: 650; }
.pdx-empty { padding: 28px 20px; text-align: center; color: var(--pdx-muted); }
.pdx-empty h3 { color: var(--pdx-ink); font-size: 17px; }
.pdx-pagination { margin-top: 12px; text-align: center; }
.pdx-count { margin: 0 0 8px; color: var(--pdx-muted); font-size: 13px; }

/* ---------- Order summary ---------- */
.pdx-sidebar { position: sticky; top: 88px; z-index: 100; }
.pdx-summary { padding: 18px; border: 1px solid var(--pdx-line); border-radius: var(--pdx-radius); background: #fff; }
.pdx-summary.pd-pulse { animation: pdxPulse .6s ease; }
@keyframes pdxPulse { 0% { border-color: var(--pdx-line); } 30% { border-color: var(--pdx-accent); } 100% { border-color: var(--pdx-line); } }
.pdx-summary-head { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--pdx-line); }
.pdx-summary-head img { border-radius: 3px; box-shadow: 0 0 0 1px rgba(15, 23, 42, .12); }
.pdx-summary-head span { display: block; color: var(--pdx-muted); font-size: 12px; }
.pdx-summary-head strong { display: block; color: var(--pdx-ink); font-size: 15px; }
.pdx-summary-rows { margin: 12px 0 4px; }
.pdx-summary-rows .pd-quick-row { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 14px; }
.pdx-summary-rows dt { color: var(--pdx-muted); font-weight: 400; }
.pdx-summary-rows dd { margin: 0; color: var(--pdx-ink); font-weight: 650; text-align: right; }
.pdx-summary-details { padding: 4px 0 12px; font-size: 13px; text-align: left; }
.pdx-summary-details i { font-size: 11px; }
.pdx-summary-price { display: flex; align-items: baseline; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--pdx-line); }
.pdx-summary-price .pd-quick-label { color: var(--pdx-muted); font-size: 14px; }
.pdx-summary-price .pd-quick-price { color: var(--pdx-ink); font-size: 26px; font-weight: 750; font-variant-numeric: tabular-nums; }
.pdx-summary-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.pdx-summary-actions form { margin: 0; }
.pdx-summary-actions .pd-btn-buy { min-height: 44px; border-radius: 8px; font-weight: 650; }
.pdx-summary-actions .pd-quick-cart-form .btn { min-height: 44px; border-radius: 8px; }
.pdx-summary-actions .pd-quick-cart-text { display: none; }
.pdx-summary-notes { margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--pdx-line); list-style: none; color: var(--pdx-muted); font-size: 13px; }
.pdx-summary-notes li { display: flex; gap: 8px; padding: 3px 0; }
.pdx-summary-notes i { color: #94a3b8; }
.pdx-summary-notes a { color: var(--pdx-text); font-weight: 600; text-decoration: none; }

/* ---------- Detail tabs ---------- */
.pdx-info { padding: 8px 0 56px; }
.pdx-tabs { position: sticky; top: 0; z-index: 90; display: flex; gap: 4px; overflow-x: auto; margin-bottom: 24px; border-bottom: 1px solid var(--pdx-line); background: #fff; scrollbar-width: none; }
.pdx-tabs::-webkit-scrollbar { display: none; }
.pdx-tab { position: relative; flex: 0 0 auto; padding: 14px 14px 12px; border: 0; background: none; color: var(--pdx-muted); font-size: 15px; font-weight: 600; white-space: nowrap; }
.pdx-tab:hover { color: var(--pdx-ink); }
.pdx-tab.is-active { color: var(--pdx-ink); }
.pdx-tab.is-active::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; background: var(--pdx-accent); }
.pdx-tab-count { margin-left: 2px; padding: 1px 6px; border-radius: 10px; background: #f1f5f9; color: var(--pdx-muted); font-size: 12px; }
.pdx-panel[hidden] { display: none !important; }
.pdx-panel-title { margin: 0 0 14px; color: var(--pdx-ink); font-size: 20px; font-weight: 700; line-height: 1.3; }
.pdx-note { margin: 12px 0 0; color: var(--pdx-muted); font-size: 13px; }

/* Overview */
#tab-overview { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 32px; }
#tab-overview .pdx-article { grid-column: 1 / -1; }
.pdx-panel .pd-specs { padding: 0; border: 0; background: none; box-shadow: none; }
.pdx-panel .pd-specs-table { border-top: 1px solid var(--pdx-line); }
.pdx-panel .pd-specs-table th, .pdx-panel .pd-specs-table td { padding: 10px 0; border-bottom: 1px solid var(--pdx-line); font-size: 14px; }
.pdx-panel .pd-specs-table th { width: 44%; padding-right: 16px; color: var(--pdx-muted); font-weight: 500; white-space: normal; }
.pdx-panel .pd-specs-table td { color: var(--pdx-ink); font-weight: 600; }
.pdx-steps { counter-reset: s; align-self: start; margin: 46px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--pdx-line); }
.pdx-steps li { counter-increment: s; display: grid; grid-template-columns: 28px 1fr; column-gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--pdx-line); }
.pdx-steps li::before { content: counter(s); grid-row: span 2; width: 24px; height: 24px; border: 1px solid var(--pdx-line); border-radius: 50%; color: var(--pdx-muted); font-size: 12px; font-weight: 700; line-height: 22px; text-align: center; }
.pdx-steps strong { color: var(--pdx-ink); font-size: 14px; }
.pdx-steps span { color: var(--pdx-muted); font-size: 13px; }
.pdx-panel .pdx-article { max-width: none; margin: 8px 0 0; padding: 24px 0 0; border: 0; border-top: 1px solid var(--pdx-line); border-radius: 0; box-shadow: none; background: none; font-size: 15.5px; }
.pdx-panel .pdx-article h2 { font-size: 1.35rem; border-bottom: 0; padding-bottom: 0; }
.pdx-panel .pdx-article h3 { padding: 0; border: 0; background: none; color: var(--pdx-ink); font-size: 1.1rem; }
.pdx-panel .pdx-article li::marker { color: var(--pdx-muted); }
.pdx-panel .pdx-article th { background: var(--pdx-soft); color: var(--pdx-ink); }
.pdx-panel .pdx-article .pd-content-table { box-shadow: none; border-radius: 8px; }

/* Networks */
.pdx-panel .pd-carriers-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.pdx-panel .pd-carrier { padding: 12px 14px; border-radius: 8px; background: #fff; }
.pdx-panel .pd-carrier:hover { background: #fff; border-color: #94a3b8; }
.pdx-panel .pd-carrier-icon { display: none; }
.pdx-panel .pd-carrier-info > div:not(.pd-carrier-badges) { color: var(--pdx-text); font-size: 13.5px; }
.pdx-panel .pd-carrier-badges .badge { background: #f1f5f9 !important; color: #475569; font-weight: 600; }
.pdx-panel .pd-carrier-coverage-group { border-radius: 8px; }

/* FAQ, reviews, help centre and tools rendered flat inside their tab */
.pdx-panel .pd-faq,
.pdx-panel .pd-reviews,
.pdx-panel .pd-help-wrap,
.pdx-panel .pd-product-travel-tools,
.pdx-panel .travel-tools { padding: 0 !important; border: 0 !important; background: none !important; }
.pdx-panel .pd-faq > .container,
.pdx-panel .pd-reviews > .container,
.pdx-panel .pd-help-wrap > .container,
.pdx-panel .travel-tools > .container { max-width: none; padding: 0; }
.pdx-panel .pd-faq .accordion { max-width: none; }
.pdx-panel .pd-faq .accordion-item { margin: 0; border: 0; border-bottom: 1px solid var(--pdx-line); border-radius: 0 !important; }
.pdx-panel .pd-faq .accordion-item:first-child { border-top: 1px solid var(--pdx-line); }
.pdx-panel .pd-faq .accordion-button { padding: 14px 0; background: none; color: var(--pdx-ink); font-size: 15px; font-weight: 600; box-shadow: none; }
.pdx-panel .pd-faq .accordion-button:not(.collapsed) { background: none; color: var(--pdx-accent); }
.pdx-panel .pd-faq .accordion-body { padding: 0 0 16px; color: var(--pdx-text); }
.pdx-panel .pd-reviews-shell { max-width: none; }
.pdx-panel .pd-reviews-overview { padding: 0 0 20px; margin-bottom: 16px; border: 0; border-bottom: 1px solid var(--pdx-line); border-radius: 0; box-shadow: none; background: none; }
.pdx-panel .pd-review-card { border-radius: 8px; box-shadow: none; }
.pdx-panel .pd-review-card::before { display: none; }
.pdx-panel .pd-review-card:hover { transform: none; box-shadow: none; }
.pdx-panel .pd-reviews-avg { color: var(--pdx-ink); }
.pdx-panel .pd-help-intro { text-align: left; margin: 0 0 18px; }
.pdx-panel .pd-help-kicker { display: none; }
.pdx-panel .pd-help-title { margin-left: 0; color: var(--pdx-ink); font-size: 20px; font-weight: 700; text-align: left; }
.pdx-panel .tt-shell { box-shadow: none !important; border-radius: 10px !important; }
.pdx-panel .tt-heading { background: var(--pdx-soft) !important; }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
	.pdx-sidebar { position: static; }
	#tab-overview { grid-template-columns: 1fr; }
	.pdx-steps { margin-top: 0; }
}
@media (max-width: 767.98px) {
	body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
	.pdx-head { padding: 12px 0 14px; }
	.pdx-flag { width: 44px; height: 33px; }
	.pdx-sub { font-size: 14px; }
	.pdx-facts { font-size: 13px; row-gap: 4px; }
	.pdx-facts li + li::before { margin: 0 8px; }
	.pdx-main { padding: 18px 0 32px; }
	.pdx-field { grid-template-columns: 1fr; gap: 8px; padding: 14px; }
	.pdx-label { padding-top: 0; }
	.pdx-cov { grid-template-columns: 1fr; }
	.pdx-chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -14px; padding: 0 14px 2px; scrollbar-width: none; }
	.pdx-chips::-webkit-scrollbar { display: none; }
	.pdx-chips > * { flex: 0 0 auto; }
	.pdx-plan { grid-template-columns: 18px auto minmax(0, 1fr) auto; grid-template-areas: "r days data price" "r tags tags act"; gap: 8px 12px; padding: 12px 14px; }
	.pdx-plan-radio { grid-area: r; align-self: start; margin-top: 2px; }
	.pdx-plan-days { grid-area: days; }
	.pdx-plan-data { grid-area: data; }
	.pdx-plan-days strong, .pdx-plan-data strong { font-size: 15px; }
	.pdx-plan-tags { grid-area: tags; }
	.pdx-plan-price { grid-area: price; }
	.pdx-plan-actions { grid-area: act; justify-content: flex-end; }
	.pdx-plan-actions .pd-btn-buy { min-width: 0; }
	.pdx-sidebar {
		position: fixed; inset: auto 0 0; z-index: 1040; padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
		border-top: 1px solid var(--pdx-line); background: rgba(255, 255, 255, .97); box-shadow: 0 -6px 20px rgba(15, 23, 42, .08);
	}
	.pdx-summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; max-width: 720px; margin: 0 auto; padding: 0; border: 0; }
	.pdx-summary-head, .pdx-summary-details, .pdx-summary-notes, .pdx-summary-rows .pdx-row-coverage { display: none !important; }
	.pdx-summary-rows { display: flex; gap: 10px; margin: 0; grid-column: 1; grid-row: 1; }
	.pdx-summary-rows .pd-quick-row { display: block; padding: 0; font-size: 13px; }
	.pdx-summary-rows dt { display: none; }
	.pdx-summary-rows dd { text-align: left; }
	.pdx-summary-rows .pd-quick-row + .pd-quick-row::before { content: "·"; margin-right: 10px; color: #94a3b8; }
	.pdx-summary-rows .pd-quick-row + .pd-quick-row { display: flex; }
	.pdx-summary-price { grid-column: 1; grid-row: 2; padding: 0; border: 0; justify-content: flex-start; }
	.pdx-summary-price .pd-quick-label { display: none; }
	.pdx-summary-price .pd-quick-price { font-size: 19px; }
	.pdx-summary-actions { grid-column: 2; grid-row: 1 / span 2; }
	.pdx-summary-actions .pd-btn-buy, .pdx-summary-actions .pd-quick-cart-form .btn { min-height: 46px; }
	.pdx-tabs { top: 0; margin: 0 -12px 18px; padding: 0 8px; }
	.pdx-tab { padding: 12px 10px 10px; font-size: 14px; }
	.pdx-panel-title { font-size: 18px; }
}

/* Mobile: the bootstrap row gutter is wider than this theme's container padding. */
@media (max-width: 767.98px) {
	.pdx-main { overflow-x: clip; }
	.pdx-plan-tags span { font-size: 11.5px; }
	.pdx-plan-actions .pd-btn-buy { padding: 6px 10px; }
}
@media (max-width: 767.98px) { .back-to-top { bottom: calc(88px + env(safe-area-inset-bottom)) !important; } }

/* ---------- Selected plan as a floating, draggable widget (desktop) ---------- */
.pdx-float .pdx-float-mini, .pdx-float .pdx-grip, .pdx-float .pdx-float-min { display: none; }
@media (min-width: 768px) {
	.pdx-float { position: fixed; top: 136px; right: 24px; z-index: 1035; width: 320px; max-height: calc(100vh - 16px); }
	.pdx-float .pdx-summary { padding: 0 16px 14px; overflow: auto; max-height: calc(100vh - 16px); border-color: #d6dde8; box-shadow: 0 18px 44px rgba(15, 23, 42, .16), 0 2px 6px rgba(15, 23, 42, .06); }
	.pdx-float .pdx-float-handle { position: sticky; top: 0; z-index: 1; margin: 0 -16px; padding: 12px 10px 12px 12px; border-bottom: 1px solid var(--pdx-line); background: #fff; cursor: grab; user-select: none; touch-action: none; }
	.pdx-float .pdx-float-handle:focus-visible { outline: 2px solid var(--pdx-accent); outline-offset: -2px; }
	.pdx-float.is-dragging .pdx-float-handle { cursor: grabbing; }
	.pdx-float.is-dragging { opacity: .96; }
	.pdx-float .pdx-grip { display: inline-flex; color: #94a3b8; }
	.pdx-float .pdx-float-title { flex: 1; min-width: 0; }
	.pdx-float .pdx-float-title strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
	.pdx-float .pdx-float-min { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; border: 1px solid var(--pdx-line); border-radius: 7px; background: #fff; color: var(--pdx-muted); font-size: 16px; }
	.pdx-float .pdx-float-min:hover { border-color: #94a3b8; color: var(--pdx-ink); }
	.pdx-float .pdx-summary-rows { margin-top: 10px; }
	/* Collapsed: header line (plan · data), price and Buy only */
	.pdx-float.is-min { width: 300px; }
	.pdx-float.is-min .pdx-summary-rows, .pdx-float.is-min .pdx-summary-details, .pdx-float.is-min .pdx-summary-notes,
	.pdx-float.is-min .pdx-summary-head img, .pdx-float.is-min .pdx-float-title > span { display: none; }
	.pdx-float.is-min .pdx-float-mini { display: block; color: var(--pdx-muted); font-size: 12.5px; font-style: normal; }
	.pdx-float.is-min .pdx-summary-price { padding: 10px 0 8px; border-top: 0; }
	.pdx-float.is-min .pdx-summary-price .pd-quick-price { font-size: 20px; }
	.pdx-float.is-min .pdx-summary-actions .pd-btn-buy, .pdx-float.is-min .pdx-summary-actions .pd-quick-cart-form .btn { min-height: 38px; }
}
.pdx-panel .nx-toc{margin:0 0 24px;border:1px solid var(--pdx-line);border-radius:10px;background:var(--pdx-soft);font-size:14.5px}
.pdx-panel .nx-toc summary{padding:12px 16px;color:var(--pdx-ink);font-weight:700;cursor:pointer}
.pdx-panel .nx-toc ol{margin:0;padding:0 16px 14px 34px}.pdx-panel .nx-toc li{padding:3px 0}.pdx-panel .nx-toc .nx-toc-l3{margin-left:16px;list-style:circle}
.pdx-panel .nx-toc a{color:var(--pdx-text);text-decoration:none}.pdx-panel .nx-toc a:hover{color:var(--pdx-accent);text-decoration:underline}
.pdx-official{margin-top:20px;padding:16px 18px;border:1px solid var(--pdx-line);border-radius:10px}
.pdx-official h3{margin:0 0 8px;color:var(--pdx-ink);font-size:16px;font-weight:700}
.pdx-official ul{margin:0;padding-left:18px}.pdx-official li{padding:3px 0}.pdx-official a{color:var(--pdx-accent)}
.pdx-guide-shots{display:grid;grid-template-columns:2fr 3fr;align-items:start;gap:12px;max-width:720px;margin:20px 0 0}
.pdx-guide-shots img{width:100%;height:auto;border:1px solid var(--pdx-line);border-radius:10px}
.pdx-guide-shots figcaption{grid-column:1/-1;color:var(--pdx-muted);font-size:13px}
#tab-overview .pdx-glance{grid-column:1/-1;max-width:none}
#tab-overview .pdx-glance p{margin:0;color:var(--pdx-text);font-size:15.5px;line-height:1.7}
#tab-overview .pdx-bydays{grid-column:1/-1;max-width:none}
#tab-overview .pdx-bydays p{color:var(--pdx-text);font-size:15px}
.pdx-panel .pdx-bydays-table th{width:auto;color:var(--pdx-ink);font-weight:600}
.pdx-panel .pdx-bydays-table td{font-weight:500}

/* ---------- Plan list grouped by trip length ---------- */
.pdx-plan-list > .plan-item.pdx-group-start::before {
	content: attr(data-group-label); display: block; padding: 9px 14px 7px 44px;
	background: #f8fafc; color: #334155; font-size: 13px; font-weight: 700;
	border-bottom: 1px solid var(--pdx-line);
}
.pdx-plan-list > .plan-item.pdx-group-start + .plan-item, .pdx-plan-list > .plan-item:first-child::before { border-top: 0; }
.pdx-plan-list > .plan-item.pdx-group-start:not(:first-child) { border-top: 1px solid #cbd5e1; }
/* The heading already says the trip length: the per-row days column is quieter. */
.pdx-plan-days strong { font-size: 15px; color: #334155; }
.pdx-plan-data strong { font-size: 16px; }
.pdx-plan-tags span { background: #f1f5f9; border: 1px solid #e2e8f0; }
.pdx-plan.selected-plan { box-shadow: inset 3px 0 0 var(--pdx-accent); }

/* ---------- Gutter for the docked floating summary (desktop) ---------- */
/* The widget is fixed at right: 24px, width 320px. While it is docked, the content stops before it instead of running under it. */
@media (min-width: 992px) {
	body:not(.pdx-float-moved) .pdx-main { padding-right: max(.75rem, calc((960px - 100vw) / 2 + 372px)); }
}
@media (min-width: 1200px) {
	body:not(.pdx-float-moved) .pdx-main { padding-right: max(.75rem, calc((1140px - 100vw) / 2 + 372px)); }
}
@media (min-width: 1400px) {
	body:not(.pdx-float-moved) .pdx-main { padding-right: max(.75rem, calc((1320px - 100vw) / 2 + 372px)); }
}
/* Trip length on one line ("5 天", "10 days"). */
@media (min-width: 768px) {
	.pdx-plan { grid-template-columns: 18px 64px 118px minmax(0, 1fr) auto auto; }
	.pdx-plan-days { display: flex; align-items: baseline; gap: 4px; white-space: nowrap; }
	.pdx-plan-days strong, .pdx-plan-days span { display: inline; }
}
.pdx-plan-days { display: flex; align-items: baseline; gap: 4px; white-space: nowrap; }
.pdx-plan-days strong, .pdx-plan-days span { display: inline; }

/* Floating summary while the tabs are read: compact card in the bottom-right corner (see is-away in Details.php). */
@media (min-width: 768px) {
	.pdx-float { transition: opacity .18s ease, transform .18s ease; }
	.pdx-float.is-away { top: auto !important; left: auto !important; right: 24px !important; bottom: 24px; width: 300px; }
	.pdx-float.is-away .pdx-summary-rows, .pdx-float.is-away .pdx-summary-details, .pdx-float.is-away .pdx-summary-notes,
	.pdx-float.is-away .pdx-summary-head img, .pdx-float.is-away .pdx-float-title > span, .pdx-float.is-away .pdx-float-min { display: none; }
	.pdx-float.is-away .pdx-float-mini { display: block; color: var(--pdx-muted); font-size: 12.5px; font-style: normal; }
	.pdx-float.is-away .pdx-summary-price { padding: 10px 0 8px; border-top: 0; }
	.pdx-float.is-away .pdx-summary-price .pd-quick-price { font-size: 20px; }
	.pdx-float.is-away .pdx-summary-actions .pd-btn-buy, .pdx-float.is-away .pdx-summary-actions .pd-quick-cart-form .btn { min-height: 38px; }
}
/* Away state as one slim bar: plan · price · Buy (about 56px high), so it barely covers the content being read. */
@media (min-width: 768px) {
	.pdx-float.is-away { width: auto; max-width: 480px; max-height: none; }
	.pdx-float.is-away .pdx-summary { display: flex; align-items: center; gap: 14px; padding: 8px 8px 8px 14px; overflow: visible; max-height: none; }
	.pdx-float.is-away .pdx-float-handle { position: static; flex: 1 1 auto; min-width: 0; margin: 0; padding: 0; border: 0; background: none; cursor: default; }
	.pdx-float.is-away .pdx-grip { display: none; }
	.pdx-float.is-away .pdx-float-title strong { font-size: 14px; }
	.pdx-float.is-away .pdx-summary-price { flex: 0 0 auto; margin: 0; padding: 0; border: 0; }
	.pdx-float.is-away .pdx-summary-price .pd-quick-label, .pdx-float.is-away .pd-quick-cart-form { display: none; }
	.pdx-float.is-away .pdx-summary-price .pd-quick-price { font-size: 19px; }
	.pdx-float.is-away .pdx-summary-actions { display: flex; flex: 0 0 auto; gap: 6px; margin: 0; }
	.pdx-float.is-away .pdx-summary-actions .pd-btn-buy { width: auto !important; min-height: 38px; padding: 7px 18px; white-space: nowrap; }
}

/* Installation & help inside its tab: left-aligned and full width like the other tabs (the standalone page centres it). */
.pdx-panel .pd-help-intro { max-width: none; }
.pdx-panel .pd-help-intro > p:last-of-type { max-width: none; margin: 0; }
.pdx-panel .pd-help-jumps { justify-content: flex-start; }
.pdx-panel .pd-help-section { max-width: none; margin: 20px 0 0; border-radius: 12px; box-shadow: none; }

/* ---------- Clear sections: plan picker (white) · details band (grey, framed card) · guides (white) ---------- */
.pdx-info { padding: 44px 0 56px; border-top: 1px solid var(--pdx-line); background: #f5f7fa; }
.pdx-info .pdx-tabs { margin: 0; padding: 0 14px; border: 1px solid var(--pdx-line); border-radius: 12px 12px 0 0; background: #fff; }
.pdx-info .pdx-panel { padding: 28px 28px 32px; border: 1px solid var(--pdx-line); border-top: 0; border-radius: 0 0 12px 12px; background: #fff; }
.pdx-info .pdx-panel[hidden] { display: none; }
/* Tables and cards inside the framed panel keep a white base. */
.pdx-info .pdx-panel .pd-help-section { background: #fff; }
@media (max-width: 767.98px) {
	.pdx-info { padding: 24px 0 36px; }
	.pdx-info .pdx-tabs { margin: 0; padding: 0 6px; border-radius: 10px 10px 0 0; }
	.pdx-info .pdx-panel { padding: 18px 14px 22px; border-radius: 0 0 10px 10px; }
}
