/* Nautic Configurator – frontend (responsive, nautical palette for nauticluis.com) */
.nc-configurator {
	--nc-primary: #202020;
	--nc-primary-light: #444444;
	--nc-accent: #666666;
	--nc-bg: #f7f7f7;
	--nc-border: #e0e0e0;
	--nc-text: #202020;
	--nc-muted: #747474;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 28px;
	color: var(--nc-text);
	font-size: 16px;
	line-height: 1.45;
	margin: 0 auto;
}

/* ---------- Recommended packages ---------- */
.nc-presets {
	grid-column: 1 / -1;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 8px;
}
.nc-presets-label { font-weight: 600; color: var(--nc-primary); }
.nc-preset-btn {
	padding: 8px 18px;
	border: 2px solid var(--nc-border);
	background: #fff;
	border-radius: 20px;
	cursor: pointer;
	font-weight: 600;
	color: var(--nc-primary);
	transition: all .15s;
}
.nc-preset-btn:hover { border-color: var(--nc-primary-light); }
.nc-preset-btn.nc-preset-active {
	background: var(--nc-primary);
	border-color: var(--nc-primary);
	color: #fff;
}

/* Mandatory options */
.nc-option.nc-mandatory {
	border-color: var(--nc-primary);
	background: #f5f5f5;
	cursor: default;
}
.nc-option.nc-mandatory .nc-option-hint { color: var(--nc-primary); font-weight: 600; }

/* ---------- Sections ---------- */
.nc-section { margin-bottom: 28px; }
.nc-section-header { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.nc-section-img {
	width: 64px; height: 64px; object-fit: cover;
	border-radius: 8px; flex-shrink: 0;
}
.nc-section-title {
	margin: 0 !important;
	font-size: 1.25em;
	color: var(--nc-primary);
}

.nc-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }

.nc-option {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	background: #fff;
	border: 2px solid var(--nc-border);
	border-radius: 10px;
	cursor: pointer;
	transition: border-color .15s, box-shadow .15s, background .15s;
	margin: 0;
}
.nc-option:hover { border-color: var(--nc-primary-light); }
.nc-option.nc-selected {
	border-color: var(--nc-primary);
	background: #f5f5f5;
	box-shadow: 0 1px 4px rgba(32, 32, 32, .12);
}
.nc-option.nc-disabled {
	opacity: .5;
	cursor: not-allowed;
	background: var(--nc-bg);
}
.nc-option input {
	accent-color: var(--nc-primary);
	width: 18px; height: 18px;
	margin: 0;
	flex-shrink: 0;
}
.nc-option-img {
	width: 52px;
	height: 52px;
	object-fit: cover;
	border-radius: 8px;
	flex-shrink: 0;
	cursor: zoom-in;
}
.nc-option-body {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 10px;
	flex: 1;
	min-width: 0;
}
.nc-option-name { word-break: break-word; }
.nc-option-price { font-weight: 700; color: var(--nc-primary); white-space: nowrap; }
.nc-option-hint {
	flex-basis: 100%;
	font-size: .78em;
	color: var(--nc-muted);
}
.nc-option-hint:empty { display: none; }

/* Button-style (single choice) sections */
.nc-options-buttons .nc-option input { position: absolute; opacity: 0; pointer-events: none; }
.nc-options-buttons .nc-option { justify-content: center; text-align: center; }

/* Desktop/tablet: when an option has a photo, keep the name + price on the top
   row (full width) and drop the thumbnail BELOW, instead of letting the image
   take a left column and squeeze the text into a narrow, too-tall block.
   On phones (<=560px, single-column cards) the original image-left layout is
   kept untouched. */
@media (min-width: 561px) {
	.nc-option { align-items: center; }
	.nc-option input { order: 1; }
	.nc-option-body { order: 2; flex: 1 1 auto; }
	.nc-option .nc-img-wrap { order: 3; flex: 0 0 100%; margin-top: 8px; }
	.nc-option-hint { order: 4; }
	.nc-options-buttons .nc-option .nc-img-wrap { justify-content: center; }
}

/* ---------- Step navigation ---------- */
.nc-configurator[data-layout="steps"] .nc-section { display: none; }
.nc-configurator[data-layout="steps"] .nc-section.nc-step-active { display: block; }
.nc-step-nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	margin-top: 14px;
	flex-wrap: wrap;
}
.nc-step-nav .nc-btn { width: auto; padding: 10px 24px; }
.nc-step-nav .nc-btn:disabled { opacity: .4; cursor: default; }
.nc-step-indicator {
	font-weight: 600;
	color: var(--nc-muted);
	text-align: center;
	flex: 1;
	min-width: 120px;
}

/* ---------- Summary ---------- */
.nc-summary-inner {
	position: sticky;
	top: 90px;
	background: #fff;
	border: 1px solid var(--nc-border);
	border-radius: 12px;
	padding: 20px;
	box-shadow: 0 2px 10px rgba(32, 32, 32, .07);
	max-height: calc(100vh - 110px);
	overflow: hidden;
	display: flex;
	flex-direction: column;
}
.nc-summary-inner h3 { margin-top: 0; color: var(--nc-primary); }
.nc-summary-base,
.nc-summary-list li {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	padding: 6px 0;
	border-bottom: 1px solid var(--nc-border);
	font-size: .92em;
}
/* Long option lists scroll inside the panel so the total + button stay in view (desktop). */
.nc-summary-list {
	list-style: none;
	margin: 0;
	padding: 0;
	flex: 1 1 auto;
	min-height: 0;
	max-height: 40vh;
	overflow-y: auto;
	overscroll-behavior: contain;
}
.nc-summary-list::-webkit-scrollbar { width: 8px; }
.nc-summary-list::-webkit-scrollbar-thumb { background: var(--nc-border); border-radius: 8px; }
.nc-summary-empty { color: var(--nc-muted); border-bottom: none !important; }
.nc-summary-total {
	display: flex;
	justify-content: space-between;
	margin-top: 12px;
	font-size: 1.15em;
	font-weight: 700;
	color: var(--nc-primary);
}
.nc-vat-note { font-size: .75em; color: var(--nc-muted); margin: 8px 0 14px; }
.nc-code-line { font-size: .82em; color: var(--nc-muted); font-weight: 600; margin: 6px 0 4px; }
.nc-code { font-family: ui-monospace, Menlo, Consolas, monospace; color: var(--nc-primary); }
.nc-tax-note { font-size: .75em; color: var(--nc-muted); margin: -8px 0 14px; }
.nc-total-alt { color: var(--nc-muted); font-weight: 400; }
.nc-pr-main { display: block; }
.nc-pr-alt { display: block; color: var(--nc-muted); font-weight: 400; font-size: .82em; line-height: 1.2; }
.nc-option-price,
.nc-subtotal-value,
.nc-tax-value,
.nc-summary-base > span:last-child,
.nc-summary-list li > span:last-child { text-align: right; }
.nc-summary-sub {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	padding: 6px 0;
	font-size: .92em;
	color: var(--nc-muted);
	border-bottom: 1px solid var(--nc-border);
}
.nc-summary-approx {
	text-align: right;
	font-size: .95em;
	color: var(--nc-muted);
	margin-top: 4px;
}
.nc-fx-note {
	font-size: .75em;
	color: var(--nc-muted);
	background: var(--nc-bg);
	border-radius: 6px;
	padding: 8px 10px;
	margin: 10px 0 0;
}
.nc-mobile-approx { display: block; color: var(--nc-muted); }
.nc-tax-section .nc-option-price { color: var(--nc-accent); }

.nc-btn {
	display: inline-block;
	width: 100%;
	padding: 12px 20px;
	background: var(--nc-primary);
	color: #fff !important;
	border: none;
	border-radius: 8px;
	font-size: 1em;
	font-weight: 600;
	cursor: pointer;
	transition: background .15s;
	text-align: center;
}
.nc-btn:hover { background: var(--nc-primary-light); }
.nc-btn:disabled { opacity: .6; cursor: wait; }

/* ---------- Quote form ---------- */
.nc-form-wrap { grid-column: 1 / -1; }
.nc-quote-form {
	background: #fff;
	border: 1px solid var(--nc-border);
	border-radius: 12px;
	padding: 24px;
	max-width: 560px;
	margin: 0 auto;
}
.nc-quote-form h3 { margin-top: 0; color: var(--nc-primary); }
.nc-quote-form label { display: block; margin-bottom: 14px; font-weight: 600; font-size: .9em; }
.nc-quote-form input,
.nc-quote-form textarea {
	width: 100%;
	margin-top: 4px;
	padding: 10px 12px;
	border: 1px solid var(--nc-border);
	border-radius: 8px;
	font-size: 1em;
	font-weight: 400;
	box-sizing: border-box;
}
.nc-quote-form input:focus,
.nc-quote-form textarea:focus { outline: 2px solid var(--nc-accent); border-color: transparent; }
.nc-hp { position: absolute !important; left: -9999px !important; }
.nc-form-status { margin: 12px 0 0; font-weight: 600; }
.nc-form-status.nc-ok { color: #1d7a35; }
.nc-form-status.nc-err { color: #b32d2e; }

/* ---------- Mobile bottom bar ---------- */
.nc-mobile-bar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
	.nc-configurator { grid-template-columns: 1fr; }
	.nc-summary { order: 3; }
	.nc-summary-inner { position: static; max-height: none; overflow: visible; display: block; }
	.nc-summary-list { max-height: none; overflow: visible; }

	.nc-mobile-bar {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 14px;
		position: fixed;
		left: 0; right: 0; bottom: 0;
		z-index: 9999;
		background: #fff;
		border-top: 1px solid var(--nc-border);
		box-shadow: 0 -3px 14px rgba(32, 32, 32, .12);
		padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
	}
	.nc-mobile-bar small { display: block; color: var(--nc-muted); }
	.nc-mobile-bar strong { font-size: 1.1em; color: var(--nc-primary); }
	.nc-mobile-bar .nc-btn { width: auto; padding: 10px 18px; }
	.nc-configurator { padding-bottom: 80px; }
}

@media (max-width: 560px) {
	.nc-options { grid-template-columns: 1fr; }
	.nc-option { padding: 11px 12px; }
	.nc-section-img { width: 48px; height: 48px; }
	.nc-quote-form { padding: 18px; }
}

/* ---- Image zoom / lightbox ---- */
.nc-img-wrap { position: relative; display: inline-flex; flex-shrink: 0; line-height: 0; }
.nc-zoom-btn {
	position: absolute; top: 3px; right: 3px;
	width: 22px; height: 22px; padding: 0;
	display: flex; align-items: center; justify-content: center;
	border: none; border-radius: 50%;
	background: rgba(32, 32, 32, .72); color: #fff;
	cursor: zoom-in; opacity: .92;
	transition: opacity .15s, background .15s;
}
.nc-zoom-btn:hover { opacity: 1; background: var(--nc-primary); }
.nc-zoom-btn svg { width: 13px; height: 13px; display: block; fill: currentColor; }
.nc-section-img { cursor: zoom-in; }

.nc-lightbox {
	position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 100000;
	display: flex; align-items: center; justify-content: center;
	background: rgba(0, 0, 0, .85);
	padding: 24px; cursor: zoom-out;
}
.nc-lightbox[hidden] { display: none; }
.nc-lightbox-img {
	max-width: 92vw; max-height: 90vh;
	object-fit: contain; border-radius: 8px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, .5);
	cursor: default;
}
.nc-lightbox-close {
	position: absolute; top: 16px; right: 20px;
	width: 44px; height: 44px;
	font-size: 30px; line-height: 1;
	color: #fff; background: rgba(255, 255, 255, .12);
	border: none; border-radius: 50%; cursor: pointer;
}
.nc-lightbox-close:hover { background: rgba(255, 255, 255, .25); }
body.nc-lightbox-open { overflow: hidden; }

/* Section jump menu (steps mode) */
.nc-step-select {
	flex: 1 1 100%;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	height: auto;
	min-height: 44px;
	line-height: 1.4;
	margin: 0;
	padding: 10px 34px 10px 12px;
	border: 1px solid var(--nc-border);
	border-radius: 8px;
	background: #fff;
	color: var(--nc-text) !important;
	font-size: 1em;
	font-weight: 600;
	text-overflow: ellipsis;
	cursor: pointer;
	-webkit-appearance: menulist;
	-moz-appearance: menulist;
	appearance: menulist;
}
.nc-step-select option { color: var(--nc-text); background: #fff; }
.nc-step-select:focus { outline: 2px solid var(--nc-primary-light); outline-offset: 1px; }

/* CF7 spinner: keep hidden at rest inside the configurator; show only while submitting. */
.nc-configurator .wpcf7-spinner { display: none !important; }
.nc-configurator form.submitting .wpcf7-spinner,
.nc-configurator .wpcf7-form.submitting .wpcf7-spinner { display: inline-block !important; }
