/*
 * หน้าบ้าน Fastlearn10x Commerce
 * ขอบเขตทั้งหมดอยู่ใต้ .f10x-checkout และเพิ่มความจำเพาะให้ชนะสไตล์ปุ่ม/ช่องกรอกของธีม
 */
.f10x-checkout { --g: var(--f10x-green, #009345); --g-dark: #04723a; --g-soft: #ecf7f0; --ink: #14271f; --mute: #5b6f66; --line: #e0e9e4; --field: #c7d5cd; --danger: #a32420; --r: 12px; --shadow: 0 1px 2px rgba(20, 60, 40, .05), 0 8px 28px rgba(20, 60, 40, .07); color: var(--ink); font-family: 'Kanit', system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 16px; line-height: 1.6; -webkit-text-size-adjust: 100%; overflow-wrap: break-word; }
.f10x-checkout *, .f10x-checkout *::before, .f10x-checkout *::after { box-sizing: border-box; }
.f10x-checkout :is(h3, h4, p, a, span, li, label, input, button, small, strong, th, td, dt, dd, summary) { font-family: inherit; letter-spacing: normal; }
.f10x-checkout h3 { margin: 0 0 14px; font-size: 1.3rem; font-weight: 600; line-height: 1.35; color: var(--ink); }
.f10x-checkout h4 { margin: 0 0 6px; font-size: 1.1rem; font-weight: 600; line-height: 1.4; color: var(--ink); }
.f10x-checkout p { margin: 0 0 12px; }
.f10x-checkout ul, .f10x-checkout ol { list-style: none; margin: 0; padding: 0; }
.f10x-checkout li { margin: 0; }
.f10x-checkout a:not(.f10x-button) { color: var(--g-dark); }
.f10x-checkout [hidden] { display: none !important; }
.f10x-checkout .f10x-note { font-size: .9rem; color: var(--mute); }
.f10x-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.f10x-checkout :is(a, button, input, summary):focus-visible { outline: 3px solid #7cc79b; outline-offset: 2px; }

/* ปุ่มและช่องกรอก: สูงอย่างน้อย 48px สำหรับนิ้ว และตัวอักษร 16px กัน iOS ซูม */
.f10x-checkout .f10x-button, .f10x-checkout button.f10x-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; margin: 0; padding: 10px 24px; border: 1px solid var(--g); border-radius: var(--r); background: var(--g); color: #fff; font: 500 1rem/1.3 'Kanit', system-ui, sans-serif; text-align: center; text-decoration: none; cursor: pointer; touch-action: manipulation; transition: background-color .15s, transform .05s; }
.f10x-checkout .f10x-button:hover, .f10x-checkout .f10x-button:focus { background: var(--g-dark); border-color: var(--g-dark); color: #fff; }
.f10x-checkout .f10x-button:active { transform: translateY(1px); }
.f10x-checkout .f10x-button.is-quiet { background: var(--g-soft); border-color: #c3e2d0; color: var(--g-dark); }
.f10x-checkout .f10x-button.is-quiet:hover, .f10x-checkout .f10x-button.is-quiet:focus { background: #dcf0e4; color: var(--g-dark); }
.f10x-checkout .f10x-button-large { width: 100%; min-height: 60px; font-size: 1.15rem; font-weight: 600; }
.f10x-checkout input:is([type="text"], [type="email"], [type="password"], [type="tel"]) { display: block; width: 100%; min-width: 0; min-height: 48px; margin: 0; padding: 10px 14px; border: 1px solid var(--field); border-radius: var(--r); background: #fff; color: var(--ink); font: 400 1rem/1.4 'Kanit', system-ui, sans-serif; box-shadow: none; }
.f10x-checkout input:is([type="text"], [type="email"], [type="password"], [type="tel"]):focus { border-color: var(--g); outline: 3px solid #cbebd8; outline-offset: 0; }
.f10x-checkout input:is([type="checkbox"], [type="radio"]) { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--g); }

.f10x-card { display: flex; flex-direction: column; min-width: 0; padding: clamp(18px, 3vw, 28px); border: 1px solid var(--line); border-radius: 16px; background: #fff; text-align: left; }
.f10x-alert, .f10x-success { border-radius: var(--r); padding: 12px 16px; }
.f10x-alert { background: #fcebea; color: var(--danger); }
.f10x-success { background: var(--g-soft); color: var(--g-dark); }

/* ปุ่มสมัครเรียนในหน้าคอร์ส */
.f10x-checkout a.f10x-buy { display: flex; align-items: stretch; justify-content: space-between; width: 100%; min-height: 64px; border-radius: 10px; background: var(--g); color: #fff; font-weight: 600; font-size: 1.1rem; text-decoration: none; }
.f10x-checkout a.f10x-buy:hover, .f10x-checkout a.f10x-buy:focus { background: var(--g-dark); color: #fff; }
.f10x-buy > span { display: flex; align-items: center; gap: 8px; padding: 0 clamp(14px, 3vw, 24px); }
.f10x-buy .f10x-buy-price { border-left: 1px solid rgba(255, 255, 255, .28); white-space: nowrap; }
.f10x-buy del { opacity: .7; font-weight: 300; font-size: .9em; }
.f10x-checkout a.f10x-cart-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 500; text-decoration: none; }
.f10x-cart-link [data-f10x-count] { min-width: 22px; padding: 0 6px; border-radius: 99px; background: var(--g); color: #fff; font-size: .8rem; text-align: center; }

/* ตะกร้า */
.f10x-cart { container-type: inline-size; }
.f10x-lines-head, .f10x-line { display: grid; grid-template-columns: 44px 140px minmax(0, 1fr) 120px 72px 120px; gap: 16px; align-items: center; }
.f10x-lines-head { padding: 0 16px 10px; font-weight: 500; }
.f10x-lines-head span:first-child { grid-column: 2 / 4; }
.f10x-checkout .f10x-line { margin-bottom: 12px; padding: 18px 16px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; box-shadow: var(--shadow); }
.f10x-checkout a.f10x-line-remove { position: relative; width: 44px; height: 44px; border-radius: 50%; }
.f10x-line-remove::before, .f10x-line-remove::after { content: ""; position: absolute; left: 14px; top: 21px; width: 16px; height: 2px; border-radius: 2px; background: var(--ink); transform: rotate(45deg); }
.f10x-line-remove::after { transform: rotate(-45deg); }
.f10x-line-remove:hover { background: #fcebea; }
.f10x-thumb { display: block; aspect-ratio: 5 / 3; border-radius: 8px; overflow: hidden; background: var(--g-soft); }
.f10x-checkout .f10x-thumb img { display: block; width: 100%; height: 100%; margin: 0; object-fit: cover; }
.f10x-checkout a.f10x-line-title { font-weight: 500; line-height: 1.5; color: var(--ink); text-decoration: none; }
.f10x-checkout a.f10x-line-title:hover { color: var(--g-dark); }
.f10x-line-price, .f10x-line-total { font-variant-numeric: tabular-nums; white-space: nowrap; }
.f10x-line-total { font-weight: 600; }
.f10x-cart-foot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; margin-top: 20px; }
.f10x-checkout form.f10x-coupon { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; max-width: 420px; margin: 0 0 12px; padding: 8px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.f10x-checkout .f10x-coupon input[type="text"] { flex: 1 1 140px; width: auto; border-color: transparent; text-transform: uppercase; }
.f10x-checkout .f10x-coupon input::placeholder { text-transform: none; }
.f10x-checkout .f10x-coupon p { flex: 1; margin: 0; padding-left: 8px; }
.f10x-total-col { width: 100%; max-width: 480px; justify-self: end; }
.f10x-checkout .f10x-totals { margin: 0 0 14px; padding: 18px 22px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; box-shadow: var(--shadow); }
.f10x-totals div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 3px 0; }
.f10x-checkout .f10x-totals dt, .f10x-checkout .f10x-totals dd { margin: 0; padding: 0; }
.f10x-totals dt { color: var(--mute); }
.f10x-totals dd { text-align: right; font-variant-numeric: tabular-nums; }
.f10x-totals .is-discount dd { color: var(--danger); }
.f10x-totals .is-total { padding-top: 8px; }
.f10x-totals .is-total dd { font-size: 1.6rem; font-weight: 600; line-height: 1.3; }
.f10x-totals .is-total small { display: block; font-size: .85rem; font-weight: 300; color: var(--mute); }
.f10x-checkout .f10x-secure { margin-top: 24px; font-size: .9rem; color: var(--mute); text-align: center; }
.f10x-emptycart { align-items: center; text-align: center; padding-block: 56px; }

/* Checkout 2 ขั้น */
.f10x-checkout ol.f10x-stepper { display: flex; justify-content: center; max-width: 560px; margin: 0 auto 28px; }
.f10x-stepper li { flex: 1; position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--mute); font-weight: 500; text-align: center; }
.f10x-stepper li + li::before { content: ""; position: absolute; top: 20px; right: calc(50% + 28px); width: calc(100% - 56px); height: 3px; background: var(--line); }
.f10x-stepper li.is-active + li.is-active::before { background: var(--g); }
.f10x-stepper span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--line); background: #fff; }
.f10x-stepper .is-active { color: var(--ink); }
.f10x-stepper .is-active span { border-color: var(--g); background: var(--g); color: #fff; }
.f10x-checkout a.f10x-back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: none; }
.f10x-back::before { content: ""; width: 8px; height: 8px; border: solid currentColor; border-width: 0 0 2px 2px; transform: rotate(45deg); }
.f10x-cart-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.f10x-cart-main { box-shadow: var(--shadow); }
.f10x-cart:not(.is-stepped) .f10x-js-only { display: none; }
.f10x-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px 16px; margin-bottom: 28px; }
.f10x-checkout label.f10x-field { display: block; margin: 0; font-weight: 400; }
.f10x-checkout .f10x-field > span { display: block; margin-bottom: 4px; }
.f10x-f-company, .f10x-f-tax_id, .f10x-f-address { grid-column: 1 / -1; }
.f10x-checkout .f10x-field b, .f10x-checkout .f10x-terms b { color: var(--danger); }
.f10x-field small { color: var(--mute); font-weight: 300; }
.f10x-checkout label.f10x-method, .f10x-checkout label.f10x-terms { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 16px; cursor: pointer; }
.f10x-checkout label.f10x-method { padding: 16px; border: 2px solid var(--g); border-radius: var(--r); background: var(--g-soft); }
.f10x-method strong { font-weight: 600; }
.f10x-method small { display: block; color: var(--mute); }
.f10x-row { display: flex; flex-wrap: wrap; gap: 10px; }
.f10x-summary { position: sticky; top: 24px; min-width: 0; padding: 22px; border-radius: 16px; background: var(--g); color: #fff; }
.f10x-checkout .f10x-summary li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .25); }
.f10x-checkout .f10x-summary li:first-child { padding-top: 0; }
.f10x-checkout .f10x-summary li.has-image { grid-template-columns: 72px minmax(0, 1fr); }
.f10x-summary li > * { grid-column: -2 / -1; }
.f10x-checkout .f10x-summary li > img { grid-column: 1; grid-row: 1 / span 3; width: 72px; height: 48px; margin: 0; object-fit: cover; border-radius: 6px; }
.f10x-checkout .f10x-summary a { color: #fff; font-weight: 500; line-height: 1.45; text-decoration: none; }
.f10x-checkout .f10x-summary a.f10x-remove { justify-self: start; padding: 4px 0; font-weight: 300; font-size: .9rem; text-decoration: underline; }
.f10x-summary .f10x-sum-row, .f10x-summary .f10x-sum-total { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.f10x-summary .f10x-sum-row { margin: 12px 0 0; }
.f10x-summary .f10x-sum-total { margin: 14px 0 2px; font-size: 1.1rem; }
.f10x-sum-total strong { font-size: 1.5rem; font-weight: 600; }
.f10x-checkout .f10x-sum-vat { margin: 0; font-size: .85rem; font-weight: 300; opacity: .9; }

/* แพ็กเกจสมาชิก */
.f10x-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 16px; align-items: stretch; }
.f10x-plan { transition: box-shadow .18s, border-color .18s; }
.f10x-plan:hover { border-color: #b8dcc7; box-shadow: var(--shadow); }
.f10x-plan .f10x-term { margin: 0 0 16px; color: var(--mute); }
.f10x-checkout .f10x-price { display: flex; align-items: baseline; gap: 6px; margin: 0; font-size: 2.5rem; font-weight: 600; line-height: 1.2; color: var(--g); font-variant-numeric: tabular-nums; }
.f10x-price small { font-size: 1rem; font-weight: 300; color: var(--mute); }
.f10x-checkout ul.f10x-features { margin: 12px 0 20px; padding: 16px 0 0; border-top: 1px solid var(--line); }
.f10x-features li { position: relative; padding-left: 26px; margin-bottom: 6px; }
.f10x-features li::before { content: ""; position: absolute; left: 5px; top: .4em; width: 6px; height: 11px; border: solid var(--g); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.f10x-plan form, .f10x-plan > .f10x-button { margin: auto 0 0; }
.f10x-checkout .f10x-plan .f10x-button { width: 100%; }

/* สมัครและเข้าสู่ระบบ */
.f10x-auth { max-width: 440px; margin-inline: auto; }
.f10x-checkout.f10x-auth label { display: block; margin: 0; font-weight: 400; }
.f10x-checkout.f10x-auth input:is([type="text"], [type="email"], [type="password"]) { margin-top: 4px; }
.f10x-checkout.f10x-auth label.f10x-check { display: flex; gap: 10px; align-items: center; min-height: 44px; }
.f10x-checkout.f10x-auth .f10x-button { width: 100%; }
.f10x-auth details { margin-top: 16px; padding-top: 8px; border-top: 1px solid var(--line); }
.f10x-auth summary { min-height: 44px; padding-top: 10px; cursor: pointer; color: var(--g-dark); }
.f10x-hp { position: absolute !important; left: -9999px; }

/* สถานะการชำระเงิน */
.f10x-status { max-width: 480px; margin-inline: auto; align-items: center; text-align: center; padding-block: 36px; }
.f10x-status-icon { position: relative; width: 60px; height: 60px; margin-bottom: 16px; border-radius: 50%; }
.f10x-status[data-status="pending"] .f10x-status-icon { border: 4px solid var(--g-soft); border-top-color: var(--g); animation: f10x-spin 1s linear infinite; }
.f10x-status[data-status="paid"] .f10x-status-icon { background: var(--g); }
.f10x-status[data-status="paid"] .f10x-status-icon::after { content: ""; position: absolute; left: 22px; top: 13px; width: 14px; height: 28px; border: solid #fff; border-width: 0 4px 4px 0; transform: rotate(45deg); }
.f10x-status:is([data-status="review"], [data-status="failed"], [data-status="expired"]) .f10x-status-icon { background: #fdf1d0; }
.f10x-status:is([data-status="review"], [data-status="failed"], [data-status="expired"]) .f10x-status-icon::after { content: "!"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 28px; font-weight: 600; color: #795205; }
.f10x-status-text { font-size: 1.15rem; font-weight: 500; }
.f10x-status ul.f10x-features { width: 100%; text-align: left; }
@keyframes f10x-spin { to { transform: rotate(360deg); } }

/* บัญชีสมาชิก */
.f10x-welcome { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: center; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.f10x-checkout .f10x-welcome h3 { margin: 0; }
.f10x-section { margin-bottom: 32px; }
.f10x-tag { align-self: flex-start; margin-bottom: 12px; padding: 3px 14px; border-radius: 99px; font-size: .85rem; font-weight: 500; }
.f10x-on { background: var(--g-soft); color: var(--g-dark); }
.f10x-off { background: #fcebea; color: var(--danger); }
.f10x-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); -webkit-overflow-scrolling: touch; }
.f10x-checkout .f10x-scroll table { width: 100%; margin: 0; border: 0; border-collapse: collapse; }
.f10x-checkout .f10x-scroll :is(th, td) { padding: 12px 14px; border: 0; border-bottom: 1px solid var(--line); background: #fff; text-align: left; vertical-align: top; }
.f10x-checkout .f10x-scroll th { color: var(--mute); font-weight: 500; white-space: nowrap; }
.f10x-checkout .f10x-scroll td:nth-child(3) { min-width: 200px; }
.f10x-checkout .f10x-scroll tr:last-child td { border-bottom: 0; }

/* ปรับตามความกว้างของพื้นที่ที่ธีมให้ ไม่ใช่เฉพาะความกว้างจอ */
@container (max-width: 860px) {
	.f10x-lines-head { display: none; }
	.f10x-line { grid-template-columns: 96px minmax(0, 1fr) 44px; grid-template-areas: "thumb title remove" "thumb total total"; gap: 4px 14px; align-items: start; }
	.f10x-thumb { grid-area: thumb; }
	.f10x-checkout a.f10x-line-title { grid-area: title; }
	.f10x-checkout a.f10x-line-remove { grid-area: remove; margin-top: -8px; }
	.f10x-line-total { grid-area: total; font-size: 1.1rem; }
	.f10x-line-price, .f10x-line-qty { display: none; }
}
@container (max-width: 680px) {
	.f10x-cart-grid, .f10x-cart-foot { grid-template-columns: minmax(0, 1fr); }
	.f10x-summary { position: static; order: -1; }
	.f10x-total-col { max-width: none; }
	.f10x-checkout form.f10x-coupon { max-width: none; }
	.f10x-fields { grid-template-columns: minmax(0, 1fr); }
}
@container (max-width: 360px) {
	.f10x-line { grid-template-columns: minmax(0, 1fr) 44px; grid-template-areas: "thumb thumb" "title remove" "total total"; }
	.f10x-row .f10x-button { width: 100%; }
}
@media (max-width: 600px) {
	.f10x-checkout .f10x-history thead { display: none; }
	.f10x-checkout .f10x-history :is(tbody, tr, td) { display: block; width: 100%; }
	.f10x-checkout .f10x-history tr { padding: 8px 0; border-bottom: 1px solid var(--line); }
	.f10x-checkout .f10x-history tr:last-child { border-bottom: 0; }
	.f10x-checkout .f10x-scroll .f10x-history td { display: flex; justify-content: space-between; gap: 16px; min-width: 0; padding: 4px 14px; border: 0; text-align: right; }
	.f10x-history td::before { content: attr(data-label); flex: none; color: var(--mute); text-align: left; }
}
@media (max-width: 480px) {
	.f10x-checkout .f10x-row .f10x-button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
	.f10x-checkout * { transition: none !important; }
	.f10x-status-icon { animation-duration: 4s !important; }
}
.f10x-checkout .f10x-was { margin: 0; font-size: .9rem; color: var(--danger); }

/* แสดงแทนบนหน้าเดิม: template แบบ Elementor Canvas ไม่มีกรอบเนื้อหาให้ */
.f10x-page { width: 100%; max-width: 1200px; margin: 0 auto; padding: 32px 16px 64px; box-sizing: border-box; }
.f10x-page .f10x-preview { max-width: none; margin: 0 0 20px; padding: 10px 16px; border-radius: 10px; background: #fdf1d0; color: #6b4800; font-family: 'Kanit', system-ui, sans-serif; text-align: center; }

/* วิธีชำระเงิน: ธีมทำให้ label เป็นตัวหนา จึงกำหนดน้ำหนักเอง */
.f10x-checkout label.f10x-method { font-weight: 400; }
.f10x-method-body { flex: 1; min-width: 0; }
.f10x-checkout .f10x-method strong { display: block; font-size: 1.05rem; font-weight: 600; line-height: 1.4; }
.f10x-checkout .f10x-method small { display: block; font-size: .875rem; font-weight: 300; line-height: 1.6; }
.f10x-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0; }
.f10x-logo { display: flex; align-items: center; height: 36px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.f10x-checkout .f10x-logo img { display: block; width: auto; height: 100%; max-width: 160px; margin: 0; object-fit: contain; }
.f10x-badge-pay { padding: 4px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: .8rem; font-weight: 500; color: var(--ink); white-space: nowrap; }
.f10x-checkout .f10x-method .f10x-method-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.f10x-checkout img.f10x-payso { width: auto; height: 24px; margin: 0; }
.f10x-checkout .f10x-logo { justify-content: center; min-width: 56px; }
.f10x-checkout .f10x-logo img { height: 22px; max-width: 86px; }

/* ปุ่มย้อนกลับ */
.f10x-checkout .f10x-backbar { margin: 0 0 16px; }
.f10x-checkout .f10x-backbar a.f10x-back { padding: 0 18px 0 16px; border: 1px solid #d5ded8; border-radius: 99px; background: #fff; color: #1d2b23; font-weight: 500; }
.f10x-checkout .f10x-backbar a.f10x-back:hover, .f10x-checkout .f10x-backbar a.f10x-back:focus-visible { border-color: #009345; color: #009345; }

/* ปุ่มตะกร้าบนหัวเว็บ (อยู่นอก .f10x-checkout) */
.f10x-headwrap { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
a.f10x-headcart { position: relative; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; color: #009345; }
a.f10x-headcart:hover, a.f10x-headcart:focus-visible { background: #e8f5ed; color: #007a39; }
.f10x-headcart [data-f10x-count] { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 99px; background: #d93025; color: #fff; font: 700 11px/18px sans-serif; text-align: center; }
.f10x-headcart [data-f10x-count][hidden] { display: none; }
a.f10x-headcart, a.f10x-headcart:focus { background: transparent; }

/* แผงตะกร้าเลื่อนจากขวา */
html.f10x-mini-lock { overflow: hidden; }
.f10x-mini { position: fixed; inset: 0; z-index: 100000; font-family: Kanit, system-ui, sans-serif; }
.f10x-mini-shade { position: absolute; inset: 0; background: rgba(10, 20, 14, .45); opacity: 0; transition: opacity .25s; }
.f10x-mini-panel { position: absolute; top: 0; right: 0; bottom: 0; display: flex; flex-direction: column; width: min(420px, 100%); background: #fff; color: #1d2b23; box-shadow: -12px 0 40px rgba(0,0,0,.18); transform: translateX(100%); transition: transform .25s ease; }
.f10x-mini.is-open .f10x-mini-shade { opacity: 1; }
.f10x-mini.is-open .f10x-mini-panel { transform: none; }
.f10x-mini-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 20px 16px; border-bottom: 1px solid #e6ece8; }
.f10x-mini-head h2 { margin: 0; font-size: 1.25rem; font-weight: 600; color: inherit; }
.f10x-mini-body { flex: 1; overflow-y: auto; padding: 8px 20px; }
.f10x-mini-empty { margin: 40px 0; text-align: center; color: #5f6b64; }
.f10x-mini-list { margin: 0; padding: 0; list-style: none; }
.f10x-mini-list li { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid #eef2ef; }
.f10x-mini-thumb { width: 72px; height: 48px; overflow: hidden; border-radius: 8px; background: #eef4f0; }
.f10x-mini-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.f10x-mini-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.f10x-mini-info a { color: inherit; font-weight: 500; line-height: 1.35; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.f10x-mini-price { color: #009345; font-weight: 600; }
a.f10x-mini-remove { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 99px; background: #fdecea; color: #c62828; font-size: .875rem; text-decoration: none; }
.f10x-mini-foot { padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid #e6ece8; display: grid; gap: 10px; }
.f10x-mini-total { display: flex; justify-content: space-between; margin: 0 0 4px; font-size: 1.05rem; }
.f10x-mini-total strong { font-size: 1.3rem; }
a.f10x-mini-btn { display: flex; align-items: center; justify-content: center; min-height: 50px; border-radius: 12px; background: #009345; color: #fff; font-weight: 600; text-decoration: none; }
a.f10x-mini-btn.is-quiet { background: #fff; color: #009345; border: 1.5px solid #009345; }
@media (prefers-reduced-motion: reduce) { .f10x-mini-panel, .f10x-mini-shade { transition: none; } }
/* ปุ่มตะกร้าเฉพาะคนที่ล็อกอิน (เช็กจาก class ของ body เพื่อไม่ติดแคชของ Elementor/WP Rocket) */
body:not(.logged-in) a.f10x-headcart { display: none !important; }

/* ปุ่มปิด: สีของ Fastlearn10x และกันธีมทับ */
.f10x-mini button.f10x-mini-close { position: relative; flex: 0 0 44px; width: 44px; height: 44px; min-height: 0; padding: 0; margin: 0; border: 1.5px solid #cfe5d8 !important; border-radius: 50% !important; background: #fff !important; box-shadow: none !important; cursor: pointer; }
.f10x-mini button.f10x-mini-close:hover, .f10x-mini button.f10x-mini-close:focus-visible { background: #009345 !important; border-color: #009345 !important; }
.f10x-mini-close::before, .f10x-mini-close::after { content: ""; position: absolute; top: 50%; left: 50%; width: 16px; height: 2px; border-radius: 2px; background: #009345; transform: translate(-50%, -50%) rotate(45deg); }
.f10x-mini-close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.f10x-mini button.f10x-mini-close:hover::before, .f10x-mini button.f10x-mini-close:hover::after, .f10x-mini button.f10x-mini-close:focus-visible::before, .f10x-mini button.f10x-mini-close:focus-visible::after { background: #fff; }
.f10x-mini-head h2 { color: #0b3d22 !important; font-family: Kanit, system-ui, sans-serif !important; }
.f10x-mini-head { border-bottom: 3px solid #009345; }
.f10x-mini a.f10x-mini-remove { background: #eef6f1; color: #007a39; }
.f10x-mini a.f10x-mini-remove:hover { background: #fdecea; color: #c62828; }
.f10x-mini a.f10x-mini-btn:hover { background: #007a39; color: #fff; }
.f10x-mini a.f10x-mini-btn.is-quiet:hover { background: #eef6f1; color: #007a39; }
.f10x-mini-empty a.f10x-mini-btn { margin-top: 16px; }
