/* Location: wp-content/plugins/ng-roof-estimator/assets/ngre.css (NEW FILE) */

.ngre {
	--ngre-accent: #f49a1c;
	--ngre-red: #be1e2d;
	--ngre-card: #ffffff;
	--ngre-text: #2f3032;
	--ngre-muted: #696a68;
	--ngre-border: #d7d1c6;
	--ngre-btn-text: #2b2c2e;
	--ngre-radius: 0px;
	--ngre-shadow: #be1e2d;
	--ngre-soft: color-mix(in srgb, var(--ngre-text) 5%, var(--ngre-card));
	font-family: "Manrope", system-ui, sans-serif;
	font-size: 15px;
	line-height: 1.55;
	color: var(--ngre-text);
	box-sizing: border-box;
}
.ngre *, .ngre *::before, .ngre *::after { box-sizing: border-box; }
.ngre p { margin: 0; }
.ngre [hidden] { display: none !important; }
.ngre-h { font-family: "Barlow Condensed", "Arial Narrow", sans-serif; font-weight: 800; letter-spacing: .01em; line-height: 1; color: var(--ngre-text); }
.ngre-muted { color: var(--ngre-muted); }
.ngre-label {
	display: block; margin: 0 0 8px; font-size: 11px; font-weight: 800;
	letter-spacing: .14em; text-transform: uppercase; color: var(--ngre-muted);
}

/* Buttons */
.ngre .ngre-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 52px; padding: 14px 24px; border: 2px solid transparent; border-radius: var(--ngre-radius);
	font-family: "Manrope", sans-serif; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
	line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.ngre .ngre-btn svg { width: 18px; height: 18px; flex: none; transition: transform .2s; }
.ngre .ngre-btn:hover svg { transform: translateX(3px); }
.ngre .ngre-btn--accent { background: var(--ngre-accent); color: var(--ngre-btn-text); box-shadow: 4px 4px 0 var(--ngre-red); }
.ngre .ngre-btn--accent:hover { background: color-mix(in srgb, var(--ngre-accent) 85%, #fff); color: var(--ngre-btn-text); }
.ngre .ngre-btn--outline { background: transparent; color: var(--ngre-text); border-color: var(--ngre-text); box-shadow: 4px 4px 0 var(--ngre-red); }
.ngre .ngre-btn--outline:hover { border-color: var(--ngre-text); color: var(--ngre-text); }
.ngre .ngre-btn--light { background: #fff; color: #2b2c2e; box-shadow: 4px 4px 0 var(--ngre-red); }
.ngre .ngre-btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ngre-red); }
.ngre .ngre-btn--light:hover { background: var(--ngre-accent); color: #2b2c2e; }
.ngre .ngre-btn--block { width: 100%; }
.ngre .ngre-btn:disabled { opacity: .7; cursor: progress; }
.ngre .ngre-btn:focus-visible, .ngre-input:focus-visible, .ngre button:focus-visible { outline: 3px solid color-mix(in srgb, var(--ngre-accent) 60%, transparent); outline-offset: 2px; }
.ngre .ngre-link {
	background: none; border: 0; padding: 0; margin-top: 18px; color: var(--ngre-muted); font-size: 13px; font-weight: 700;
	text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-family: inherit;
}
.ngre .ngre-link:hover { color: var(--ngre-text); background: none; }

/* Inputs */
.ngre .ngre-input {
	width: 100%; min-height: 52px; padding: 12px 14px; margin: 0;
	background: #fff; color: #2f3032; border: 1px solid var(--ngre-border); border-radius: var(--ngre-radius);
	font-family: inherit; font-size: 16px; line-height: 1.3; box-shadow: none;
}
.ngre .ngre-input:focus { border-color: var(--ngre-accent); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--ngre-accent) 25%, transparent); }

/* ------------------------------------------------------------ Address */
.ngre-address__row { display: flex; gap: 10px; }
.ngre-address.is-stacked .ngre-address__row { flex-direction: column; }
.ngre-address__field { position: relative; flex: 1 1 auto; }
.ngre-address .ngre-input { padding-left: 44px; }
.ngre-address__pin { position: absolute; left: 14px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--ngre-red); pointer-events: none; }
.ngre-address .ngre-btn { flex: none; }
.ngre-address.is-stacked .ngre-btn { width: 100%; }
.ngre-address.is-loading .ngre-btn span::after { content: ""; display: inline-block; width: 12px; height: 12px; margin-left: 10px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: ngre-spin .8s linear infinite; vertical-align: -1px; }
.ngre-address__msg { margin-top: 10px !important; font-size: 12px; color: var(--ngre-muted); }
.ngre-address__msg.is-error { color: var(--ngre-red); font-weight: 700; }
.ngre-suggest {
	position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 50; margin: 0; padding: 6px; list-style: none;
	background: #fff; border: 1px solid var(--ngre-border); border-radius: 0; box-shadow: 6px 6px 0 var(--ngre-text);
}
.ngre-suggest li { display: flex; gap: 10px; align-items: flex-start; padding: 10px; margin: 0; border-radius: 0; color: #2f3032; font-size: 14px; line-height: 1.35; cursor: pointer; }
.ngre-suggest li svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--ngre-red); }
.ngre-suggest li:hover, .ngre-suggest li.is-active { background: #f6f3ed; }

/* ------------------------------------------------------------ Estimate */
.ngre-estimate { background: var(--ngre-card); border: 1px solid var(--ngre-border); border-radius: var(--ngre-radius); box-shadow: 12px 12px 0 var(--ngre-shadow); }
.ngre-estimate__map, .ngre-estimate__body { overflow: hidden; }
.ngre .leaflet-bar, .ngre .leaflet-bar a { border-radius: 0 !important; }
.ngre-estimate__map { position: relative; aspect-ratio: 16 / 10; background: #1f2022; overflow: hidden; }
.ngre-estimate__img, .ngre-estimate__leaflet { position: absolute; inset: 0; width: 100%; height: 100%; }
.ngre-estimate__img { object-fit: cover; filter: saturate(.85); }
.ngre-estimate__leaflet { visibility: hidden; z-index: 1; }
.ngre-estimate.has-map .ngre-estimate__leaflet { visibility: visible; }
.ngre-estimate.has-map .ngre-estimate__img { visibility: hidden; }
.ngre-estimate__overlay { position: absolute; inset: 0; z-index: 3; display: none; align-items: center; justify-content: center; padding: 28px; text-align: center; background: linear-gradient(180deg, rgba(20, 20, 22, .55), rgba(20, 20, 22, .82)); color: #fff; }
.ngre-estimate__overlay-inner { max-width: 380px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.ngre-estimate__otitle { color: #fff; font-size: 30px; text-transform: uppercase; }
.ngre-estimate__otext { color: rgba(255, 255, 255, .82); font-size: 14px; }
.ngre-estimate__overlay .ngre-btn { margin-top: 6px; }
.ngre-ico { display: inline-flex; width: 52px; height: 52px; align-items: center; justify-content: center; border-radius: 0; background: var(--ngre-accent); color: #2b2c2e; box-shadow: 4px 4px 0 var(--ngre-red); }
.ngre-ico svg { width: 24px; height: 24px; }
.ngre-spinner { width: 46px; height: 46px; border: 4px solid rgba(255, 255, 255, .25); border-top-color: var(--ngre-accent); border-radius: 50%; animation: ngre-spin .9s linear infinite; }
@keyframes ngre-spin { to { transform: rotate(360deg); } }
.ngre-estimate__address { position: absolute; left: 12px; bottom: 12px; z-index: 4; max-width: calc(100% - 24px); margin: 0; padding: 7px 12px; background: rgba(20, 20, 22, .82); color: #fff; font-size: 12px; font-weight: 700; border-radius: 0; }
.ngre-estimate.has-map .ngre-estimate__address { left: auto; right: 12px; bottom: 26px; }

.ngre-estimate__body { padding: 26px; }
.ngre-estimate[data-state="idle"] .ngre-estimate__body,
.ngre-estimate[data-state="loading"] .ngre-estimate__body { display: none; }

/* state switches */
.ngre-estimate .ngre-show-idle, .ngre-estimate .ngre-show-loading, .ngre-estimate .ngre-show-ambiguous, .ngre-estimate .ngre-show-result, .ngre-estimate .ngre-show-measured { display: none; }
.ngre-estimate[data-state="idle"] .ngre-show-idle,
.ngre-estimate[data-state="loading"] .ngre-show-loading { display: flex; }
.ngre-estimate[data-state="ambiguous"] .ngre-show-ambiguous,
.ngre-estimate[data-state="measured"] .ngre-show-result,
.ngre-estimate[data-state="fallback"] .ngre-show-result,
.ngre-estimate[data-state="measured"] .ngre-show-measured { display: block; }
.ngre-estimate[data-state="idle"] .ngre-hide-idle, .ngre-estimate[data-state="loading"] .ngre-hide-loading { display: none; }

.ngre-estimate__notice { display: flex; flex-direction: column; gap: 4px; margin-bottom: 20px; padding: 14px 16px; border-left: 4px solid var(--ngre-accent); background: color-mix(in srgb, var(--ngre-accent) 10%, var(--ngre-card)); font-size: 14px; }
.ngre-estimate__notice strong { font-size: 15px; }
.ngre-estimate__ctitle { font-size: 28px; text-transform: uppercase; margin-bottom: 6px !important; }
.ngre-estimate__cands { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.ngre-estimate__cands small { font-weight: 600; letter-spacing: 0; text-transform: none; opacity: .75; }

.ngre-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-bottom: 22px; background: var(--ngre-border); border: 1px solid var(--ngre-border); border-radius: var(--ngre-radius); overflow: hidden; }
.ngre-stats > div { padding: 14px 16px; background: var(--ngre-card); }
.ngre-stats span { display: block; margin-bottom: 6px; font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ngre-muted); }
.ngre-stats strong { display: block; font-size: 28px; }
.ngre-stats em { font-style: normal; font-size: 15px; font-weight: 700; color: var(--ngre-muted); }

.ngre-group { margin-bottom: 22px; }
.ngre-group__title { margin-bottom: 10px !important; font-size: 14px; font-weight: 800; }
.ngre-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ngre .ngre-seg button, .ngre .ngre-materials button {
	display: flex; text-align: left; gap: 12px; padding: 12px 14px; margin: 0; width: 100%;
	background: var(--ngre-card); color: var(--ngre-text); border: 1px solid var(--ngre-border); border-radius: var(--ngre-radius);
	font-family: inherit; font-size: 14px; line-height: 1.35; text-transform: none; letter-spacing: 0; cursor: pointer; transition: border-color .2s, background .2s;
}
.ngre .ngre-seg button { flex-direction: column; gap: 2px; align-items: center; text-align: center; }
.ngre .ngre-seg button small, .ngre .ngre-materials button small { display: block; color: var(--ngre-muted); font-size: 12px; font-weight: 500; }
.ngre .ngre-seg button:hover, .ngre .ngre-materials button:hover { border-color: var(--ngre-text); background: var(--ngre-card); color: var(--ngre-text); }
.ngre .ngre-seg button.is-active, .ngre .ngre-materials button.is-active { border-color: var(--ngre-accent); background: color-mix(in srgb, var(--ngre-accent) 10%, var(--ngre-card)); box-shadow: inset 0 0 0 1px var(--ngre-accent); }
.ngre-materials { display: grid; gap: 8px; }
.ngre-dot { flex: none; width: 18px; height: 18px; margin-top: 1px; border: 2px solid var(--ngre-border); border-radius: 0; }
.ngre-materials button.is-active .ngre-dot { border-color: var(--ngre-accent); box-shadow: inset 0 0 0 4px var(--ngre-card); background: var(--ngre-accent); }

.ngre-range { padding: 20px; margin-bottom: 18px; background: #2b2c2e; color: #fff; border-radius: var(--ngre-radius); border-top: 4px solid var(--ngre-accent); }
.ngre-range__label { margin-bottom: 8px !important; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ngre-accent); }
.ngre-range .ngre-range__value { font-size: clamp(34px, 5vw, 48px); color: #fff; }
.ngre-range__note { margin-top: 10px !important; font-size: 12px; color: rgba(255, 255, 255, .7); }
.ngre-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ngre-actions .ngre-btn { flex: 1 1 220px; }

.ngre-tip { background: #2b2c2e; color: #fff; border: 0; border-radius: 0; font-weight: 800; font-size: 14px; box-shadow: none; }
.ngre-tip::before { display: none; }

/* ------------------------------------------------------------ Planner */
.ngre-planner { padding: 28px; background: var(--ngre-card); border: 1px solid var(--ngre-border); border-radius: var(--ngre-radius); box-shadow: 11px 11px 0 var(--ngre-shadow); }
.ngre-planner__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.ngre-planner__title { font-size: 26px; text-transform: uppercase; }
.ngre-badge { padding: 5px 9px; border: 1px solid var(--ngre-border); border-radius: 0; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ngre-muted); white-space: nowrap; }
.ngre-planner__field { margin-bottom: 20px; }
.ngre-planner__row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.ngre-planner__amt { font-size: 30px; color: var(--ngre-accent); }
.ngre-planner__minmax { display: flex; justify-content: space-between; margin-top: 6px; font-size: 12px; color: var(--ngre-muted); }
.ngre .ngre-slider { -webkit-appearance: none !important; appearance: none !important; display: block; width: 100%; height: 24px; margin: 10px 0 0; padding: 0; border: 0; background: transparent !important; box-shadow: none !important; outline: none; cursor: pointer; }
.ngre .ngre-slider::-webkit-slider-runnable-track { height: 6px; border: 0; border-radius: 0; background: linear-gradient(90deg, var(--ngre-accent) var(--ngre-fill, 50%), color-mix(in srgb, var(--ngre-text) 18%, transparent) var(--ngre-fill, 50%)); box-shadow: none; }
.ngre .ngre-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -7px; border: 4px solid var(--ngre-accent); border-radius: 0; background: #fff; box-shadow: 3px 3px 0 var(--ngre-red); transition: transform .15s; }
.ngre .ngre-slider:active::-webkit-slider-thumb { transform: scale(1.12); }
.ngre .ngre-slider:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px color-mix(in srgb, var(--ngre-accent) 35%, transparent); }
.ngre .ngre-slider::-moz-range-track { height: 6px; border: 0; border-radius: 0; background: color-mix(in srgb, var(--ngre-text) 18%, transparent); }
.ngre .ngre-slider::-moz-range-progress { height: 6px; border-radius: 0; background: var(--ngre-accent); }
.ngre .ngre-slider::-moz-range-thumb { width: 12px; height: 12px; border: 4px solid var(--ngre-accent); border-radius: 0; background: #fff; box-shadow: 3px 3px 0 var(--ngre-red); }
.ngre-planner__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 20px; }
.ngre-suffix { position: relative; }
.ngre-suffix span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: #696a68; font-weight: 700; }
.ngre-planner select.ngre-input { appearance: auto; }
.ngre-planner__result { padding: 20px; margin-bottom: 16px; border-radius: var(--ngre-radius); background: color-mix(in srgb, var(--ngre-text) 7%, var(--ngre-card)); }
.ngre-planner__monthly { font-size: 52px; }
.ngre-planner__monthly small { font-size: 20px; color: var(--ngre-muted); margin-left: 4px; }
.ngre-planner__sub { margin-top: 8px !important; font-size: 13px; color: var(--ngre-muted); }
.ngre-planner__note { margin-top: 14px !important; font-size: 12px; color: var(--ngre-muted); }

/* ------------------------------------------------------------ Summary */
.ngre-summary { padding: 24px; background: var(--ngre-card); border: 1px solid var(--ngre-border); border-radius: var(--ngre-radius); border-top: 4px solid var(--ngre-accent); box-shadow: 7px 7px 0 var(--ngre-shadow); }
.ngre-summary__list { display: none; margin: 0; }
.ngre-summary[data-state="filled"] .ngre-summary__list { display: grid; gap: 14px; }
.ngre-summary[data-state="filled"] .ngre-summary__empty { display: none; }
.ngre-summary__empty { color: var(--ngre-muted); }
.ngre-summary dt { margin: 0 0 3px; font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ngre-muted); }
.ngre-summary dd { margin: 0; font-weight: 700; color: var(--ngre-text); }
.ngre-summary .is-big dd { font-size: 36px; color: var(--ngre-accent); }

/* ------------------------------------------------------------ Responsive */
@media (max-width: 767px) {
	.ngre-estimate__map { aspect-ratio: 4 / 3; }
	.ngre-estimate__body, .ngre-planner, .ngre-summary { padding: 20px; }
	.ngre-estimate { box-shadow: 8px 8px 0 var(--ngre-shadow); }
	.ngre-planner { box-shadow: 8px 8px 0 var(--ngre-shadow); }
	.ngre-stats { grid-template-columns: 1fr 1fr; }
	.ngre-stats > div:last-child { grid-column: 1 / -1; }
	.ngre-stats strong { font-size: 24px; }
	.ngre-estimate__otitle { font-size: 24px; }
	.ngre-address__row { flex-direction: column; }
	.ngre-address .ngre-btn { width: 100%; }
	.ngre-planner__grid { grid-template-columns: 1fr; }
	.ngre-planner__monthly { font-size: 44px; }
	.ngre-planner__head { flex-wrap: wrap; }
	.ngre-planner__title { font-size: 22px; }
	.ngre-actions .ngre-btn { flex-basis: 100%; }
	.ngre-estimate.has-map .ngre-estimate__address { display: none; }
}
/* ------------------------------------------------------------ Financing popup */
.ngre-modal-open, .ngre-modal-open body { overflow: hidden; }
.ngre-modal { position: fixed; inset: 0; z-index: 999999; display: none; align-items: center; justify-content: center; padding: 30px 20px; }
.ngre-modal.is-open { display: flex; }
.ngre-modal__backdrop { position: absolute; inset: 0; background: rgba(20, 20, 22, .78); }
.ngre-modal__box { position: relative; display: flex; flex-direction: column; width: 100%; max-width: 900px; height: min(860px, 100%); background: #fff; border: 2px solid #2b2c2e; box-shadow: 12px 12px 0 var(--ngre-red); }
.ngre-modal__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px 12px 20px; background: #2b2c2e; color: #fff; }
.ngre-modal__title { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #fff; }
.ngre .ngre-modal__close { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; margin: 0; border: 2px solid #fff; border-radius: 0; background: transparent; color: #fff; font-size: 26px; line-height: 1; cursor: pointer; box-shadow: none; }
.ngre .ngre-modal__close:hover { background: var(--ngre-accent); border-color: var(--ngre-accent); color: #2b2c2e; }
.ngre-modal__body { position: relative; flex: 1 1 auto; min-height: 0; background: #fff; }
.ngre-modal__body iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity .2s; }
.ngre-modal.is-loaded .ngre-modal__body iframe { opacity: 1; }
.ngre-modal__body .ngre-spinner { position: absolute; left: 50%; top: 50%; margin: -23px 0 0 -23px; border-color: rgba(0, 0, 0, .12); border-top-color: var(--ngre-accent); }
.ngre-modal.is-loaded .ngre-modal__body .ngre-spinner { display: none; }
.ngre-modal__note { margin: 0; padding: 10px 20px; border-top: 1px solid #d7d1c6; background: #f6f3ed; font-size: 12px; color: #696a68; }
@media (max-width: 767px) {
	.ngre-modal { padding: 0; }
	.ngre-modal__box { max-width: none; height: 100%; border: 0; box-shadow: none; }
	.ngre-modal__note { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.ngre *, .ngre *::after { animation: none !important; transition: none !important; }
}
