/* Site header after the V1 Revised prototype: standard-ui header (phone) + v2-desktop nav + v3-refine look.
   Phone first; desktop from 1025px, the theme's lg breakpoint. */
.pt-topnav { position: absolute; left: 0; right: 0; z-index: 10; background: #fff; border-bottom: 1px solid #e1e6e8; color: #00184a; font-family: "Noto Sans Thai", Arial, Helvetica, sans-serif; font-size: 14.5px; line-height: 1.4; }
.pt-topnav * { box-sizing: border-box; }
.pt-topnav-row { display: flex; align-items: center; gap: 10px; height: 54px; }
.pt-topnav a { text-decoration: none; }

/* TH / EN */
.pt-topnav-lang { display: flex; flex: none; border: 1px solid #e2e5ea; border-radius: 999px; overflow: hidden; }
.pt-topnav-lang a { display: block; padding: 5px 8px; font-size: 12px; line-height: 14px; font-weight: 800; background: #fff; color: #737b88; }
.pt-topnav-lang a.active { background: #00184a; color: #fff; }

/* Logo */
.pt-topnav-logo { display: flex; align-items: center; flex: none; }
.pt-topnav-logo img { display: block; width: auto; height: 22px; max-width: none; object-fit: contain; }
.pt-topnav-wordmark { font-size: 22px; font-weight: 800; }
.pt-topnav-wordmark span:first-child { color: #004aeb; }
.pt-topnav-wordmark span:last-child { color: #fe9300; }

/* Search pill (phone) */
.pt-topnav-spill { display: flex; align-items: center; gap: 5px; flex: 1; min-width: 0; height: 32px; padding: 0 10px; border: 1px solid #e2e5ea; border-radius: 8px; background: #f2f3f6; color: #737b88; font: inherit; font-size: 13px; text-align: left; white-space: nowrap; overflow: hidden; cursor: pointer; }
.pt-topnav-spill span { overflow: hidden; text-overflow: ellipsis; }
.pt-topnav-spill svg { flex: none; }

/* Hamburger (phone) */
.pt-topnav-menu { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; margin-right: -8px; padding: 0; border: 0; background: none; color: #00184a; cursor: pointer; }

/* Desktop-only pieces */
.pt-topnav-search, .pt-topnav-nav, .pt-topnav-auth { display: none; }

/* Page content sits under the fixed header */
main[role="main"] { padding-top: 54px; }
main[role="main"].has-top-bar { padding-top: 94px; }

@media (min-width: 1025px) {
	.pt-topnav-row { gap: 14px; height: 56px; max-width: 1360px; padding-inline: 24px; }
	.pt-topnav-logo img { height: 24px; }
	.pt-topnav-spill, .pt-topnav-menu { display: none; }

	/* Search bar: the theme's search component in the prototype's grey field */
	.pt-topnav-search { display: block; flex: 0 1 380px; min-width: 0; }
	.pt-topnav .pt-topnav-search .global-searchbar { background: #f5f7f7; border: 1px solid #e1e6e8; border-radius: 8px; padding: 0 6px 0 10px; height: 40px; }
	.pt-topnav .pt-topnav-search .search-input { background: transparent; font-size: 14.5px; color: #00184a; min-width: 0; }
	.pt-topnav .pt-topnav-search .search-input::placeholder { color: #677681; }

	/* Section links */
	.pt-topnav-nav { display: flex; flex: 1; min-width: 0; gap: 2px; }
	.pt-topnav-nav a { padding: 8px 10px; border-radius: 5px; font-size: 16px; font-weight: 550; color: #4b5e6a; white-space: nowrap; transition: background .15s, color .15s; }
	.pt-topnav-nav a:hover { background: #f1f5f9; color: #0b1f44; }
	.pt-topnav-nav a[aria-current="page"] { background: #eef3fc; color: #245bd6; }

	/* Account */
	.pt-topnav-auth { display: flex; align-items: center; flex: none; margin-left: auto; }
	.pt-topnav-login { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border: 1px solid #c9d5ea; border-radius: 5px; background: #fff; color: #0b1f44; font-size: 16px; font-weight: 550; white-space: nowrap; transition: border-color .15s, color .15s; }
	.pt-topnav-login:hover { border-color: #1d4ed8; color: #1d4ed8; }
	.pt-topnav-user { position: relative; }
	.pt-topnav-userbtn { display: flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; cursor: pointer; }
	.pt-topnav-userbtn img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 1px solid #e3e8f0; }
	.pt-topnav-dd { position: absolute; right: 0; top: calc(100% + 8px); min-width: 160px; padding: 6px; border: 1px solid #e1e6e8; border-radius: 10px; background: #fff; box-shadow: 0 10px 30px rgba(11, 31, 68, .12); opacity: 0; visibility: hidden; transition: opacity .15s, visibility .15s; z-index: 60; }
	.pt-topnav-user:hover .pt-topnav-dd, .pt-topnav-user:focus-within .pt-topnav-dd { opacity: 1; visibility: visible; }
	.pt-topnav-dd a { display: block; padding: 8px 10px; border-radius: 6px; font-size: 16px; color: #0b1f44; }
	.pt-topnav-dd a:hover { background: #f1f5f9; }
	.pt-topnav-dd a.out { color: #dc2626; }

	main[role="main"] { padding-top: 56px; }
	main[role="main"].has-top-bar { padding-top: 96px; }
}

/* Footer: the band starts right under the page content. The theme's lg:pt-25 left ~100px of white above the
   footer on every page (design audit, 5 Nov); pages keep their own 48–64px bottom padding. */
footer.footer { padding-top: 20px; }
footer.footer::before { top: 0; } /* the wavy band used to start 3vh down */
@media (min-width: 768px) {
	footer.footer { padding-top: 40px; }
}
@media (min-width: 1024px) {
	footer.footer { padding-top: 64px; }
}
/* Page wrappers end 32px (phone 24px) above the footer instead of 48–64px. */
main.has-top-bar > :is(.pb-16, .pb-14, .pb-12, .pt-hw, .pt-ccw), main.has-top-bar .pt-allc-wrap { padding-bottom: 32px; }
@media (max-width: 767px) {
	main.has-top-bar > :is(.pb-16, .pb-14, .pb-12, .pt-hw, .pt-ccw), main.has-top-bar .pt-allc-wrap { padding-bottom: 24px; }
}

/* Paste a product link (10 Nov 2026): the note shown while the pasted link is looked up. */
.pt-link-toast { position: fixed; left: 50%; bottom: 28px; z-index: 99999; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; max-width: calc(100vw - 32px); padding: 11px 18px; border-radius: 999px; background: #00184a; color: #fff; font-size: 14px; font-weight: 600; line-height: 1.3; white-space: nowrap; box-shadow: 0 8px 24px rgba(0, 24, 74, .3); }
.pt-link-toast::before { content: ""; flex: none; width: 14px; height: 14px; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%; animation: pt-link-spin .7s linear infinite; }
@keyframes pt-link-spin { to { transform: rotate(360deg); } }

/* Phone menu drawer (10 Nov 2026): while closed it sits just off the left edge and its shadow
   smeared grey down the left side of every page; it was also 380px wide on a 375px phone. */
#mobile-menu-drawer { max-width: 100vw; }
#mobile-menu-drawer.-translate-x-full { box-shadow: none; }
