/* Copper Collar Equipment Catalog — styles for the dynamic blocks.
   Colors follow the site's Elementor globals; fallbacks match the approved pages. */
:root {
	--cce-primary: var(--e-global-color-primary, #5467BE);
	--cce-navy: #101B4E;
	--cce-ink: #0D0D00;
	--cce-muted: #5A6078;
	--cce-tint: #F6F7FF;
	--cce-line: #E6E8F0;
}

/* Breadcrumb */
.cce-breadcrumb { margin: 0; }
.cce-breadcrumb .sep { margin: 0 8px; opacity: .5; }

/* Gallery */
.cce-gallery { display: flex; flex-direction: column; gap: 10px; }
.cce-gallery-stage { position: relative; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: #F4F4F4; }
.cce-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility .35s; }
.cce-slide.is-active { opacity: 1; visibility: visible; }
.cce-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cce-gallery[data-count="1"] .cce-slide { position: static; opacity: 1; visibility: visible; height: 100%; }
.cce-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; border-radius: 50%; padding: 0;
	background: rgba(255, 255, 255, .9); color: var(--cce-navy); display: flex; align-items: center; justify-content: center; cursor: pointer;
	box-shadow: 0 2px 8px rgba(16, 27, 78, .15); transition: background .2s; z-index: 2; }
.cce-nav:hover, .cce-nav:focus-visible { background: #fff; }
.cce-nav .cce-ico { width: 12px; height: 14px; fill: currentColor; }
.cce-prev { left: 12px; }
.cce-next { right: 12px; }
.cce-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.cce-thumb { padding: 0; border: 2px solid transparent; border-radius: 4px; overflow: hidden; aspect-ratio: 4 / 3; background: #F4F4F4;
	cursor: pointer; opacity: .6; transition: opacity .2s, border-color .2s; }
.cce-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cce-thumb:hover, .cce-thumb.is-active { opacity: 1; }
.cce-thumb.is-active { border-color: var(--cce-primary); }
@media (max-width: 767px) { .cce-thumbs { grid-template-columns: repeat(4, 1fr); gap: 6px; } }

/* Check lists (features + site needs) */
.cce-list { list-style: none; margin: 0; padding: 0; }
.cce-list li { display: flex; align-items: flex-start; gap: 10px; padding-bottom: 4px; font-size: 16px; line-height: 1.6; color: var(--cce-ink); }
.cce-list li:last-child { padding-bottom: 0; }
.cce-list .cce-ico { flex: 0 0 14px; width: 14px; height: 14px; margin-top: 6px; fill: var(--cce-primary); }

/* Features */
.cce-features { display: flex; gap: 12px; }
.cce-feature-card { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: 6px; background: var(--cce-tint); }
.cce-feature-head { display: flex; align-items: center; gap: 10px; }
.cce-feature-head h3, .cce-feature-head h4 { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.4; color: var(--cce-navy); }
.cce-feature-icon { width: 18px; height: 18px; fill: var(--cce-primary); flex: 0 0 auto; }
.cce-features[data-groups="1"] .cce-list { columns: 2; column-gap: 32px; }
.cce-features[data-groups="1"] .cce-list li { break-inside: avoid; }
@media (max-width: 767px) {
	.cce-features { flex-direction: column; }
	.cce-features[data-groups="1"] .cce-list { columns: 1; }
}

/* Key spec chips */
.cce-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cce-chip { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 4px; background: var(--cce-tint); border-left: 3px solid var(--cce-primary); }
.cce-chip-label { font-size: 13px; font-weight: 500; line-height: 1.4; color: var(--cce-muted); }
.cce-chip-value { font-size: 15px; font-weight: 600; line-height: 1.35; color: var(--cce-navy); }

/* Extra table */
.cce-extra { margin-top: 28px; }
.cce-extra-title { margin: 0 0 12px; font-size: 18px; font-weight: 600; color: var(--cce-navy); }
.cce-table-wrap { overflow-x: auto; }
.cce-extra-table { width: 100%; border-collapse: collapse; margin: 0; background: #fff; border-radius: 6px; overflow: hidden; font-size: 15px; }
.cce-extra-table th, .cce-extra-table td { padding: 12px 16px; border: 0; border-bottom: 1px solid var(--cce-line); text-align: left; vertical-align: top; }
.cce-extra-table thead th { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--cce-muted); background: var(--cce-tint); }
.cce-extra-table tbody th { font-weight: 500; color: var(--cce-muted); }
.cce-extra-table td { font-weight: 600; color: var(--cce-navy); }
.cce-extra-table tbody tr:last-child > * { border-bottom: 0; }
.cce-extra-note { margin: 10px 0 0; font-size: 14px; line-height: 1.6; color: var(--cce-muted); }

/* Floor plan */
.cce-floor-plan { margin: 0; }
.cce-floor-plan img { display: block; width: 100%; height: auto; }
.cce-floor-plan figcaption { margin-top: 8px; font-size: 14px; color: var(--cce-muted); }

/* Browse sidebar */
.cce-browse { display: flex; flex-direction: column; gap: 18px; }
.cce-browse-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-weight: 600; color: var(--cce-navy); text-decoration: none; }
.cce-count { min-width: 24px; padding: 1px 8px; border-radius: 99px; background: var(--cce-tint); color: var(--cce-primary); font-size: 13px; text-align: center; }
.cce-browse ul { list-style: none; margin: 8px 0 0; padding: 0 0 0 2px; }
.cce-browse li { padding: 3px 0; }
.cce-browse li a { color: #3A3F55; text-decoration: none; font-size: 15px; }
.cce-browse li a:hover, .cce-browse-head:hover span:first-child { color: var(--cce-primary); text-decoration: underline; }

/* Hide sections a product has no content for (section containers use these CSS IDs). */
body.cce-no-floor-plan.cce-no-spec-sheet #floor-plan,
body.cce-no-floor-plan .cce-floor-plan-card,
body.cce-no-spec-sheet .cce-spec-sheet-card,
body.cce-no-site-needs #site-needs,
body.cce-no-compare #compare,
body.cce-no-features .cce-features-wrap { display: none !important; }


/* ---------- Quote form on product pages (dark navy section): readable labels, errors and confirmation ---------- */
body.single-equipment .gform_wrapper.gform-theme{--gf-ctrl-desc-color:rgba(255,255,255,.78);--gf-ctrl-label-color-req:#FFB4AB;--gf-ctrl-border-color-error:#F97066}
body.single-equipment .gform_wrapper.gform-theme .gfield_label,
body.single-equipment .gform_wrapper.gform-theme .gform-field-label,
body.single-equipment .gform_wrapper.gform-theme .gfield legend{color:#fff!important}
body.single-equipment .gform_wrapper.gform-theme .gfield_required,
body.single-equipment .gform_wrapper.gform-theme .gfield_required_text{color:#FFB4AB!important}
body.single-equipment .gform_wrapper.gform-theme .gform-field-label--type-sub,
body.single-equipment .gform_wrapper.gform-theme .gfield_description:not(.validation_message){color:rgba(255,255,255,.78)!important}
body.single-equipment .gform_wrapper.gform-theme .gform_validation_errors{background:#FEF3F2!important;border:1px solid #F04438!important;border-radius:8px!important;box-shadow:none!important}
body.single-equipment .gform_wrapper.gform-theme .gform_validation_errors .gform_submission_error,
body.single-equipment .gform_wrapper.gform-theme .gform_validation_errors .gform-icon{color:#B42318!important;font-weight:600}
body.single-equipment .gform_wrapper.gform-theme .gform_validation_errors .gform-icon{border-color:#B42318!important}
body.single-equipment .gform_wrapper.gform-theme .gfield_validation_message,
body.single-equipment .gform_wrapper.gform-theme .validation_message{color:#FFB4AB!important;background:none!important;border:0!important;padding:4px 0 0!important;font-weight:600}
body.single-equipment .gform_wrapper.gform-theme .gfield_error input,
body.single-equipment .gform_wrapper.gform-theme .gfield_error textarea,
body.single-equipment .gform_wrapper.gform-theme .gfield_error select{border-color:#F97066!important;box-shadow:0 0 0 1px #F97066!important}
body.single-equipment .gform_confirmation_message{color:#fff!important;background:rgba(255,255,255,.08);border-left:4px solid #32D583;border-radius:8px;padding:18px 20px;font-size:16px;line-height:1.55}
body.single-equipment .gform_confirmation_message a{color:#fff;text-decoration:underline}
body.single-equipment .gform_wrapper.gform-theme .gform_validation_errors{margin-bottom:20px!important}

/* Equipment cards: image fills the card width (no side gaps) */
.elementor-4028 .elementor-element-e7efb4e a{display:block}
.elementor-4028 .elementor-element-e7efb4e img{display:block;width:100%!important}

/* Sticky "On this page" tabs (equipment single) */
.elementor .elementor-widget.cce-jump-wrap{position:-webkit-sticky!important;position:sticky!important;top:calc(var(--cce-stick) + var(--cce-ab,0px));z-index:20;background:#fff;transition:box-shadow .2s ease}
.cce-jump-wrap.is-stuck{box-shadow:0 8px 16px -12px rgba(16,27,78,.45)}
.cce-jump-wrap .cc-jump{background:#fff;scroll-behavior:auto}
.cc-jump a{transition:color .15s ease,border-color .15s ease;-webkit-tap-highlight-color:transparent}
.cc-jump a:focus-visible{outline:2px solid var(--e-global-color-primary,#B87333);outline-offset:-4px;border-radius:4px}
.cc-jump.has-more-right{-webkit-mask-image:linear-gradient(90deg,#000 82%,transparent);mask-image:linear-gradient(90deg,#000 82%,transparent)}
.cc-jump.has-more-left{-webkit-mask-image:linear-gradient(90deg,transparent,#000 18%);mask-image:linear-gradient(90deg,transparent,#000 18%)}
.cc-jump.has-more-left.has-more-right{-webkit-mask-image:linear-gradient(90deg,transparent,#000 14%,#000 86%,transparent);mask-image:linear-gradient(90deg,transparent,#000 14%,#000 86%,transparent)}
@media (max-width:767px){.cc-jump{gap:2px}.cc-jump a{padding:14px 12px 12px;font-size:14px}}
.cce-jump-target:focus{outline:none}

/* ================= v1.1 (Dec 2026) ================= */

/* Gallery thumbnails: thin border, no theme button styling */
.cce-gallery .cce-thumb,
.cce-gallery .cce-thumb:hover,
.cce-gallery .cce-thumb:focus{padding:0!important;margin:0;min-height:0;background:#F4F4F4!important;border:1px solid var(--cce-line)!important;border-radius:6px!important;box-shadow:none!important;transform:none;opacity:.7}
.cce-gallery .cce-thumb:hover{opacity:1}
.cce-gallery .cce-thumb.is-active{opacity:1;border-color:var(--cce-primary)!important}
.cce-gallery .cce-thumb:focus-visible{outline:2px solid var(--cce-primary);outline-offset:2px}
.cce-gallery .cce-thumb img{border-radius:5px}

/* Gallery fit mode ([cc_gallery fit="auto"]): portrait/square photos show whole, on a blurred blue fill */
.cce-slide{overflow:hidden}
.cce-gallery[data-count="1"] .cce-slide.is-fit{position:relative}
.cce-slide.is-fit{background:var(--cce-navy)}
.cce-slide-bg{position:absolute;inset:-30px;background-size:cover;background-position:center;filter:blur(24px) saturate(1.15);transform:scale(1.1)}
.cce-slide.is-fit::after{content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(160deg,rgba(16,27,78,.62) 0%,rgba(84,103,190,.45) 100%)}
.cce-slide.is-fit img{position:relative;z-index:2;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 8px 18px rgba(0,0,0,.25))}

/* Sticky "On this page" tabs: CSS fallback so they stick even before scripts run (header heights per breakpoint) */
body{--cce-stick:92px}
@media (max-width:1300px){body{--cce-stick:101px}}
@media (max-width:880px){body{--cce-stick:139px}}
@media (max-width:540px){body{--cce-stick:117px}}
body.admin-bar{--cce-ab:32px}
@media (max-width:782px){body.admin-bar{--cce-ab:46px}}
.elementor .elementor-widget:has(> .elementor-widget-container > .cc-jump),
.elementor .elementor-widget:has(> .cc-jump){position:-webkit-sticky;position:sticky;top:calc(var(--cce-stick) + var(--cce-ab,0px));z-index:20;background:#fff}
#overview,#specifications,#floor-plan,#site-needs,#compare{scroll-margin-top:calc(var(--cce-stick) + var(--cce-ab,0px) + 76px)}

/* Mobile: never let the sidebar squeeze the gallery or the key specs */
.e-con > .elementor-widget-shortcode:has(.cce-gallery),
.e-con > .elementor-widget-shortcode:has(.cce-chips){flex-shrink:0;min-height:min-content}

/* "Need a different size?" callout at the bottom of the product sidebar */
.elementor-widget.cce-size-cta-wrap{margin:6px -28px -28px!important;width:auto!important;max-width:none!important;align-self:stretch}
.cce-size-cta{margin:0;padding:16px 28px;background:var(--cce-tint);border-top:1px solid var(--cce-line);border-radius:0 0 6px 6px;font-size:15px;line-height:1.5;color:var(--cce-muted)}
.cce-size-cta-q{display:block;font-weight:600;color:var(--cce-navy)}
.cce-size-cta a{font-weight:600;color:var(--cce-primary);text-decoration:none}
.cce-size-cta a:hover,.cce-size-cta a:focus-visible{text-decoration:underline}
@media (max-width:767px){.elementor-widget.cce-size-cta-wrap{margin:8px 0 0!important}.cce-size-cta{border:1px solid var(--cce-line);border-radius:6px;padding:14px 16px}}

/* Keep gallery layers (photo, arrows) inside the gallery so they never paint over the sticky header */
.cce-gallery-stage{isolation:isolate;z-index:0}
