/* Pool Cover Calculator – override the variables in Flatsome > Advanced > Custom CSS, e.g.
   .pcr-calc { --pcr-accent: #007EAD; --pcr-ink: #1d2b33; } */
.pcr-calc {
	--pcr-accent: var(--primary-color, #007ead);
	--pcr-accent-soft: rgba(0, 126, 173, .08);
	--pcr-ink: #1d2b33;
	--pcr-muted: #5b6b73;
	--pcr-line: #dfe5e8;
	--pcr-panel: #f5f8f9;
	--pcr-radius: 14px;
	width: 100%;
	margin: 4px 0 22px;
	color: var(--pcr-ink);
	font-size: 15px;
	line-height: 1.45;
	box-sizing: border-box;
}
.pcr-calc *, .pcr-calc *::before, .pcr-calc *::after { box-sizing: border-box; }
.pcr-calc [hidden] { display: none !important; }

/* Tabs – folder style */
.pcr-tabs { display: flex; align-items: flex-end; gap: 6px; border-bottom: 2px solid var(--pcr-accent); margin-bottom: 4px; }
.pcr-tab {
	flex: 1 1 0; margin: 0 0 -2px; padding: 12px 10px; min-height: 0;
	background: #eef2f4; color: var(--pcr-ink); border: 2px solid transparent; border-bottom: 0;
	border-radius: 12px 12px 0 0; font-size: 14px; font-weight: 700; line-height: 1.25;
	text-transform: none; letter-spacing: 0; cursor: pointer; box-shadow: none;
}
.pcr-tab:hover { background: #e4eaee; }
.pcr-tab.is-active { background: #fff; border-color: var(--pcr-accent); color: var(--pcr-ink); padding-bottom: 14px; }
.pcr-tab:focus-visible { outline: 3px solid var(--pcr-accent-soft); outline-offset: 2px; }

/* Steps */
.pcr-step { padding: 22px 0; border-bottom: 1px solid var(--pcr-line); }
.pcr-step-title {
	display: flex; align-items: center; gap: 10px; margin: 0 0 6px;
	color: var(--pcr-accent); font-size: 1.25em; line-height: 1.2; text-transform: none; letter-spacing: 0;
}
.pcr-step-num {
	flex: 0 0 auto; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
	background: var(--pcr-accent); color: #fff; font-size: 15px; line-height: 1;
}
.pcr-step-intro { margin: 0 0 16px; color: var(--pcr-muted); font-size: 14px; }
.pcr-step-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.pcr-step-row .pcr-step-title { margin: 0; }
.pcr-step-row .pcr-select { flex: 1 1 240px; max-width: 340px; }

/* Shape cards */
.pcr-shapes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pcr-shape { position: relative; }
.pcr-shape-pick { display: block; margin: 0; cursor: pointer; height: 100%; }
.pcr-shape-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.pcr-shape-card {
	position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%;
	padding: 34px 8px 12px; background: #fff; border: 2px solid var(--pcr-line); border-radius: var(--pcr-radius);
	text-align: center; transition: border-color .15s, box-shadow .15s, background .15s;
}
.pcr-shape-pick:hover .pcr-shape-card { border-color: #b9c7ce; }
.pcr-shape-pick input:checked + .pcr-shape-card { border-color: var(--pcr-accent); background: var(--pcr-accent-soft); box-shadow: 0 4px 14px rgba(0, 60, 90, .10); }
.pcr-shape-pick input:focus-visible + .pcr-shape-card { outline: 3px solid var(--pcr-accent); outline-offset: 2px; }
.pcr-shape-check {
	position: absolute; top: 8px; left: 8px; width: 20px; height: 20px; border-radius: 50%;
	border: 2px solid var(--pcr-accent); background: var(--pcr-accent);
	opacity: 0; transform: scale(.6); transition: opacity .15s, transform .15s;
}
.pcr-shape-pick input:checked + .pcr-shape-card .pcr-shape-check { opacity: 1; transform: none; }
.pcr-shape-pick input:checked + .pcr-shape-card .pcr-shape-check::after {
	content: ""; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px;
	border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.pcr-shape-svg { width: 100%; max-width: 112px; height: auto; aspect-ratio: 128 / 136; }
.pcr-shape-svg line, .pcr-shape-svg path { stroke: var(--pcr-ink); stroke-width: 1.2; fill: none; stroke-linecap: round; }
.pcr-shape-svg .pcr-svg-pool { fill: #e3f2f8; stroke: var(--pcr-ink); stroke-width: 2; }
.pcr-shape-svg .pcr-svg-aux { fill: none; stroke: #8a9aa2; stroke-width: 1; stroke-dasharray: 3 2; }
.pcr-shape-svg text { fill: var(--pcr-ink); font: 700 10px/1 system-ui, sans-serif; text-anchor: middle; }
.pcr-shape-svg .pcr-svg-small { font-size: 8px; font-weight: 600; }
.pcr-shape-label { font-weight: 700; font-size: 13.5px; line-height: 1.25; }

/* Measuring tip */
.pcr-tip { position: absolute; top: 8px; right: 8px; z-index: 3; }
.pcr-tip summary {
	list-style: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
	border: 2px solid #9aabb3; color: #6c7d85; font-weight: 700; font-size: 13px; line-height: 1; cursor: pointer; background: #fff;
}
.pcr-tip summary::-webkit-details-marker { display: none; }
.pcr-tip[open] summary, .pcr-tip summary:hover { border-color: var(--pcr-accent); color: var(--pcr-accent); }
.pcr-tip p {
	position: absolute; right: -6px; top: 32px; width: 230px; margin: 0; padding: 12px 14px;
	background: var(--pcr-ink); color: #fff; border-radius: 10px; font-size: 13px; line-height: 1.45;
	box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
}

/* Inputs */
.pcr-dims { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 14px; margin-top: 12px; }
.pcr-field { display: block; margin: 0; padding: 0; border: 0; min-width: 0; font-weight: normal; }
.pcr-field-label, .pcr-field legend { display: block; margin: 0 0 6px; padding: 0; font-size: 14px; font-weight: 700; color: var(--pcr-ink); }
.pcr-input-unit { position: relative; display: block; }
.pcr-calc .pcr-input-unit input,
.pcr-calc .pcr-select select {
	width: 100%; height: 50px; margin: 0; padding: 0 44px 0 18px; font-size: 16px; color: var(--pcr-ink);
	background-color: #fff; border: 2px solid var(--pcr-ink); border-radius: 999px; box-shadow: none;
}
.pcr-calc .pcr-input-unit input::placeholder { color: #8a979d; }
.pcr-calc .pcr-input-unit input:focus,
.pcr-calc .pcr-select select:focus { border-color: var(--pcr-accent); box-shadow: 0 0 0 4px var(--pcr-accent-soft); outline: 0; }
.pcr-input-unit em { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-style: normal; font-weight: 700; color: var(--pcr-muted); pointer-events: none; }
.pcr-calc .pcr-select { position: relative; display: block; }
.pcr-calc .pcr-select select { appearance: none; -webkit-appearance: none; background-image: none; cursor: pointer; text-overflow: ellipsis; }
.pcr-calc .pcr-select::after {
	content: ""; position: absolute; right: 20px; top: 50%; width: 8px; height: 8px; margin-top: -6px;
	border: solid var(--pcr-ink); border-width: 0 2px 2px 0; transform: rotate(45deg); pointer-events: none;
}
.pcr-calc .pcr-select select:disabled { opacity: .55; cursor: not-allowed; }

/* Left / right segmented control */
.pcr-segment { display: flex; height: 50px; border: 2px solid var(--pcr-ink); border-radius: 999px; overflow: hidden; }
.pcr-segment label { flex: 1; margin: 0; cursor: pointer; }
.pcr-segment input { position: absolute; opacity: 0; pointer-events: none; }
.pcr-segment span { display: grid; place-items: center; height: 100%; font-weight: 700; font-size: 15px; }
.pcr-segment label + label span { border-left: 2px solid var(--pcr-ink); }
.pcr-segment input:checked + span { background: var(--pcr-accent); color: #fff; }
.pcr-segment input:focus-visible + span { box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .7); }

/* Model summary */
.pcr-summary-box { display: flex; gap: 16px; align-items: center; padding: 14px; background: var(--pcr-panel); border-radius: var(--pcr-radius); margin-top: 10px; }
.pcr-summary-fig { flex: 0 0 84px; }
.pcr-summary-fig svg { width: 84px; height: auto; }
.pcr-summary-shape { margin: 0 0 8px; font-weight: 700; }
.pcr-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; margin: 0; }
.pcr-calc .pcr-chips > div { display: block; margin: 0; }
.pcr-calc .pcr-chips dt { display: block; float: none; margin: 0; padding: 0; font-size: 12.5px; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--pcr-muted); }
.pcr-calc .pcr-chips dd { display: block; margin: 0; padding: 0; font-size: 15px; font-weight: 700; text-transform: none; color: var(--pcr-accent); }
.pcr-note { margin: 14px 0 0; font-size: 13.5px; color: var(--pcr-muted); }

/* Pre-Cut add-on */
.pcr-check { position: relative; display: flex; align-items: flex-start; gap: 12px; margin: 4px 0 0; padding: 14px 16px; border: 2px solid var(--pcr-line); border-radius: var(--pcr-radius); cursor: pointer; font-weight: normal; }
.pcr-check input { position: absolute; opacity: 0; pointer-events: none; }
.pcr-check-box { flex: 0 0 22px; width: 22px; height: 22px; margin-top: 1px; border: 2px solid var(--pcr-ink); border-radius: 6px; background: #fff; position: relative; }
.pcr-check input:checked ~ .pcr-check-box { background: var(--pcr-accent); border-color: var(--pcr-accent); }
.pcr-check input:checked ~ .pcr-check-box::after { content: ""; position: absolute; left: 6px; top: 2px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.pcr-check:has(input:checked) { border-color: var(--pcr-accent); background: var(--pcr-accent-soft); }
.pcr-check input:focus-visible ~ .pcr-check-box { outline: 3px solid var(--pcr-accent-soft); outline-offset: 2px; }
.pcr-check-price { color: var(--pcr-accent); font-weight: 700; white-space: nowrap; }
.pcr-cuts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.pcr-cut { display: block; margin: 0; cursor: pointer; font-weight: normal; }
.pcr-cut input { position: absolute; opacity: 0; pointer-events: none; }
.pcr-cut-card { position: relative; display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 16px; border: 2px solid var(--pcr-line); border-radius: var(--pcr-radius); background: #fff; font-size: 13px; line-height: 1.45; color: var(--pcr-muted); }
.pcr-cut-card strong { font-size: 15px; color: var(--pcr-ink); }
.pcr-cut input:checked + .pcr-cut-card { border-color: var(--pcr-accent); background: var(--pcr-accent-soft); }
.pcr-cut input:focus-visible + .pcr-cut-card { outline: 3px solid var(--pcr-accent); outline-offset: 2px; }
.pcr-cut-badge { position: absolute; top: -11px; right: 12px; padding: 3px 9px; border-radius: 999px; background: var(--pcr-accent); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .03em; }
.pcr-cut-svg { width: 64px; height: 32px; }
.pcr-cut-svg .pcr-cut-water { stroke: #7cc4e8; stroke-width: 3; fill: none; stroke-dasharray: 6 4; }
.pcr-cut-svg .pcr-cut-cover { stroke: var(--pcr-accent); stroke-width: 3.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* Rollers */
.pcr-segment-inline { max-width: 260px; margin-top: 4px; }
.pcr-colours { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.pcr-colour { margin: 0; cursor: pointer; font-weight: normal; }
.pcr-colour input { position: absolute; opacity: 0; pointer-events: none; }
.pcr-colour span { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 18px 0 8px; border: 2px solid var(--pcr-line); border-radius: 999px; background: #fff; font-weight: 700; font-size: 14px; color: var(--pcr-ink); }
.pcr-colour i { width: 30px; height: 30px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18); }
.pcr-colour input:checked + span { border-color: var(--pcr-accent); background: var(--pcr-accent-soft); }
.pcr-colour input:focus-visible + span { outline: 3px solid var(--pcr-accent); outline-offset: 2px; }

/* Price shown in the product summary */
.pcr-rate-unit { margin-left: 2px; font-size: .7em; font-weight: 600; opacity: .8; }

/* Info + result */
.pcr-info { display: flex; gap: 12px; align-items: flex-start; margin: 20px 0 0; padding: 14px 16px; background: var(--pcr-panel); border-radius: var(--pcr-radius); color: var(--pcr-accent); }
.pcr-info svg { flex: 0 0 auto; margin-top: 1px; }
.pcr-info p { margin: 0; font-size: 13.5px; color: var(--pcr-ink); }
.pcr-result { margin-top: 18px; }
.pcr-result-msg { font-size: 14px; color: var(--pcr-muted); }
.pcr-error { padding: 10px 14px; border-radius: 10px; background: #fdecec; color: #a40000; font-size: 14px; }
.pcr-result-price { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 2px 14px; }
.pcr-result-label { grid-column: 1 / -1; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--pcr-muted); }
.pcr-price { font-size: 2.1em; line-height: 1.1; color: var(--pcr-accent); font-weight: 700; }
.pcr-area { font-size: 13.5px; color: var(--pcr-muted); }
.pcr-delivery { margin: 8px 0 0; font-size: 13.5px; color: var(--pcr-muted); }
.single_add_to_cart_button.disabled { opacity: .45; cursor: not-allowed; }

/* Small screens */
@media (max-width: 549px) {
	.pcr-calc { font-size: 14px; }
	.pcr-tab { font-size: 13px; padding: 10px 6px; }
	.pcr-shapes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.pcr-shape-svg { max-width: 92px; }
	.pcr-tip p { width: 200px; }
	.pcr-shape:nth-child(2n) .pcr-tip p { right: -6px; }
	.pcr-step-row .pcr-select { max-width: none; }
	.pcr-price { font-size: 1.8em; }
	.pcr-cuts { grid-template-columns: 1fr; }
}
@media (max-width: 359px) {
	.pcr-dims { grid-template-columns: 1fr; }
}

/* Fit My Pool shortcode */
.pcr-fit { max-width: 1080px; margin-left: auto; margin-right: auto; }
.pcr-fit-title { margin: 0 0 14px; }
.pcr-fit-form .pcr-error { margin-top: 16px; }
.pcr-fit-actions { margin: 20px 0 0; }
.pcr-fit-actions .button { margin: 0; min-width: 220px; border-radius: 999px; background-color: var(--pcr-accent); }
.pcr-fit-locked { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 14px 18px; background: var(--pcr-panel); border-radius: var(--pcr-radius); font-weight: 700; }
.pcr-fit-locked span { flex: 1 1 auto; }
.pcr-fit-change { margin: 0; padding: 0; min-height: 0; background: none; border: 0; color: var(--pcr-accent); font-size: 14px; font-weight: 600; text-transform: none; letter-spacing: 0; text-decoration: underline; cursor: pointer; box-shadow: none; }
.pcr-fit-results { margin-top: 24px; transition: opacity .2s; }
.pcr-fit-results.is-loading { opacity: .6; }
.pcr-fit-results:empty { display: none; }
.pcr-fit-pool { margin: 0 0 6px; font-size: 14px; color: var(--pcr-muted); }
.pcr-fit-group { margin: 22px 0 12px; font-size: 1.25em; }
.pcr-fit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.pcr-fit-card { margin: 0; padding: 0; list-style: none; display: flex; }
.pcr-fit-card-link { position: relative; display: flex; flex-direction: column; flex: 1; background: #fff; border: 1px solid var(--pcr-line); border-radius: var(--pcr-radius); overflow: hidden; color: var(--pcr-ink); text-decoration: none; transition: box-shadow .2s, border-color .2s, transform .2s; }
.pcr-fit-card-link:hover, .pcr-fit-card-link:focus { border-color: var(--pcr-accent); box-shadow: 0 8px 24px rgba(0, 0, 0, .08); transform: translateY(-2px); color: var(--pcr-ink); }
.pcr-fit-img { display: block; aspect-ratio: 1 / 1; background: var(--pcr-panel); overflow: hidden; }
.pcr-fit-img img { display: block; width: 100%; height: 100%; object-fit: cover; margin: 0; }
.pcr-fit-badge { position: absolute; top: 10px; left: 10px; padding: 3px 10px; border-radius: 999px; background: var(--pcr-accent); color: #fff; font-size: 12px; font-weight: 700; }
.pcr-fit-body { display: flex; flex-direction: column; flex: 1; gap: 4px; padding: 14px 16px 16px; }
.pcr-fit-name { font-weight: 700; line-height: 1.3; }
.pcr-fit-detail { font-size: 13px; color: var(--pcr-muted); }
.pcr-fit-price { margin-top: auto; padding-top: 8px; font-size: 1.4em; font-weight: 700; color: var(--pcr-accent); }
.pcr-fit-price .pcr-from { font-size: 13px; font-weight: 600; color: var(--pcr-muted); }
.pcr-fit-cta { display: block; margin-top: 10px; padding: 9px 12px; border-radius: 999px; background: var(--pcr-accent); color: #fff; font-size: 14px; font-weight: 700; text-align: center; }
@media (max-width: 549px) {
	.pcr-fit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.pcr-fit-body { padding: 10px 12px 12px; }
	.pcr-fit-price { font-size: 1.15em; }
	.pcr-fit-actions .button { width: 100%; }
}

.pcr-dims-note { margin: -4px 0 12px; font-size: 13px; color: var(--pcr-muted, #5b6b73); }
