/**
 * Turnaa eSIM Reseller — front-end layouts.
 *
 * Nothing here sets a background or a font. Every value is inherited from the
 * host theme, so a placement looks like part of the page it sits on. The site
 * owner has three levers: --tes-accent (colour), the data-size attribute
 * (sm/md/lg) and their own theme.
 */

.tes {
	--tes-accent: currentColor;
	--tes-line: color-mix(in srgb, currentColor 15%, transparent);
	--tes-soft: color-mix(in srgb, var(--tes-accent) 7%, transparent);
	--tes-muted: color-mix(in srgb, currentColor 60%, transparent);
	--tes-radius: 8px;
	--p: 13px;
	--fs: 14.5px;
	--min: 168px;
	--gap: 10px;
	--lead: 16px;
	font: inherit;
	color: inherit;
}

/* Browsers without color-mix still need usable lines. */
@supports not (color: color-mix(in srgb, red 50%, transparent)) {
	.tes {
		--tes-line: rgba(128, 128, 128, .3);
		--tes-muted: rgba(128, 128, 128, .9);
		--tes-soft: transparent;
	}
}

.tes[data-size="sm"] { --p: 9px;  --fs: 13px; --min: 132px; --gap: 7px;  --lead: 14px; }
.tes[data-size="lg"] { --p: 18px; --fs: 16px; --min: 210px; --gap: 14px; --lead: 19px; }

.tes *,
.tes *::before,
.tes *::after { box-sizing: border-box; }

.tes a { color: inherit; text-decoration: none; }
.tes a:focus-visible { outline: 2px solid var(--tes-accent); outline-offset: 2px; }

.tes-byline { margin-top: 9px; font-size: 11.5px; color: var(--tes-muted); }

/* ── grid / carousel cards ── */
.tes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(var(--min), 1fr)); gap: var(--gap); }
.tes-card { display: flex; flex-direction: column; gap: 1px; padding: var(--p);
	border: 1px solid var(--tes-line); border-radius: var(--tes-radius); transition: border-color .15s; }
.tes-card:hover { border-color: var(--tes-accent); }
.tes-card .d { font-size: var(--lead); font-weight: 600; }
.tes-card .v { font-size: calc(var(--fs) - 2px); color: var(--tes-muted); }
.tes-card .p { margin-top: 7px; font-size: var(--lead); font-weight: 600; color: var(--tes-accent); }
.tes-card .b { margin-top: 9px; padding: 6px; text-align: center; font-weight: 600;
	font-size: calc(var(--fs) - 1px); color: var(--tes-accent);
	border: 1px solid var(--tes-accent); border-radius: var(--tes-radius); }

.tes-scroll { display: flex; gap: var(--gap); overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.tes-scroll .tes-card { flex: 0 0 var(--min); scroll-snap-align: start; }

/* ── list ── */
.tes-list { border: 1px solid var(--tes-line); border-radius: var(--tes-radius); overflow: hidden; }
.tes-row { display: flex; align-items: center; gap: 12px; padding: calc(var(--p) - 2px) var(--p); font-size: var(--fs); }
.tes-row + .tes-row { border-top: 1px solid var(--tes-line); }
.tes-row .d { font-weight: 600; }
.tes-row .v { font-size: calc(var(--fs) - 2px); color: var(--tes-muted); }
.tes-row .p { margin-left: auto; font-weight: 600; color: var(--tes-accent); }

/* ── table ── */
.tes-table { width: 100%; border-collapse: collapse; font-size: var(--fs); }
.tes-table th,
.tes-table td { text-align: left; padding: calc(var(--p) - 3px) var(--p); border-bottom: 1px solid var(--tes-line); }
.tes-table th { font-size: calc(var(--fs) - 2px); font-weight: 600; color: var(--tes-muted);
	text-transform: uppercase; letter-spacing: .04em; }
.tes-table td.pr { font-weight: 600; color: var(--tes-accent); }
.tes-table td.bu { text-align: right; }
.tes-table td.bu a { display: inline-block; padding: 4px 12px; font-size: calc(var(--fs) - 2px); font-weight: 600;
	color: var(--tes-accent); border: 1px solid var(--tes-accent); border-radius: var(--tes-radius); }
.tes-table tr:last-child td { border-bottom: 0; }

/* ── hero ── */
.tes-hero { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: calc(var(--p) + 4px);
	border: 1px solid var(--tes-line); border-top: 3px solid var(--tes-accent); border-radius: var(--tes-radius); }
.tes-hero .left { display: flex; flex-direction: column; }
.tes-hero .tag { font-size: calc(var(--fs) - 3px); font-weight: 700; letter-spacing: .05em;
	text-transform: uppercase; color: var(--tes-accent); }
.tes-hero .d { font-size: calc(var(--lead) + 5px); font-weight: 600; line-height: 1.15; }
.tes-hero .v { font-size: calc(var(--fs) - 1px); color: var(--tes-muted); }
.tes-hero .right { margin-left: auto; text-align: right; display: flex; flex-direction: column; align-items: flex-end; }
.tes-hero .p { font-size: calc(var(--lead) + 7px); font-weight: 600; color: var(--tes-accent); line-height: 1; }
.tes-hero .cta { margin-top: 8px; padding: 7px 16px; font-weight: 600; font-size: var(--fs);
	color: var(--tes-accent); border: 1px solid var(--tes-accent); border-radius: var(--tes-radius); }

/* ── accordion ── */
.tes-acc { border: 1px solid var(--tes-line); border-radius: var(--tes-radius); overflow: hidden; font-size: var(--fs); }
.tes-acc summary { display: flex; justify-content: space-between; gap: 10px; padding: calc(var(--p) - 2px) var(--p);
	cursor: pointer; font-weight: 600; list-style: none; }
.tes-acc summary::-webkit-details-marker { display: none; }
.tes-acc summary b { color: var(--tes-accent); font-weight: 600; }
.tes-acc .body { padding: 0 var(--p) calc(var(--p) - 4px); }
.tes-acc .body .tes-row { padding-left: 0; padding-right: 0; }

/* ── strip ── */
.tes-strip { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: var(--fs);
	padding: calc(var(--p) - 2px) var(--p); background: var(--tes-soft);
	border: 1px solid var(--tes-line); border-left: 3px solid var(--tes-accent); border-radius: var(--tes-radius); }
.tes-strip .t { font-weight: 600; }
.tes-strip .m { color: var(--tes-muted); }
.tes-strip .go { margin-left: auto; font-weight: 600; color: var(--tes-accent); white-space: nowrap; }

/* ── note ── */
.tes-note { padding: var(--p) calc(var(--p) + 4px); font-size: var(--fs); background: var(--tes-soft);
	border-left: 3px solid var(--tes-accent); border-radius: 0 var(--tes-radius) var(--tes-radius) 0; }
.tes-note .h { font-weight: 600; margin-bottom: 3px; }
.tes-note .m { color: var(--tes-muted); font-size: calc(var(--fs) - 1px); }
.tes-note a { color: var(--tes-accent); font-weight: 600; border-bottom: 1px solid var(--tes-accent); }

/* ── inline / text ── */
.tes-inline { color: var(--tes-accent); font-weight: 600; border-bottom: 1.5px solid var(--tes-accent); }
.tes-text { font-size: var(--fs); }
.tes-text a { color: var(--tes-accent); font-weight: 600; }

/* ── hover panel ── */
.tes-pop { position: relative; display: inline-block; }
.tes-pop .trigger { color: var(--tes-accent); font-weight: 600; border-bottom: 1.5px dotted var(--tes-accent); }
.tes-pop .panel { position: absolute; left: 0; top: calc(100% + 8px); z-index: 9; width: 252px;
	padding: 12px 14px; border: 1px solid var(--tes-line); border-radius: var(--tes-radius);
	background: Canvas; box-shadow: 0 12px 28px -14px rgba(0, 0, 0, .4);
	opacity: 0; visibility: hidden; transform: translateY(-4px); transition: .16s; }
.tes-pop:hover .panel,
.tes-pop:focus-within .panel { opacity: 1; visibility: visible; transform: none; }
.tes-pop .panel .r { display: flex; justify-content: space-between; padding: 3px 0; font-size: 13.5px; }
.tes-pop .panel .r + .r { border-top: 1px solid var(--tes-line); }
.tes-pop .panel .r b { color: var(--tes-accent); }

/* ── banner ── */
.tes-banner { display: flex; align-items: center; justify-content: space-between; gap: 16px;
	padding: calc(var(--p) + 5px) calc(var(--p) + 8px); background: var(--tes-soft);
	border: 1px solid var(--tes-line); border-radius: var(--tes-radius); }
.tes-banner .left { display: flex; flex-direction: column; }
.tes-banner .h { font-size: calc(var(--lead) + 3px); font-weight: 600; line-height: 1.3; }
.tes-banner .s { margin-top: 3px; font-size: calc(var(--fs) - 1px); color: var(--tes-muted); }
.tes-banner .cta { padding: 8px 17px; font-weight: 600; font-size: var(--fs); white-space: nowrap;
	color: var(--tes-accent); border: 1px solid var(--tes-accent); border-radius: var(--tes-radius); }

/* ── badge / fab ── */
.tes-badge { display: inline-flex; align-items: center; gap: 7px; padding: 4px 12px;
	font-size: calc(var(--fs) - 1px); border: 1px solid var(--tes-line); border-radius: 999px; }
.tes-badge b { color: var(--tes-accent); }
.tes-fab { display: inline-flex; align-items: center; gap: 9px; padding: 9px 17px;
	font-size: var(--fs); font-weight: 600; color: var(--tes-accent); background: var(--tes-soft);
	border: 1px solid var(--tes-accent); border-radius: 999px; box-shadow: 0 8px 20px -12px rgba(0, 0, 0, .5); }

/* ── sticky bar ── */
.tes-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
	padding: calc(var(--p) - 2px) var(--p); background: var(--tes-soft);
	border-top: 2px solid var(--tes-accent); border-radius: var(--tes-radius); }
.tes-bar .txt { display: flex; flex-direction: column; }
.tes-bar .t { font-weight: 600; font-size: var(--fs); }
.tes-bar .m { font-size: calc(var(--fs) - 2px); color: var(--tes-muted); }
.tes-bar .cta { margin-left: auto; padding: 6px 14px; font-weight: 600; font-size: calc(var(--fs) - 1px);
	color: var(--tes-accent); border: 1px solid var(--tes-accent); border-radius: var(--tes-radius); }
.tes-bar .tes-x { border: 0; background: none; font: inherit; font-size: 20px; line-height: 1;
	cursor: pointer; color: var(--tes-muted); padding: 0 2px; }

/* ── destinations ── */
.tes-dest { display: grid; grid-template-columns: repeat(auto-fit, minmax(calc(var(--min) - 40px), 1fr)); gap: var(--gap); }
.tes-dest a { display: flex; align-items: center; gap: 9px; padding: calc(var(--p) - 3px) var(--p);
	font-size: var(--fs); border: 1px solid var(--tes-line); border-radius: var(--tes-radius); transition: border-color .15s; }
.tes-dest a:hover { border-color: var(--tes-accent); }
.tes-dest .n { font-weight: 600; }
.tes-dest .p { margin-left: auto; font-size: calc(var(--fs) - 2px); font-weight: 600; color: var(--tes-accent); }

/* ── search ── */
.tes-search { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 8px;
	border: 1px solid var(--tes-line); border-radius: var(--tes-radius); }
.tes-search input { flex: 1; min-width: 150px; padding: 8px 10px; font: inherit; font-size: var(--fs);
	color: inherit; background: transparent; border: 1px solid var(--tes-line); border-radius: var(--tes-radius); }
.tes-search .go { padding: 8px 15px; font: inherit; font-size: var(--fs); font-weight: 600; cursor: pointer;
	color: var(--tes-accent); background: transparent; border: 1px solid var(--tes-accent); border-radius: var(--tes-radius); }

/* ── steps ── */
.tes-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--gap); align-items: start; }
.tes-steps .s { font-size: calc(var(--fs) - 1px); }
.tes-steps .n { display: flex; align-items: center; justify-content: center; width: 26px; height: 26px;
	margin-bottom: 7px; font-size: 13px; font-weight: 700; color: var(--tes-accent);
	border: 1.5px solid var(--tes-accent); border-radius: 50%; }
.tes-steps .t { font-weight: 600; margin-bottom: 2px; }
.tes-steps .m { color: var(--tes-muted); }

@media (prefers-reduced-motion: reduce) {
	.tes * { transition: none !important; }
}

.tes-steps-cta{margin:calc(var(--p) + 2px) 0 0;font-size:var(--fs)}
.tes-steps-cta a{color:var(--tes-accent);font-weight:600}
