/* Dependent tire-size finder (T-07W). Identity: red #dd3333 (hover #b82828, text on light #b82828), white sheet, radius 16px. */
.ct-finder-modal[hidden] { display: none; }
.ct-finder-modal {
	position: fixed; inset: 0; z-index: 100050;
	display: flex; align-items: flex-end; justify-content: center;
}
.ct-finder-backdrop {
	position: absolute; inset: 0; background: rgba(0, 0, 0, .5); opacity: 0;
	transition: opacity .22s ease;
}
.ct-finder-modal.is-open .ct-finder-backdrop { opacity: 1; }
.ct-finder-sheet {
	position: relative; width: 100%; max-width: 560px; max-height: 88vh; max-height: 88dvh;
	display: flex; flex-direction: column;
	background: #fff; color: #222; border-radius: 16px 16px 0 0;
	box-shadow: 0 -8px 32px rgba(0, 0, 0, .25);
	padding-bottom: env(safe-area-inset-bottom, 0px);
	transform: translateY(100%); transition: transform .24s ease;
	overscroll-behavior: contain; outline: none;
}
.ct-finder-modal.is-open .ct-finder-sheet { transform: none; }
@media (min-width: 640px) {
	.ct-finder-modal { align-items: center; }
	.ct-finder-sheet { border-radius: 16px; }
}
html.ct-finder-open, body.ct-finder-open { overflow: hidden; }
html.ct-finder-open { padding-inline-end: var(--ct-sbw, 0px); }

/* shared component */
.ct-finder-sheet, .ct-finder { font-family: var(--ct-font); line-height: 1.4; }
.ct-finder--inline {
	background: #fff; color: #222; border: 1px solid #e6e6e6; border-radius: 16px;
	box-shadow: 0 6px 24px rgba(0, 0, 0, .08); max-width: 560px; margin-inline: auto; overflow: hidden;
}
.ct-f-head { padding: 8px 14px 6px; flex: 0 0 auto; }
.ct-f-grab { display: block; width: 40px; height: 4px; border-radius: 4px; background: #d6d6d6; margin: 2px auto 8px; }
.ct-f-bar { display: flex; align-items: center; gap: 8px; }
.ct-f-title { flex: 1 1 auto; margin: 0; font-size: 18px; font-weight: 700; line-height: 1.3; text-align: center; color: #222; }
.ct-f-title:focus, .ct-f-step:focus, .ct-f-msg:focus { outline: none; }
.ct-f-btn {
	flex: 0 0 auto; width: 44px; height: 44px; padding: 0; display: inline-flex; align-items: center; justify-content: center;
	border: 0; border-radius: 12px; background: #f3f3f3; color: #222; cursor: pointer;
}
.ct-f-btn:hover { background: #e9e9e9; }
html[dir="rtl"] .ct-f-back svg, body.rtl .ct-f-back svg { transform: none; }
html:not([dir="rtl"]) .ct-f-back svg { transform: scaleX(-1); }
.ct-f-prog { display: flex; gap: 6px; margin: 10px 0 6px; }
.ct-f-prog span { flex: 1; height: 5px; border-radius: 5px; background: #e4e4e4; }
.ct-f-prog span.is-on { background: #dd3333; }
.ct-f-meta { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: #555; min-height: 22px; }
.ct-f-sum { font-weight: 700; font-size: 16px; color: #b82828; direction: ltr; unicode-bidi: isolate; letter-spacing: .02em; }
.ct-f-body { flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 6px 14px 16px; }
.ct-f-step { margin: 8px 0 12px; font-size: 17px; font-weight: 700; color: #222; text-align: start; }
.ct-f-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ct-fchip {
	min-height: 56px; padding: 6px 4px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
	border: 1.5px solid #dcdcdc; border-radius: 12px; background: #fff; color: #222; cursor: pointer; font: inherit;
	transition: border-color .15s, background-color .15s, color .15s; -webkit-tap-highlight-color: transparent;
}
.ct-fchip-v { font-size: 19px; font-weight: 700; line-height: 1.2; }
.ct-fchip-n { font-size: 12px; color: #595959; line-height: 1.2; }
.ct-fchip:hover, .ct-fchip:active { border-color: #dd3333; background: #fff5f5; color: #b82828; }
.ct-fchip:hover .ct-fchip-n, .ct-fchip:active .ct-fchip-n { color: #b82828; }
.ct-f-size { display: block; text-align: center; direction: ltr; unicode-bidi: isolate; font-size: 34px; font-weight: 700; color: #b82828; margin: 6px 0 16px; }
.ct-f-msg { text-align: center; margin: 18px 0; font-size: 15px; color: #444; }
.ct-f-cta {
	display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; margin-top: 10px; padding: 10px 16px;
	border: 2px solid #dd3333; border-radius: 12px; background: #dd3333; color: #fff; font: inherit; font-size: 17px; font-weight: 700;
	text-decoration: none; cursor: pointer; box-sizing: border-box;
}
.ct-f-cta:hover, .ct-f-cta:focus { background: #b82828; border-color: #b82828; color: #fff; }
.ct-f-cta--ghost { background: #fff; color: #b82828; }
.ct-f-cta--ghost:hover, .ct-f-cta--ghost:focus { background: #fff5f5; color: #b82828; border-color: #b82828; }
.ct-f-cta--wa { background: #1a7f43; border-color: #1a7f43; }
.ct-f-cta--wa:hover, .ct-f-cta--wa:focus { background: #146636; border-color: #146636; }
.ct-f-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ct-finder button:focus-visible, .ct-finder a:focus-visible, .ct-finder-sheet button:focus-visible, .ct-finder-sheet a:focus-visible {
	outline: 3px solid #dd3333; outline-offset: 2px;
}
.ct-finder--inline .ct-f-body { max-height: none; }
.ct-finder--inline .ct-f-head { padding-top: 12px; }

@media (max-width: 340px) { .ct-f-grid { grid-template-columns: repeat(2, 1fr); } }
@media (prefers-reduced-motion: reduce) {
	.ct-finder-backdrop, .ct-finder-sheet, .ct-fchip { transition: none !important; }
}
