/* Friendly Travel eSIM page (page-templates/esim.php) */
/* The page has its own blue hero, so hide the theme's photo banner here. */
body.page-template-esim #site-banner { display: none !important; }
.ft-esim h1, .ft-esim h2, .ft-esim h3 { margin: 0; }
.ft-esim h2 { font-size: 34px !important; line-height: 1.2; margin: 0 0 14px !important; }
.ft-esim-section { padding-top: 48px; }
.ft-esim-muted { color: var(--ft-muted) !important; margin: 0 0 16px; }
.ft-esim-small { font-size: 17px !important; color: var(--ft-muted) !important; margin: 12px 0 0; }

/* Hero */
.ft-esim-hero { background: var(--ft-navy); color: #fff; }
.ft-esim-hero__inner { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; padding-top: 56px; padding-bottom: 64px; }
.ft-esim-hero__text { flex: 999 1 520px; min-width: 0; }
.ft-esim-hero h1 { color: #fff !important; font-size: 52px !important; line-height: 1.1 !important; }
.ft-esim-hero__lead { color: var(--ft-pale) !important; font-size: 22px !important; max-width: 640px; margin: 16px 0 0; }
.ft-esim-pill { display: inline-block; background: var(--ft-orange); color: #fff !important; font-weight: 700; font-size: 17px !important; padding: 6px 14px; border-radius: 999px; margin: 0 0 14px; }
.ft-esim-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.ft-esim-hero__art { flex: 1 1 280px; display: flex; justify-content: center; }
.ft-esim-phone { width: 220px; height: 360px; border: 10px solid var(--ft-pale); border-radius: 36px; background: #fff; color: var(--ft-navy); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; box-sizing: border-box; }
.ft-esim-phone strong { font-size: 20px; }
.ft-esim-phone span { font-size: 16px; color: var(--ft-muted); }
.ft-esim-phone .ft-esim-phone__ok { color: #15803D; font-weight: 700; }

/* Facts */
.ft-esim-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; padding-top: 36px; }
.ft-esim-fact { background: var(--ft-soft); border-radius: var(--ft-radius); padding: 20px 22px; }
.ft-esim-fact span { display: block; font-size: 17px; color: var(--ft-muted); }
.ft-esim-fact strong { display: block; font-size: 30px; line-height: 1.25; color: var(--ft-navy); }
.ft-esim-info { grid-column: 1 / -1; display: flex; gap: 14px; align-items: flex-start; border: 2px solid var(--ft-link); background: #EFF6FF; border-radius: var(--ft-radius); padding: 18px 22px; color: var(--ft-link); }
.ft-esim-info svg { flex: none; margin-top: 2px; }
.ft-esim-info p { margin: 0; }
.ft-esim-info strong { color: var(--ft-navy); }

/* Tour guests */
.ft-esim-guests { border: 3px solid #15803D; background: #F0FDF4; border-radius: 18px; padding: 30px 32px; display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; }
.ft-esim-guests__text { flex: 999 1 520px; }
.ft-esim-guests h2 { color: #14532D !important; }
.ft-esim-guests__text p { margin: 0; font-size: 20px; }
.ft-esim-guests__text p.ft-esim-small { margin-top: 12px; }
.ft-esim-guests__list { flex: 1 1 260px; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ft-esim-guests__list li, .ft-esim-countries li { display: flex; gap: 10px; align-items: flex-start; margin: 0; }
.ft-esim-guests__list svg, .ft-esim-countries svg { flex: none; margin-top: 4px; color: #15803D; }

/* Video */
.ft-esim-video { max-width: 900px; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: var(--ft-navy); }
.ft-esim-video__placeholder, .ft-esim-video__play { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.ft-esim-video__placeholder p { color: #fff !important; font-size: 22px; font-weight: 700; margin: 0; }
.ft-esim-video__play { border: 0; padding: 0; cursor: pointer; background-color: #000; background-size: cover; background-position: center; }
.ft-esim-video__icon { width: 84px; height: 84px; border-radius: 50%; background: var(--ft-orange); display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(0,0,0,.3); }
.ft-esim-video iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Steps */
.ft-esim-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.ft-esim-steps li { border: 1px solid var(--ft-line); border-radius: var(--ft-radius); padding: 22px; margin: 0; }
.ft-esim-steps h3 { font-size: 23px !important; margin: 12px 0 6px !important; }
.ft-esim-steps p { margin: 0; }
.ft-esim-num { display: inline-flex; width: 44px; height: 44px; border-radius: 50%; background: var(--ft-orange); color: #fff; font-weight: 700; font-size: 22px; align-items: center; justify-content: center; }

/* Countries */
.ft-esim-search { display: flex; flex-direction: column; gap: 6px; max-width: 460px; margin-bottom: 16px; }
.ft-esim-search label { font-weight: 700; }
.ft-esim-search input { font-size: 20px !important; padding: 12px 16px !important; border: 2px solid var(--ft-navy) !important; border-radius: 10px !important; min-height: 52px; box-sizing: border-box; width: 100%; }
.ft-esim-regions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.ft-esim-region { font-size: 18px !important; font-weight: 700; padding: 10px 18px; min-height: 46px; border-radius: 999px; cursor: pointer; border: 2px solid var(--ft-navy); background: #fff; color: var(--ft-navy) !important; }
.ft-esim-region[aria-pressed="true"] { background: var(--ft-navy); color: #fff !important; }
.ft-esim-count { font-weight: 700; color: var(--ft-navy) !important; margin: 0 0 10px; }
.ft-esim-countries { background: var(--ft-soft); border-radius: var(--ft-radius); padding: 20px 22px; }
.ft-esim-countries ul { list-style: none; margin: 0; padding: 0; columns: 4 210px; column-gap: 24px; }
.ft-esim-countries li { break-inside: avoid; padding: 3px 0; }
.ft-esim-countries li[hidden] { display: none; }
.ft-esim-none { margin: 0; }

/* Phone + FAQ */
.ft-esim-two { display: flex; flex-wrap: wrap; gap: 32px; }
.ft-esim-two > div { flex: 1 1 460px; min-width: 0; }
.ft-esim-faq { display: flex; flex-direction: column; gap: 10px; }
.ft-esim-faq details { border: 1px solid var(--ft-line); border-radius: 12px; }
.ft-esim-faq summary { cursor: pointer; padding: 14px 18px; font-weight: 700; color: var(--ft-navy); min-height: 24px; list-style-position: inside; }
.ft-esim-faq details p { margin: 0; padding: 0 18px 16px; }

/* Video + buy box side by side, same height (stacked on phones) */
.ft-esim-watchbuy { display: flex; flex-wrap: wrap; column-gap: 32px; row-gap: 0; align-items: stretch; }
.ft-esim-watch { display: contents; }
.ft-esim-watchbuy .ft-esim-watch > h2 { flex: 0 0 100%; }
.ft-esim-watchbuy .ft-esim-video { flex: 999 1 560px; min-width: 0; }
.ft-esim-watchbuy .ft-esim-buy__box { flex: 1 1 340px; scroll-margin-top: 24px; display: flex; flex-direction: column; }
.ft-esim-watchbuy .ft-esim-guestnote { margin-top: auto; }
.ft-esim-watchbuy .ft-esim-soon { margin-bottom: 12px; }
@media (min-width: 960px) {
	.ft-esim-watchbuy .ft-esim-buy__box { padding: 18px 22px; }
	.ft-esim-watchbuy .ft-esim-buy__price { font-size: 38px !important; }
	.ft-esim-watchbuy .ft-esim-buy__box .ft-esim-muted { font-size: 16px !important; line-height: 1.45; }
	.ft-esim-watchbuy .ft-esim-qty { margin-top: 10px; }
	.ft-esim-watchbuy .ft-esim-qty > span { font-size: 17px; line-height: 1.3; }
	.ft-esim-watchbuy .ft-esim-qty button { width: 42px; height: 42px; }
	.ft-esim-watchbuy .ft-esim-small { margin-top: 6px; font-size: 16px !important; }
	.ft-esim-watchbuy .ft-esim-buybtn { margin-top: 10px; min-height: 50px; padding: 10px 16px; }
	.ft-esim-watchbuy .ft-esim-guestnote { padding: 10px 12px; font-size: 15px; line-height: 1.45; }
}
@media (max-width: 959px) {
	.ft-esim-watchbuy { row-gap: 24px; }
	.ft-esim-watchbuy .ft-esim-guestnote { margin-top: 20px; }
}

/* Buy box */
.ft-esim-buy__box { width: 100%; max-width: 520px; border: 2px solid var(--ft-navy); border-radius: 16px; padding: 28px; box-sizing: border-box; }
.ft-esim-buy__box .ft-esim-muted { margin: 0; font-size: 17px !important; }
.ft-esim-buy__price { font-size: 48px !important; font-weight: 700; line-height: 1.1; margin: 0 !important; }
.ft-esim-qty { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.ft-esim-qty > span { font-weight: 700; color: var(--ft-navy); }
.ft-esim-qty > div { display: flex; align-items: center; border: 2px solid var(--ft-navy); border-radius: 10px; overflow: hidden; }
.ft-esim-qty button { width: 48px; height: 48px; border: 0; background: #fff; color: var(--ft-navy) !important; font-size: 26px !important; font-weight: 700; cursor: pointer; }
.ft-esim-qty__n { min-width: 44px; text-align: center; font-size: 22px; font-weight: 700; }
.ft-esim-buybtn { margin-top: 14px; font-size: 22px !important; }
.ft-esim-soon { margin-top: 14px; padding: 14px 16px; background: #FEF3C7; border: 2px solid #F59E0B; border-radius: 10px; font-size: 17px; }
.ft-esim-guestnote { margin-top: 20px; padding: 14px 16px; background: #F0FDF4; border: 2px solid #15803D; border-radius: 10px; font-size: 17px; }
.ft-esim-guestnote strong { color: #14532D; }

/* Fine print */
.ft-esim .ft-esim-section:last-child { padding-bottom: 64px; }
.ft-esim-fine { border: 1px solid var(--ft-line); border-radius: var(--ft-radius); padding: 24px 28px; }
.ft-esim-fine h2 { font-size: 26px !important; }
.ft-esim-fine ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.ft-esim-fine li { font-size: 17px !important; color: #374151; }

@media (max-width: 767px) {
	.ft-esim-hero h1 { font-size: 38px !important; }
	.ft-esim-hero__lead { font-size: 20px !important; }
	.ft-esim-hero__ctas .ft-btn { width: 100%; }
	.ft-esim-hero__art { display: none; }
	.ft-esim h2 { font-size: 28px !important; }
	.ft-esim-guests { padding: 22px 20px; }
	.ft-esim-fine { padding: 20px; }
}

/* Space between sections (.ft-wrap's padding would otherwise cancel padding-top) */
.ft-esim > .ft-esim-section { margin-top: 44px; }
.ft-esim > .ft-esim-facts { margin-top: 32px; }
.ft-esim > section:last-child { margin-bottom: 64px; }
@media (max-width: 767px) { .ft-esim > .ft-esim-section { margin-top: 36px; } }

/* "Included with every tour" box (beside the video) */
.ft-esim-get__title { font-size: 30px !important; font-weight: 700; line-height: 1.15; color: var(--ft-navy) !important; margin: 4px 0 8px !important; }
.ft-esim-get__text { margin: 12px 0 0 !important; font-size: 18px !important; }
.ft-esim-get .ft-btn--orange { margin-top: auto; }
.ft-esim-get .ft-esim-get__call { margin-top: 10px; font-size: 18px !important; }
@media (max-width: 959px) { .ft-esim-get .ft-btn--orange { margin-top: 18px; } }
/* Data-only box beside the video (replaces "Included with every tour" box) */
.ft-esim-dataonly { border-color: var(--ft-link); background: #EFF6FF; }
.ft-esim-dataonly__head { display: flex; align-items: center; gap: 8px; margin: 0 !important; color: var(--ft-link); font-weight: 700; font-size: 17px !important; }
.ft-esim-dataonly__head svg { flex: none; }
.ft-esim-dataonly .ft-esim-get__text { margin-top: 4px !important; }
.ft-esim-dataonly__apps { list-style: none; margin: 14px 0 0 !important; padding: 0 !important; display: flex; flex-wrap: wrap; gap: 8px; }
.ft-esim-dataonly__apps li { margin: 0 !important; padding: 6px 14px; background: #fff; border: 1px solid #BFDBFE; border-radius: 999px; font-size: 17px; font-weight: 600; color: var(--ft-navy); }
.ft-esim-dataonly .ft-esim-get__call { margin-top: auto; background: #fff; }
@media (min-width: 960px) { .ft-esim-dataonly .ft-esim-get__call { margin-top: auto; } }
@media (max-width: 959px) { .ft-esim-dataonly .ft-esim-get__call { margin-top: 18px; } }
/* Self-hosted how-to video */
.ft-esim-video__file { display: block; width: 100%; height: 100%; object-fit: contain; background: #0B3A66; border: 0; }
