/* Authorized HTML replacements override old fixed image stages. Original
   styles remain on disk. Controls have their own rows rather than overlays. */
/* User-requested alignment: center only the hero's headline/country badge.
   A fit-content flex badge needs auto side margins; text-align on its parent
   alone would not center a block. Keep paragraph alignment and copy intact. */
body .original-copy-hero .title-container h1 {text-align:center;}
body .original-copy-hero .country-badge {display:flex;width:fit-content;max-width:100%;box-sizing:border-box;margin-inline:auto;justify-content:center;}
body .original-copy-hero .assembling-brand {margin-inline:auto;}
#reviews {padding:clamp(16px,3vw,40px);}
.review-toolbar,.review-navigation {display:flex;align-items:center;gap:10px;}
.review-toolbar {justify-content:space-between;flex-wrap:wrap;margin:20px 0 14px;}
.review-picker-label {display:grid;gap:6px;font-size:13px;color:#57636b;min-width:0;max-width:100%;}
.review-picker {max-width:100%;width:300px;padding:10px;border:1px solid #cbd8df;border-radius:9px;background:#fff;color:#29333a;font:inherit;font-size:15px;}
.review-toolbar .review-picker-label {flex:1;}
#reviews .review-arrow {position:static;display:inline-grid;place-items:center;width:44px;height:44px;min-width:44px;border:1px solid #bcced6;border-radius:50%;background:#fff;color:#4c626e;font:32px/1 Arial;box-shadow:none;transform:none;cursor:pointer;}
#reviews .review-arrow:hover {background:#e9f6fa;color:#163e50;border-color:#00799f;}
#reviews .review-arrow:active {background:#d5edf5;color:#163e50;}
#reviews .review-arrow:focus-visible,.review-expand:focus-visible,.review-picker:focus-visible {outline:3px solid #00799f;outline-offset:3px;}
.review-position {font-size:14px;color:#5b6972;white-space:nowrap;min-width:48px;text-align:center;}
.html-reviews+.review-navigation {justify-content:flex-end;margin-top:12px;}
.review-card {width:100%;box-sizing:border-box;background:#fff;border:1px solid #dfe5e8;border-radius:15px;padding:clamp(15px,2.5vw,28px);color:#242b30;box-shadow:0 5px 22px #24435508;}
.review-card[hidden] {display:none!important;}
.review-card .review-stars {color:#f7a600;letter-spacing:1px;font-size:23px;line-height:1.3;margin-bottom:9px;}
.review-person {display:flex;align-items:center;gap:11px;min-width:0;margin-bottom:16px;}
.review-avatar {width:48px!important;height:48px!important;flex:0 0 48px;object-fit:cover;border-radius:50%;box-shadow:none!important;}
.review-identity {min-width:0;}
.review-name {display:block;font-size:16px;line-height:1.4;color:#282e33;overflow-wrap:anywhere;}
.review-card .review-date {display:block;font-size:13px;line-height:1.4;color:#70777e;margin-top:3px;}
.review-source {display:inline-flex;align-items:center;gap:4px;margin-left:auto;white-space:nowrap;color:#7c8287;font:12px Arial;}
.review-source img {width:18px!important;height:18px!important;border-radius:4px;}
.review-card .review-body p,.review-card .review-reply p {font:400 17px/1.65 Arial,sans-serif;color:#282e33;margin:0 0 12px;text-align:left;overflow-wrap:anywhere;}
/* Full text remains in the DOM and is available in the full-width dialog.
   Limit only the preview so long anonymous screenshots do not push controls
   several screens away. Never crop the opened review. */
.review-card:not(.review-full) .review-body {display:-webkit-box;-webkit-line-clamp:10;-webkit-box-orient:vertical;overflow:hidden;}
.review-full .review-body {display:block;overflow:visible;}
.review-photos {display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:8px;margin:0 0 16px;}
.review-photos:empty {display:none;}
.review-photos a {min-width:0;display:block;}
.review-photos img {display:block;width:100%;height:220px;object-fit:cover;border-radius:9px;}
.review-full .review-photos img {height:auto;max-height:70dvh;object-fit:contain;background:#f3f7f9;}
.review-reply {border-left:3px solid #e5ecef;padding-left:16px;margin-top:20px;}
.review-actions {display:flex;gap:18px;align-items:center;margin-top:18px;flex-wrap:wrap;}
.review-card .review-actions a,.review-card .review-expand {background:transparent;color:#006e91;border:0;font:600 14px/1.5 Arial;text-decoration:underline;text-underline-offset:3px;padding:8px 0;box-shadow:none;cursor:pointer;}
.review-card .review-actions a:hover,.review-card .review-expand:hover {color:#164050;background:transparent;}
/* A separate toolbar keeps close visible while allowing the entire dialog to
   use viewport width. No arbitrary image max-height shrinks source material. */
body .modal-overlay {padding:8px!important;box-sizing:border-box;}
body .modal-overlay .modal-content {width:100%!important;max-width:none!important;max-height:calc(100dvh - 16px)!important;margin:auto!important;padding:0!important;display:flex;flex-direction:column;overflow:hidden!important;border-radius:16px;}
.modal-toolbar {flex:0 0 auto;display:flex;justify-content:flex-end;padding:8px 12px;border-bottom:1px solid #e3ecef;background:#fff;}
body .modal-toolbar .modal-close {position:static!important;transform:none!important;width:42px;height:42px;min-height:42px;margin:0;box-shadow:none;}
.modal-scroll-region {overflow:auto;overscroll-behavior:contain;padding:clamp(12px,2vw,28px);min-height:0;}
/* Compact neutral arrows sit below photos, right aligned. Inherit no old
   translateY positioning or bright filled hover from icon-control styles. */
.product-controls-row {display:flex;justify-content:flex-end;gap:8px;padding:10px 2px 0;}
body .product-controls-row :is(.product-nav,.modal-photo-nav) {position:static!important;transform:none!important;width:44px;height:44px;min-width:44px;min-height:44px;border:1px solid #bcced6;background:#ffffffc9;color:#4c626e;box-shadow:none;opacity:1;}
body .product-controls-row :is(.product-nav,.modal-photo-nav):hover {background:#e9f6fa;color:#163e50;border-color:#00799f;}
body .product-controls-row :is(.product-nav,.modal-photo-nav):active {background:#d5edf5;color:#163e50;}
body .product-modal-inner {display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:28px;align-items:start;}
body .product-modal-inner .product-modal-image-slider {width:100%;min-width:0;}
/* Fit the entire genuine photograph and its controls within a useful screen
   height; contain preserves uncropped pixels in mixed portrait/landscape sets. */
body .product-modal-images-wrapper {height:min(62dvh,750px);max-height:none;background:#f3f7f9;}
body .product-modal-images-track,body .product-modal-image-slide {height:100%;}
body .product-modal-image-slide img {height:100%;object-fit:contain;}
@media(min-width:768px) {.products-slider>.product-controls-row {display:none;}}
@media(max-width:767px) {body .product-modal-inner {grid-template-columns:minmax(0,1fr);gap:16px;}body .product-modal-info {padding:0;}}
body .modal-scroll-region .modal-image {max-height:none!important;width:100%;height:auto;object-fit:contain;}
#testimonialModal .review-card {border:0;padding:0;box-shadow:none;border-radius:0;}
body .modal-overlay .product-modal-content {width:100%;max-width:none;}
body .modal-overlay .product-modal-image,body .modal-overlay .product-modal-info {width:100%;min-width:0;}
body .modal-overlay .contact-card {max-width:760px;margin-inline:auto;}
.measure-guide h2 {max-width:1100px;margin:0 0 22px;color:#183c4e;font-size:clamp(22px,2.8vw,36px);line-height:1.2;}
.measure-layout {display:grid;grid-template-columns:minmax(0,1.7fr) minmax(220px,1fr);gap:30px;align-items:center;}
.measure-drawing {position:relative;margin:0;max-width:900px;}
.measure-drawing img {display:block;width:100%;height:auto;}
.measure-label {position:absolute;color:#ae2e27;font:600 clamp(14px,2.3vw,28px)/1 Arial;background:#f3f8fa;padding:3px;border-radius:5px;}
.measure-label.height {top:88%;}.measure-label.h1 {left:39%;}.measure-label.h2 {left:56%;}.measure-label.h3 {left:73%;}
.measure-label.breadth {left:88%;}.measure-label.b1 {top:18%;}.measure-label.b2 {top:47%;}.measure-label.b3 {top:76%;}
.measure-legend p {font-size:clamp(17px,1.8vw,24px);line-height:1.5;color:#2c3b44;}
.measure-legend strong {color:#ae2e27;font-size:1.25em;}
.measure-instructions {margin-top:24px;border-top:1px solid #dce8ec;padding-top:10px;}
.measure-instructions p {font-size:clamp(16px,1.5vw,20px);line-height:1.65;color:#29353e;}
@media(min-width:900px) {body .modal-scroll-region .product-modal-body {display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:28px;} #testimonialModal .review-full .review-body {columns:2;column-gap:36px;} #testimonialModal .review-full .review-body p {break-inside:avoid;}}
@media(max-width:600px) {body .modal-overlay {padding:4px!important;}body .modal-overlay .modal-content {max-height:calc(100dvh - 8px)!important;border-radius:12px;}.modal-toolbar {padding:5px 8px;} .modal-scroll-region {padding:12px;}#reviews {padding:24px 12px;}.review-toolbar {gap:12px;}.review-picker {width:200px;}.review-card {padding:15px 12px;}.review-card .review-body p {font-size:16px;line-height:1.6;}.review-name {font-size:15px;}.review-person {gap:8px;}.review-source {font-size:11px;}.review-avatar {width:42px!important;height:42px!important;flex-basis:42px;}.measure-layout {grid-template-columns:minmax(0,1fr);gap:4px;}.measure-legend {display:flex;gap:14px;}.measure-legend p {flex:1;font-size:15px;}.measure-guide h2 {font-size:23px;}.review-photos img {height:170px;}}
@media(max-width:600px) {#reviews {margin-left:-20px;margin-right:-20px;width:calc(100% + 40px);box-sizing:border-box;}.review-toolbar {flex-wrap:nowrap;align-items:flex-end;}.review-toolbar .review-picker {width:100%;}.review-navigation {gap:6px;}.review-toolbar .review-picker-label {width:0;}.review-full .review-body p {font-size:17px;}}
/* Two familiar icons replace the wide mobile action strip. Use the existing
   phone/MAX links, with full accessible names and 52px touch targets. Desktop
   contact links and the original appointment entry points remain available. */
@media(max-width:767px) {
 body .mobile-contact {left:auto;right:12px;bottom:calc(12px + env(safe-area-inset-bottom));display:flex;gap:9px;padding:7px;border:1px solid #d8e5eb;border-radius:40px;background:#fffffff5;box-shadow:0 5px 22px #17374626;}
 body .mobile-contact a {width:52px;height:52px;min-height:52px;min-width:52px;padding:0;border:1px solid #d4e2e8;border-radius:50%;display:flex;align-items:center;justify-content:center;box-sizing:border-box;}
 body .mobile-contact a.contact-phone-icon {background:#00799f;border-color:#00799f;color:#fff;}
 body .mobile-contact a.contact-phone-icon:hover {background:#006781;border-color:#006781;color:#fff;}
 body .mobile-contact a.contact-phone-icon:active {background:#00536e;border-color:#00536e;color:#fff;}
 body .mobile-contact a.contact-max-icon {background:#fff;color:#29353e;}
 body .mobile-contact a.contact-max-icon:hover {background:#eef8fc;border-color:#00799f;color:#29353e;}
 body .mobile-contact a.contact-max-icon:active {background:#deeff6;color:#29353e;}
 .contact-max-icon img {display:block;width:32px;height:32px;object-fit:contain;border-radius:9px;}
}
