/*
 * CSI Services: single service page (loaded on single services only).
 * Styles for the HTML that the CSI Services shortcodes output on the "CSI Service – Single" template.
 * Everything built with Elementor widgets is styled in the widgets themselves.
 * (Moved here from the template's page Custom CSS in 1.5.0.)
 */

/* Keyboard focus */
body.single-csi_service a:focus-visible,body.single-csi_service button:focus-visible{outline:3px solid #FFCB32;outline-offset:2px}

/* Show the right card for the service (body classes set by the plugin from the service's settings) */
body.csi-booking-enquiry .csi-bk-booking,body.csi-booking-booking .csi-bk-enquiry,body.csi-booking-none .csi-aside,body.csi-booking-none .csi-mbar{display:none!important}
body.csi-enquiry-external .csi-enq-onsite,body.csi-enquiry-onsite .csi-enq-ext{display:none!important}

/* Booking form [csi_service_booking] */
.csi-bk-form{display:flex;flex-direction:column;gap:10px}
.csi-bk-form label{font-size:13.5px;font-weight:600;color:#0B2E38}
.csi-bk-form select,.csi-bk-form input{min-height:48px;border:1px solid #9FB8C0;border-radius:12px;padding:0 14px;font:inherit}
.csi-bk-form .csi-bk-price{font-size:22px;font-weight:700}
.csi-bk-submit{min-height:48px;border:0;border-radius:999px;background:#137288;color:#fff;font-weight:600;font-size:15.5px;cursor:pointer}
.csi-bk-submit:hover{background:#0E4F5E}
.csi-bk-note{font-size:12.5px;color:#4A6670;margin:0}

/* Sections in the service text: no line under the last one */
.csi-sec:last-of-type{border-bottom:0}

/* Header photos [csi_service_header_photos] (0 to 5 photos) */
.csi-hphotos{display:grid;gap:10px;border-radius:20px;overflow:hidden;margin:0 0 28px}
.csi-hphotos figure{margin:0;min-height:0}
.csi-hphotos img{width:100%;height:100%;object-fit:cover;display:block}
.csi-hphotos--1{grid-template-columns:1fr;height:420px}
.csi-hphotos--2{grid-template-columns:1fr 1fr;height:420px}
.csi-hphotos--3{grid-template-columns:2fr 1fr;grid-template-rows:1fr 1fr;height:450px}
.csi-hphotos--3 figure:first-child{grid-row:1 / span 2}
.csi-hphotos--4{grid-template-columns:2fr 1fr 1fr;grid-template-rows:1fr 1fr;height:450px}
.csi-hphotos--4 figure:first-child{grid-row:1 / span 2}
.csi-hphotos--4 figure:last-child{grid-column:2 / span 2}
.csi-hphotos--5{grid-template-columns:2fr 1fr 1fr;grid-template-rows:1fr 1fr;height:450px}
.csi-hphotos--5 figure:first-child{grid-row:1 / span 2}
@media (max-width:1024px){.csi-hphotos{height:370px}.csi-hphotos--4,.csi-hphotos--5{grid-template-columns:2fr 1fr}.csi-hphotos--4 figure:nth-child(n+4),.csi-hphotos--5 figure:nth-child(n+4){display:none}.csi-hphotos--4 figure:last-child{grid-column:auto}}
@media (max-width:767px){.csi-hphotos{height:260px;grid-template-columns:1fr!important;grid-template-rows:1fr!important;border-radius:14px;margin-bottom:20px}.csi-hphotos figure:not(:first-child){display:none}.csi-hphotos figure:first-child{grid-row:auto!important}}

/* Quote builder (07-quote-builder.php): "Get a quote for…" buttons (CSS class csi-quote-add) and the confirmation message */
.csi-quote-add.is-added .elementor-button{background:#137288!important;border-color:#137288!important;color:#fff!important}
.csi-quote-add.is-added .elementor-button:hover,.csi-quote-add.is-added .elementor-button:focus-visible{background:#0E4F5E!important;border-color:#0E4F5E!important}
.csi-quote-add.is-added .elementor-button-icon{display:none}
.csi-qtoast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);z-index:1000;display:flex;flex-wrap:wrap;gap:6px 14px;align-items:center;width:max-content;max-width:calc(100vw - 32px);padding:12px 18px;border-radius:14px;background:#0B2E38;color:#fff;font-size:15px;line-height:1.4;box-shadow:0 12px 30px rgba(11,46,56,.25)}
.csi-qtoast[hidden]{display:none}
.csi-qtoast__go{color:#FFCB32!important;font-weight:700;text-decoration:underline;white-space:nowrap}
.csi-qtoast__go:focus-visible{outline:3px solid #FFCB32;outline-offset:2px}
@media (max-width:1024px){.csi-qtoast{bottom:96px}}
