/* Sea Maritime Core — forms, coverage map, WhatsApp button. Uses theme tokens with safe fallbacks. */
.smg-form-wrap {
	--smgf-ink: var(--wp--preset--color--ink, #0B1B2B);
	--smgf-slate: var(--wp--preset--color--slate, #4B5D73);
	--smgf-line: var(--wp--preset--color--line, #DCE4EE);
	--smgf-mist: var(--wp--preset--color--mist, #F3F6FA);
	--smgf-foam: var(--wp--preset--color--foam, #E7F1FB);
	--smgf-action: var(--wp--preset--color--action, #1668C7);
	--smgf-danger: #C0392B;
	scroll-margin-top: 140px;
}
.smg-form { display: grid; gap: 1.1rem; margin: 0; }
.smg-form > * { margin: 0 !important; }
.smg-fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 1.1rem; min-width: 0; }
.smg-fieldset + .smg-fieldset { border-top: 1px solid var(--smgf-line); padding-top: 1.5rem; margin-top: .4rem !important; }
.smg-fieldset legend {
	font-family: var(--wp--preset--font-family--heading, inherit);
	font-weight: 700;
	font-size: .78rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--smgf-action);
	padding: 0;
	margin-bottom: .1rem;
}
.smg-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.smg-row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 640px) { .smg-row, .smg-row--3 { grid-template-columns: minmax(0, 1fr); } }
.smg-field { margin: 0; display: flex; flex-direction: column; gap: .45rem; min-width: 0; }
.smg-field label, .smg-label {
	font-size: .875rem;
	font-weight: 600;
	color: var(--smgf-ink);
	font-family: var(--wp--preset--font-family--heading, inherit);
}
.smg-req { color: var(--smgf-action); }
:is(.smg-form, .smg-rfq) input[type="text"],
:is(.smg-form, .smg-rfq) input[type="email"],
:is(.smg-form, .smg-rfq) input[type="tel"],
:is(.smg-form, .smg-rfq) input[type="date"],
:is(.smg-form, .smg-rfq) input[type="number"],
:is(.smg-form, .smg-rfq) select,
:is(.smg-form, .smg-rfq) textarea {
	width: 100%;
	box-sizing: border-box;
	font: inherit;
	font-size: 1rem;
	color: var(--smgf-ink);
	background: #fff;
	border: 1.5px solid var(--smgf-line);
	border-radius: 10px;
	padding: .8rem .95rem;
	min-height: 50px;
	transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
	-webkit-appearance: none;
	appearance: none;
}
:is(.smg-form, .smg-rfq) textarea { min-height: 130px; resize: vertical; line-height: 1.55; }
:is(.smg-form, .smg-rfq) select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234B5D73' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right .85rem center;
	background-size: 18px;
	padding-right: 2.6rem;
}
:is(.smg-form, .smg-rfq) input[type="number"] { -moz-appearance: textfield; }
:is(.smg-form, .smg-rfq) input::placeholder, :is(.smg-form, .smg-rfq) textarea::placeholder { color: #93A1B2; }
:is(.smg-form, .smg-rfq) :is(input, select, textarea):hover { border-color: #BAC8D8; }
:is(.smg-form, .smg-rfq) :is(input, select, textarea):focus {
	outline: none;
	border-color: var(--smgf-action);
	box-shadow: 0 0 0 4px rgba(22, 104, 199, .14);
}
:is(.smg-form, .smg-rfq) [aria-invalid="true"] { border-color: var(--smgf-danger) !important; background: #FFF8F7; }
.smg-field__error { color: var(--smgf-danger); font-size: .82rem; font-weight: 500; }

.smg-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.smg-chip { position: relative; cursor: pointer; }
.smg-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.smg-chip span {
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	padding: .55rem .85rem;
	border-radius: 999px;
	border: 1.5px solid var(--smgf-line);
	background: #fff;
	font-size: .875rem;
	font-weight: 500;
	color: var(--smgf-ink);
	transition: all .18s ease;
	user-select: none;
}
.smg-chip span::before {
	content: "";
	width: 14px; height: 14px;
	border-radius: 4px;
	border: 1.5px solid #AEBBCB;
	background: #fff center / 10px no-repeat;
	transition: all .18s ease;
}
.smg-chip:hover span { border-color: #BAC8D8; }
.smg-chip input:checked + span { border-color: var(--smgf-action); background: var(--smgf-foam); color: #0B3A6B; }
.smg-chip input:checked + span::before {
	background-color: var(--smgf-action);
	border-color: var(--smgf-action);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}
.smg-chip input:focus-visible + span { box-shadow: 0 0 0 4px rgba(22, 104, 199, .18); }

.smg-check { display: flex !important; gap: .7rem; align-items: flex-start; font-weight: 400 !important; font-size: .9rem !important; color: var(--smgf-slate) !important; line-height: 1.5; cursor: pointer; }
.smg-check input { margin: .2rem 0 0; width: 18px; height: 18px; flex: none; accent-color: var(--smgf-action); }
.smg-check a { color: var(--smgf-action); }

.smg-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin-top: .4rem !important; }
.smg-submit {
	border: 0;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: .6rem;
	background: var(--smgf-action);
	color: #fff;
	border-radius: 10px;
	padding: 1rem 1.6rem;
	font-family: var(--wp--preset--font-family--heading, inherit);
	font-weight: 700;
	font-size: .95rem;
	box-shadow: 0 10px 24px -12px rgba(22, 104, 199, .75);
	transition: background-color .2s ease, transform .2s ease;
}
.smg-submit:hover { background: var(--wp--preset--color--brand, #004080); transform: translateY(-1px); }
.smg-submit:focus-visible { outline: 2px solid var(--wp--preset--color--sky, #7CC6F4); outline-offset: 3px; }
.smg-submit[disabled] { opacity: .7; cursor: progress; transform: none; }
.smg-submit.is-busy .smg-submit__label::after { content: "…"; }
.smg-actions__note { font-size: .85rem; color: var(--smgf-slate); }

.smg-notice {
	display: flex;
	flex-direction: column;
	gap: .25rem;
	border-radius: 12px;
	padding: 1rem 1.2rem;
	margin-bottom: 1.5rem;
	font-size: .95rem;
	outline: none;
}
.smg-notice--success { background: #ECFDF3; border: 1px solid #ABEFC6; color: #085D3A; }
.smg-notice--error { background: #FEF3F2; border: 1px solid #FECDCA; color: #912018; }

.smg-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Coverage map ---------- */
.smg-map-figure { margin: 0; }
.smg-map { width: 100%; height: auto; display: block; overflow: visible; }
.smg-map__land { fill: none; stroke: rgba(255, 255, 255, .24); stroke-width: 3.4; stroke-linecap: round; }
.smg-map__hl { fill: none; stroke: var(--wp--preset--color--sky, #7CC6F4); stroke-width: 4.6; stroke-linecap: round; }
.smg-map__route-base { fill: none; stroke: rgba(124, 198, 244, .16); stroke-width: 2; }
.smg-map__route {
	fill: none;
	stroke: url(#smg-route-grad);
	stroke-width: 2.4;
	stroke-linecap: round;
	stroke-dasharray: 7 9;
	animation: smg-dash 30s linear infinite;
}
@keyframes smg-dash { to { stroke-dashoffset: -640; } }
.smg-map__dot { fill: #fff; }
.smg-map__ring { fill: rgba(124, 198, 244, .18); stroke: var(--wp--preset--color--sky, #7CC6F4); stroke-width: 1.5; }
.smg-map__pulse { fill: none; stroke: var(--wp--preset--color--sky, #7CC6F4); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: smg-map-pulse 2.8s ease-out infinite; }
.smg-map__port--ae .smg-map__pulse { animation-delay: .9s; }
.smg-map__port--lk .smg-map__pulse { animation-delay: 1.8s; }
@keyframes smg-map-pulse { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(3.2); opacity: 0; } }
.smg-map__label { fill: #fff; font: 800 16px/1 var(--wp--preset--font-family--heading, sans-serif); letter-spacing: .14em; }
.smg-map__sub { fill: rgba(255, 255, 255, .62); font: 500 13px/1 var(--wp--preset--font-family--body, sans-serif); }
.smg-map__waypoint circle { fill: rgba(255, 255, 255, .5); }
.smg-map__waypoint text { fill: rgba(255, 255, 255, .45); font: 500 12px/1 var(--wp--preset--font-family--body, sans-serif); letter-spacing: .06em; }
@media (max-width: 700px) {
	.smg-map__label { font-size: 26px; }
	.smg-map__sub { display: none; }
	.smg-map__waypoint text { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
	.smg-map__route, .smg-map__pulse { animation: none; }
}

/* ---------- WhatsApp button ---------- */
.smg-wa {
	position: fixed;
	right: clamp(14px, 2.5vw, 24px);
	bottom: clamp(14px, 2.5vw, 24px);
	z-index: 80;
	display: inline-flex;
	align-items: center;
	gap: .55rem;
	height: 54px;
	padding: 0 1.15rem 0 .95rem;
	border-radius: 999px;
	background: #1FA855;
	color: #fff !important;
	text-decoration: none !important;
	font-family: var(--wp--preset--font-family--heading, sans-serif);
	font-weight: 700;
	font-size: .9rem;
	box-shadow: 0 14px 30px -12px rgba(8, 60, 30, .55), 0 2px 6px rgba(0, 0, 0, .12);
	transition: transform .25s ease, box-shadow .25s ease, background-color .2s ease;
}
.smg-wa:hover { transform: translateY(-2px); background: #178F47; }
.smg-wa:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.smg-wa svg { width: 26px; height: 26px; flex: none; }
@media (max-width: 600px) {
	.smg-wa { width: 54px; padding: 0; justify-content: center; }
	.smg-wa__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

/* ==========================================================================
   Quotation builder + spare parts catalogue
   ========================================================================== */
.smg-rfq { --smgr-radius: 18px; }
.smg-rfq .smg-notice { margin-bottom: 1.5rem; }
.smg-rfq__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: clamp(1.25rem, 3vw, 2.25rem);
	align-items: start;
}
.smg-rfq__main { display: grid; gap: clamp(1.25rem, 2.5vw, 1.75rem); min-width: 0; }
.smg-rfq__step {
	background: #fff;
	border: 1px solid var(--smgf-line);
	border-radius: var(--smgr-radius);
	padding: clamp(1.25rem, 3vw, 2.25rem);
	display: grid;
	gap: 1.1rem;
	box-shadow: 0 1px 2px rgba(11, 27, 43, .04), 0 10px 30px -22px rgba(11, 27, 43, .25);
	min-width: 0;
}
.smg-rfq__step > * { margin: 0 !important; }
.smg-rfq__head { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: .35rem !important; }
.smg-rfq__head h2 { font-size: clamp(1.25rem, 2vw, 1.5rem) !important; margin: 0 !important; letter-spacing: -.02em; }
.smg-rfq__head p { margin: .25rem 0 0 !important; color: var(--smgf-slate); font-size: .95rem; }
.smg-rfq__num {
	flex: none;
	width: 38px; height: 38px;
	border-radius: 12px;
	display: grid; place-items: center;
	background: linear-gradient(140deg, var(--smgf-action), #0A2540);
	color: #fff;
	font-family: var(--wp--preset--font-family--heading, inherit);
	font-weight: 800;
}
.smg-rfq__hint { color: var(--smgf-slate); font-size: .9rem; margin: -.25rem 0 .25rem !important; }
.smg-field__help { color: var(--smgf-slate); font-size: .8rem; }
.smg-rfq__port-other[hidden] { display: none !important; }

/* Country cards */
.smg-rfq__countries { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.smg-rfq__countries legend {
	font-size: .875rem; font-weight: 600; color: var(--smgf-ink);
	font-family: var(--wp--preset--font-family--heading, inherit);
	margin-bottom: .6rem; padding: 0;
}
.smg-country-card { position: relative; cursor: pointer; display: flex; }
.smg-country-card input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.smg-country-card > span {
	display: grid;
	grid-template-columns: auto 1fr;
	grid-template-rows: auto auto;
	column-gap: .75rem;
	align-items: center;
	padding: .85rem 1rem;
	border: 1.5px solid var(--smgf-line);
	border-radius: 14px;
	background: #fff;
	font-weight: 600;
	font-family: var(--wp--preset--font-family--heading, inherit);
	color: var(--smgf-ink);
	transition: all .18s ease;
	line-height: 1.25;
	flex: 1;
	min-width: 0;
}
.smg-country-card strong {
	grid-row: 1 / span 2;
	width: 40px; height: 40px;
	border-radius: 10px;
	display: grid; place-items: center;
	background: var(--smgf-foam);
	color: var(--smgf-action);
	font-size: .8rem; letter-spacing: .06em;
}
.smg-country-card small { font-weight: 500; font-size: .78rem; color: var(--smgf-slate); font-family: var(--wp--preset--font-family--body, inherit); }
.smg-country-card:hover > span { border-color: #BAC8D8; }
.smg-country-card input:checked + span { border-color: var(--smgf-action); background: var(--smgf-foam); box-shadow: 0 0 0 3px rgba(22, 104, 199, .12); }
.smg-country-card input:checked + span strong { background: var(--smgf-action); color: #fff; }
.smg-country-card input:focus-visible + span { box-shadow: 0 0 0 4px rgba(22, 104, 199, .25); }

/* Service groups */
.smg-rfq__group { display: grid; gap: .7rem; }
.smg-rfq__group + .smg-rfq__group { padding-top: 1.1rem; border-top: 1px dashed var(--smgf-line); }
.smg-rfq__group > h3 {
	margin: 0 !important;
	font-size: .78rem !important;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--smgf-action);
	font-weight: 700;
}
.smg-rfq__items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; align-items: start; }
.smg-svc {
	border: 1.5px solid var(--smgf-line);
	border-radius: 12px;
	background: #fff;
	padding: .7rem .85rem;
	display: flex;
	flex-direction: column;
	gap: .55rem;
	transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.smg-svc:hover { border-color: #BAC8D8; }
.smg-svc.is-on, .smg-svc:has(input[type="checkbox"]:checked) { border-color: var(--smgf-action); background: #F5F9FE; box-shadow: 0 0 0 3px rgba(22, 104, 199, .08); }
.smg-svc__check { display: flex; align-items: flex-start; gap: .65rem; cursor: pointer; font-size: .92rem; line-height: 1.4; color: var(--smgf-ink); }
.smg-svc__check input { width: 18px; height: 18px; margin: .1rem 0 0; flex: none; accent-color: var(--smgf-action); }
.smg-svc__label { font-weight: 500; }
.smg-svc__qty { display: none; align-items: center; flex-wrap: wrap; gap: .45rem; padding-left: 1.75rem; }
.smg-svc.is-on .smg-svc__qty, .smg-svc:has(input[type="checkbox"]:checked) .smg-svc__qty { display: flex; }
.smg-rfq .smg-svc__qty input[type="number"] { width: 84px; min-height: 40px; padding: .45rem .6rem; font-size: .95rem; }
.smg-rfq .smg-svc__qty select { width: auto; min-height: 40px; padding: .45rem 2.2rem .45rem .6rem; font-size: .9rem; }
.smg-svc__unit { font-size: .85rem; color: var(--smgf-slate); font-weight: 500; }
.smg-svc__opt { display: inline-flex; align-items: center; gap: .35rem; color: var(--smgf-slate); }

/* Repeatable rows */
.smg-others { display: grid; gap: .55rem; }
.smg-other-row { display: grid; grid-template-columns: minmax(0, 1fr) 90px 170px 40px; gap: .5rem; align-items: center; }
.smg-other-row--part { grid-template-columns: minmax(0, 1.5fr) 80px minmax(0, 1fr) minmax(0, .8fr) 40px; }
.smg-rfq .smg-other-row input { min-height: 44px; padding: .55rem .75rem; font-size: .95rem; }
.smg-row-remove {
	width: 36px; height: 36px;
	border-radius: 10px;
	border: 1.5px solid var(--smgf-line);
	background: #fff;
	color: var(--smgf-slate);
	font-size: 1.2rem;
	line-height: 1;
	cursor: pointer;
	display: grid; place-items: center;
	padding: 0;
}
.smg-row-remove:hover { border-color: #F04438; color: #D92D20; background: #FEF3F2; }
.smg-add-row {
	justify-self: start;
	border: 1.5px dashed #9FB3C8;
	background: transparent;
	color: var(--smgf-action);
	border-radius: 10px;
	padding: .6rem 1rem;
	font-weight: 700;
	font-family: var(--wp--preset--font-family--heading, inherit);
	font-size: .9rem;
	cursor: pointer;
}
.smg-add-row:hover { background: var(--smgf-foam); border-style: solid; }

.smg-rfq__items-error {
	margin: 0 !important;
	padding: .75rem 1rem;
	border-radius: 12px;
	background: #FEF3F2;
	border: 1px solid #FECDCA;
	color: #912018;
	font-size: .92rem;
	font-weight: 600;
}
.smg-rfq__items-error[hidden] { display: none; }
.smg-rfq__custom-note { font-size: .85rem; color: #0B3A6B; background: var(--smgf-foam); padding: .5rem .75rem; border-radius: 10px; }
.smg-rfq__custom-note[hidden] { display: none; }
/* Keep the floating WhatsApp button compact next to the summary card. */
body:has(.smg-rfq) .smg-wa { width: 54px; padding: 0; justify-content: center; }
body:has(.smg-rfq) .smg-wa__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Summary card */
.smg-rfq__summary { position: sticky; top: calc(var(--smg-header-h, 76px) + 1.25rem); min-width: 0; }
.admin-bar .smg-rfq__summary { top: calc(var(--smg-header-h, 76px) + 32px + 1.25rem); }
.smg-rfq__summary-card {
	background: #fff;
	border: 1px solid var(--smgf-line);
	border-radius: var(--smgr-radius);
	padding: 1.4rem;
	box-shadow: 0 18px 40px -24px rgba(11, 27, 43, .35);
	display: grid;
	gap: .8rem;
}
.smg-rfq__summary-card > * { margin: 0 !important; }
.smg-rfq__summary-title {
	font-family: var(--wp--preset--font-family--heading, inherit);
	font-weight: 800;
	font-size: 1.1rem;
	display: flex; align-items: center; gap: .5rem;
	color: var(--smgf-ink);
}
.smg-rfq__badge {
	display: inline-grid; place-items: center;
	min-width: 26px; height: 26px;
	padding: 0 .45rem;
	border-radius: 999px;
	background: var(--smgf-action);
	color: #fff;
	font-size: .8rem;
}
.smg-rfq__summary-port { font-size: .9rem; color: var(--smgf-slate); padding: .55rem .75rem; background: var(--smgf-mist); border-radius: 10px; }
.smg-rfq__summary-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; max-height: 40vh; overflow: auto; font-size: .88rem; }
.smg-rfq__summary-list:empty { display: none; }
.smg-rfq__summary-list li { padding-left: 1.4rem; position: relative; line-height: 1.4; }
.smg-rfq__summary-list li::before {
	content: ""; position: absolute; left: 0; top: .2rem;
	width: 14px; height: 14px; border-radius: 50%;
	background: var(--smgf-foam) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231668C7' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 9px no-repeat;
}
.smg-rfq__summary-empty { font-size: .88rem; color: var(--smgf-slate); }
.smg-submit--block { width: 100%; justify-content: center; }

/* Spare parts catalogue */
.smg-spares__search input[type="search"] {
	width: 100%;
	box-sizing: border-box;
	min-height: 56px;
	padding: .9rem 1rem .9rem 3rem;
	font-size: 1.02rem;
	border: 1.5px solid var(--smgf-line);
	border-radius: 14px;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234B5D73' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") 1rem center / 20px no-repeat;
	-webkit-appearance: none;
	appearance: none;
	font-family: inherit;
	color: var(--smgf-ink);
}
.smg-spares__search input[type="search"]:focus { outline: none; border-color: var(--smgf-action); box-shadow: 0 0 0 4px rgba(22, 104, 199, .14); }
.smg-spares__cats { display: flex; flex-wrap: wrap; gap: .4rem; }
.smg-spares__cats a {
	font-size: .8rem;
	padding: .35rem .7rem;
	border-radius: 999px;
	border: 1px solid var(--smgf-line);
	color: var(--smgf-ink);
	text-decoration: none;
	background: #fff;
	white-space: nowrap;
}
.smg-spares__cats a:hover { border-color: var(--smgf-action); color: var(--smgf-action); }
.smg-spares__cats a.has-sel { background: var(--smgf-foam); border-color: var(--smgf-action); color: #0B3A6B; font-weight: 600; }
.smg-spares__none { background: #FFFAEB; border: 1px solid #FEDF89; color: #93370D; padding: .8rem 1rem; border-radius: 12px; font-size: .92rem; }
.smg-spares__list { display: grid; gap: .6rem; }
.smg-cat { border: 1px solid var(--smgf-line); border-radius: 14px; background: #fff; scroll-margin-top: 140px; }
.smg-cat[hidden] { display: none; }
.smg-cat > summary {
	list-style: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: .75rem;
	padding: .95rem 1.1rem;
	font-family: var(--wp--preset--font-family--heading, inherit);
	font-weight: 700;
	color: var(--smgf-ink);
}
.smg-cat > summary::-webkit-details-marker { display: none; }
.smg-cat > summary::after {
	content: "";
	margin-left: auto;
	width: 18px; height: 18px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234B5D73' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: transform .2s ease;
}
.smg-cat[open] > summary::after { transform: rotate(180deg); }
.smg-cat__count { white-space: nowrap; font-weight: 500; font-size: .82rem; color: var(--smgf-slate); font-family: var(--wp--preset--font-family--body, inherit); }
.smg-cat__sel:not(:empty) { font-size: .75rem; font-weight: 700; color: #fff; background: var(--smgf-action); padding: .2rem .55rem; border-radius: 999px; }
.smg-parts { display: flex; flex-wrap: wrap; gap: .45rem; padding: 0 1.1rem 1.1rem; }
.smg-part { position: relative; cursor: pointer; }
.smg-part[hidden] { display: none; }
.smg-part input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.smg-part span {
	display: inline-flex; align-items: center; gap: .45rem;
	padding: .5rem .8rem;
	border: 1.5px solid var(--smgf-line);
	border-radius: 999px;
	font-size: .88rem;
	background: #fff;
	color: var(--smgf-ink);
	transition: all .15s ease;
	user-select: none;
}
.smg-part span::before {
	content: "+";
	font-weight: 700;
	color: var(--smgf-action);
	width: 1em; text-align: center;
}
.smg-part:hover span { border-color: #9FB3C8; }
.smg-part input:checked + span { background: var(--smgf-action); border-color: var(--smgf-action); color: #fff; }
.smg-part input:checked + span::before { content: "✓"; color: #fff; }
.smg-part input:focus-visible + span { box-shadow: 0 0 0 4px rgba(22, 104, 199, .25); }

.smg-parts-list { display: grid; gap: .6rem; max-height: 52vh; overflow: auto; padding-right: .2rem; }
.smg-pl-row { border: 1px solid var(--smgf-line); border-radius: 12px; padding: .7rem .75rem; background: var(--smgf-mist); }
.smg-pl-row__head { display: grid; grid-template-columns: 1fr auto; gap: 0 .5rem; align-items: start; }
.smg-pl-row__cat { grid-column: 1; font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--smgf-slate); }
.smg-pl-row__head strong { grid-column: 1; font-size: .92rem; line-height: 1.3; }
.smg-pl-row__head .smg-row-remove { grid-column: 2; grid-row: 1 / span 2; width: 30px; height: 30px; font-size: 1rem; }
.smg-pl-row__fields { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: .4rem; margin-top: .55rem; }
.smg-pl-row__fields label:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
.smg-pl-row__fields label { display: grid; gap: .15rem; font-size: .7rem; color: var(--smgf-slate); }
.smg-rfq .smg-pl-row__fields input { min-height: 36px; padding: .35rem .5rem; font-size: .88rem; border-radius: 8px; }

@media (max-width: 1100px) {
	.smg-rfq__layout { grid-template-columns: minmax(0, 1fr) 300px; }
	.smg-rfq__items { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
	.smg-rfq__layout { grid-template-columns: minmax(0, 1fr); }
	.smg-rfq__main { display: contents; }
	.smg-rfq__step:nth-of-type(1) { order: 1; }
	.smg-rfq__summary { order: 2; position: static; }
	.smg-rfq__step:nth-of-type(2) { order: 3; }
	.smg-rfq__step:nth-of-type(3) { order: 4; }
	.smg-quote .smg-rfq__step:nth-of-type(2) { order: 2; }
	.smg-quote .smg-rfq__summary { order: 3; }
	.smg-rfq__summary-card .smg-submit--block { display: none; }
	.smg-parts-list { max-height: none; }
}
@media (max-width: 640px) {
	.smg-rfq .smg-svc__qty input[type="number"] { width: 66px; }
	/* Category shortcuts become one swipeable row on phones. */
	.smg-rfq .smg-spares__cats { flex-wrap: nowrap; overflow-x: auto; margin-inline: -1.25rem !important; padding: .1rem 1.25rem .35rem; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
	.smg-rfq .smg-spares__cats::-webkit-scrollbar { display: none; }
	.smg-cat > summary { flex-wrap: wrap; row-gap: .15rem; }
	.smg-rfq__countries { grid-template-columns: minmax(0, 1fr); }
	.smg-other-row, .smg-other-row--part { grid-template-columns: minmax(0, 1fr) 80px 40px; }
	.smg-other-row input:nth-child(3), .smg-other-row--part input:nth-child(3), .smg-other-row--part input:nth-child(4) { grid-column: 1 / span 2; }
	.smg-other-row .smg-row-remove { grid-column: 3; grid-row: 1; }
}
