/* ---------------- Taxes pages ---------------- */

.moss-tax-page { padding: 32px 0 0; }

/* pill row switching between the 3 Taxes sub-pages (VAT Refund,
   Tax Payment, Tax Benefits) - confirmed 2026-09-25 */
.moss-tax-switcher {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 24px;
}
.moss-tax-switch-pill {
	display: inline-flex;
	align-items: center;
	padding: 9px 18px;
	border: 1px solid var(--moss-blue);
	border-radius: 999px;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--moss-blue);
	white-space: nowrap;
}
.moss-tax-switch-pill:hover { background: #eaf1ff; }
.moss-tax-switch-pill.is-active {
	background: var(--moss-blue);
	border-color: var(--moss-blue);
	color: #fff;
}

.moss-tax-title {
	font-size: 22px;
	font-weight: 700;
	color: #0f172a;
	margin: 0 0 20px;
}

.moss-tax-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 28px;
	border-bottom: 1px solid #e5e7eb;
	margin-bottom: 32px;
}
.moss-tax-tab {
	position: relative;
	padding: 0 0 14px;
	font-size: 13.5px;
	font-weight: 500;
	color: #94a3b8;
	white-space: nowrap;
}
.moss-tax-tab::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -1px;
	width: 100%;
	height: 2px;
	background: var(--moss-orange);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.25s ease;
}
.moss-tax-tab.is-active { color: #0f172a; font-weight: 700; }
.moss-tax-tab.is-active::after { transform: scaleX(1); }

.moss-tax-section {
	scroll-margin-top: 24px;
	margin-bottom: 48px;
}
.moss-tax-section h2 {
	font-size: 18px;
	font-weight: 700;
	color: #0f172a;
	margin: 0 0 16px;
}

.moss-tax-section p {
	font-size: 13.5px;
	line-height: 1.85;
	color: #334155;
	margin: 0 0 10px;
}
.moss-tax-numbered {
	font-size: 16px;
	font-weight: 700;
	color: #0f172a;
	margin: 0 0 12px;
}
.moss-tax-sub {
	font-size: 14.5px;
	font-weight: 700;
	color: #0f172a;
	margin: 26px 0 10px;
}
.moss-tax-ordered {
	margin: 0 0 10px;
	padding-left: 20px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.moss-tax-ordered li,
.moss-tax-plain-list li {
	font-size: 13.5px;
	line-height: 1.85;
	color: #334155;
}
.moss-tax-plain-list {
	margin: 0 0 16px;
	padding: 0;
	list-style: none;
}
.moss-tax-inline-link { color: var(--moss-blue); text-decoration: underline; font-size: 13.5px; }
.moss-tax-section a,
.moss-tax-after-band a { color: var(--moss-blue); text-decoration: underline; }

/* full-bleed pale band holding service cards */
.moss-tax-band {
	position: relative;
	left: 50%;
	right: 50%;
	width: 100vw;
	margin-left: -50vw;
	margin-right: -50vw;
	background: #f6fbff;
	padding-top: 26px;
	padding-bottom: 26px;
	padding-left: max(24px, calc((100vw - 1200px) / 2 + 24px));
	padding-right: max(24px, calc((100vw - 1200px) / 2 + 24px));
	box-sizing: border-box;
	margin-bottom: 32px;
}
.moss-tax-band h3 {
	font-size: 15px;
	font-weight: 700;
	color: var(--moss-blue);
	margin: 0 0 16px;
}
.moss-tax-after-band { margin-bottom: 40px; }

.moss-tax-card-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}
.moss-tax-card-grid-1 { grid-template-columns: 320px; }
.moss-tax-card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.moss-tax-card-grid-4 { grid-template-columns: repeat(4, 1fr); }

.moss-tax-card {
	display: flex;
	align-items: stretch;
	height: 64px;
	min-height: 0;
	box-sizing: border-box;
	background: #fff;
	border: 1px solid #ddf0ff;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 4px 4px 0 #ddf0ff;
	text-decoration: none;
}
.moss-tax-card-badge {
	flex-shrink: 0;
	width: 50px;
	background: var(--moss-blue);
	display: flex;
	align-items: center;
	justify-content: center;
}
.moss-tax-card-label {
	flex: 1;
	display: flex;
	align-items: center;
	padding: 6px 10px;
	min-width: 0;
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--moss-blue);
	text-decoration: none;
}
.moss-tax-card-arrow {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	padding-right: 12px;
	font-size: 16px;
	color: var(--moss-blue);
}


.moss-tax-page a.moss-tax-cta {
	display: inline-block;
	background: var(--moss-blue);
	color: #fff;
	border-radius: 999px;
	padding: 10px 22px;
	font-size: 12.5px;
	font-weight: 600;
	text-decoration: none;
	margin-bottom: 26px;
}
.moss-tax-page a.moss-tax-cta:hover { background: var(--moss-blue-dark); color: #fff; }

.moss-tax-contact-head {
	font-size: 15px;
	font-weight: 700;
	color: #0f172a;
	margin: 0 0 12px;
}
.moss-tax-after-band p {
	font-size: 13.5px;
	line-height: 1.85;
	color: #334155;
	margin: 0 0 14px;
}

.moss-tax-lead {
	font-size: 18px;
	font-weight: 700;
	line-height: 1.7;
	color: #0f172a;
	margin: 0 0 10px;
}
.moss-tax-lead-sub {
	font-size: 13.5px;
	line-height: 1.85;
	color: #334155;
	margin: 0 0 32px;
}

/* accordion */
.moss-tax-accordion { border-top: 1px solid #e5e7eb; margin-bottom: 36px; }
.moss-tax-acc-item { border-bottom: 1px solid #e5e7eb; }
.moss-tax-acc-question {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	background: none;
	border: none;
	text-align: left;
	padding: 16px 4px;
	font-family: inherit;
	font-size: 13.5px;
	font-weight: 600;
	color: #1f2937;
	cursor: pointer;
}
.moss-tax-acc-item.is-open .moss-tax-acc-question { color: var(--moss-blue); }
.moss-tax-acc-chevron { flex-shrink: 0; color: #94a3b8; transition: transform 0.2s ease; }
.moss-tax-acc-item.is-open .moss-tax-acc-chevron { color: var(--moss-blue); transform: rotate(180deg); }

.moss-tax-acc-answer {
	overflow: hidden;
	max-height: 0;
	transition: max-height 0.25s ease;
}
.moss-tax-acc-item.is-open .moss-tax-acc-answer { max-height: 320px; }
/* Insurance Companies tab: 20-50+ entries per list, so the usual fixed
   max-height (sized for a couple of lines of prose) would just clip
   the list - confirmed 2026-09-28. */
.moss-tax-acc-item.is-open .moss-tax-acc-answer.moss-tax-acc-answer-tall { max-height: 4000px; }
.moss-tax-acc-answer-box {
	margin: 0 4px 18px;
	padding: 16px 18px;
	background: #eff9ff;
	border: 0.5px solid #7fb1e9;
	border-radius: 6px;
}
.moss-tax-acc-answer-box strong {
	display: block;
	font-size: 13.5px;
	font-weight: 700;
	color: var(--moss-blue);
	margin-bottom: 8px;
}
.moss-tax-acc-answer-box p {
	margin: 0 0 12px;
	font-size: 13px;
	line-height: 1.8;
	color: #334155;
}
.moss-tax-acc-answer-box > :last-child { margin-bottom: 0; }
.moss-tax-acc-question-label { display: flex; align-items: center; gap: 10px; }
.moss-tax-acc-icon-badge {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--moss-blue);
	color: #fff;
}
.moss-tax-acc-answer-box-list ol,
.moss-tax-acc-answer-box-list ul {
	margin: 0 0 12px;
	padding-left: 20px;
	font-size: 13px;
	line-height: 1.9;
	color: #334155;
}
.moss-tax-acc-answer-box-list ol li,
.moss-tax-acc-answer-box-list ul li { padding-left: 4px; }
.moss-tax-acc-answer-box-list ol li a,
.moss-tax-acc-answer-box-list ul li a { color: inherit; }

/* A comparison table (e.g. F.O.B./C.F.R./C.I.F. buyer-seller
   responsibilities) inside an accordion answer - confirmed
   2026-09-28. Wrapped in a scroller so a wide table never forces the
   page itself to scroll sideways on mobile. */
.moss-tax-acc-answer-box table {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 12px;
	font-size: 12.5px;
	color: #334155;
}
.moss-tax-acc-answer-box th,
.moss-tax-acc-answer-box td {
	border: 1px solid #cfe3f7;
	padding: 8px 10px;
	text-align: left;
	vertical-align: top;
}
.moss-tax-acc-answer-box th {
	background: #dcedfb;
	color: var(--moss-blue);
	font-weight: 700;
}

/* ข้อควรรู้ panel */
.moss-tax-know-panel {
	position: relative;
	background: var(--moss-blue);
	border-radius: 12px;
	padding: 26px 28px;
}
/* Tax Payment renders this panel directly (not through the ACF block
   wrapper that already adds its own 40px margin-bottom for VAT
   Refund - see .wp-block-acf-mgw-info-panel below), so it needs its
   own bottom margin here, scoped away from the VAT Refund page to
   avoid doubling that block-wrapper margin - confirmed 2026-09-28. */
.moss-tax-page:not(.moss-vat-refund-page) .moss-tax-know-panel { margin-bottom: 40px; }
.moss-tax-know-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 6px;
}
.moss-tax-know-head h2 {
	margin: 0;
	color: #fff;
}
/* A CSS mask (not <img>) so the SVG's own fill (#FABF2B yellow) can
   be overridden to white here - confirmed 2026-09-28. */
.moss-tax-know-icon {
	display: block;
	flex-shrink: 0;
	width: 28px;
	height: 40px;
	background-color: #fff;
	mask-size: contain;
	mask-repeat: no-repeat;
	mask-position: center;
	-webkit-mask-size: contain;
	-webkit-mask-repeat: no-repeat;
	-webkit-mask-position: center;
}
.moss-tax-know-panel h3 {
	font-size: 14.5px;
	font-weight: 700;
	color: #fff;
	margin: 0 0 14px;
}
/* Plain prose body (Tax Payment's Good-to-Know boxes use an <h4> +
   paragraphs, not the block's <ol class="moss-tax-know-list">) -
   confirmed 2026-09-28. */
.moss-tax-know-panel h4 {
	font-size: 14px;
	font-weight: 700;
	color: #fff;
	margin: 0 0 12px;
}
.moss-tax-know-panel p {
	font-size: 13.5px;
	line-height: 1.9;
	color: #fff;
	margin: 0 0 10px;
}
.moss-tax-know-panel p:last-child { margin-bottom: 0; }
.moss-tax-know-list {
	margin: 0;
	padding-left: 20px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.moss-tax-know-list li {
	font-size: 13.5px;
	line-height: 1.7;
	color: #fff;
	padding-left: 4px;
}

/* สอบถามข้อมูลเพิ่มเติม */
/* Real <ul><li> markers, not an absolutely-positioned ::before dot -
   confirmed 2026-09-28: that pseudo-bullet sat at the very top of
   the <li> box, disconnected from the text whenever a sub-field's
   WYSIWYG output wrapped its content in a <p> (its own line-height
   pushed the visible text down, away from the bullet). */
.moss-tax-info-list {
	margin: 0;
	padding-left: 20px;
}
.moss-tax-info-list li {
	font-size: 13.5px;
	line-height: 1.8;
	color: #334155;
	margin-bottom: 12px;
}
.moss-tax-info-list li:last-child { margin-bottom: 0; }
.moss-tax-info-list li p { margin: 0; }
.moss-tax-info-list a { color: var(--moss-blue); text-decoration: underline; }

/* helpful bar */
.moss-tax-helpful { background: #f1f5f9; padding: 24px 0; margin-top: 8px; margin-bottom: 20px; }
.moss-tax-helpful-inner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 20px;
	font-size: 14px;
	font-weight: 600;
	color: #1f2937;
}
.moss-tax-helpful-btns { display: flex; gap: 10px; }
.moss-tax-helpful-no,
.moss-tax-helpful-yes {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 85px;
	height: 30px;
	border-radius: 100px;
	padding: 0;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	box-sizing: border-box;
}
.moss-tax-helpful-no { background: #fff; border: 1px solid #cbd5e1; color: #334155; }
.moss-tax-helpful-yes { background: var(--moss-blue); border: 1px solid var(--moss-blue); color: #fff; }

@media (max-width: 900px) {
	.moss-tax-card-grid,
	.moss-tax-card-grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
	.moss-tax-card-grid,
	.moss-tax-card-grid-1,
	.moss-tax-card-grid-2,
	.moss-tax-card-grid-4 { grid-template-columns: 1fr; }
	.moss-tax-tabs { gap: 18px; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; }
	.moss-tax-know-panel { padding: 22px 18px; }
}

/* ---------------- VAT Refund page: 16px base / 18px headers ---------------- */
/* Confirmed 2026-09-25: this page specifically (not the other Taxes
   sub-pages, which still use the smaller sizes above) needs every
   content text at a 16px base and every heading-level label at 18px,
   scoped to .moss-vat-refund-page so it doesn't leak into
   tax-payment/tax-benefits, which share this same stylesheet. */

.moss-vat-refund-page .moss-tax-section h2,
.moss-vat-refund-page .moss-tax-know-panel h3,
.moss-vat-refund-page .moss-tax-acc-question,
.moss-vat-refund-page .moss-tax-sub,
.moss-vat-refund-page .moss-tax-know-head h2 {
	font-size: 18px;
}

.moss-vat-refund-page .moss-tax-section p,
.moss-vat-refund-page .moss-tax-know-list li {
	font-size: 16px;
}
/* "สอบถามข้อมูลเพิ่มเติม" (More Information) list - confirmed
   2026-09-28: stays at 13.5px, not this page's 16px body size. */
.moss-vat-refund-page .moss-tax-info-list li {
	font-size: 13.5px;
}
/* Accordion answer content stays at the base 13px (not this page's
   16px) - confirmed 2026-09-28: it was previously inconsistent with
   its own list items, which were already 13px. */
.moss-vat-refund-page .moss-tax-acc-answer-box strong,
.moss-vat-refund-page .moss-tax-acc-answer-box p {
	font-size: 13px;
}

/* ---------------- Content blocks (MGW Accordion / Info Panel / Info List) ---------------- */
/* Confirmed 2026-09-25: these replace the old fixed <section
   id="..." class="moss-tax-section"> wrappers, which supplied the
   48px gap between sections via margin-bottom - the blocks
   themselves don't have one, so it's re-added here, scoped to ACF's
   automatic block wrapper instead. */
.wp-block-acf-mgw-accordion,
.wp-block-acf-mgw-info-panel,
.wp-block-acf-mgw-info-list,
.wp-block-acf-mgw-section-heading {
	margin-bottom: 40px;
	scroll-margin-top: 24px;
}
