fogo-service-catalogue{display:block;width:100%;min-width:0}
form.svc-catalogue{display:block;margin:0;background:white;color:#203e44;text-align:left}
.svc-catalogue [hidden]{display:none!important}
.svc-location{margin:0 0 .75rem;font-size:.9rem}
.svc-catalogue .svc-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
    align-items: start;
    gap: .65rem .8rem;
    margin-bottom: .875rem;
}
.svc-catalogue .svc-filters > label,
.svc-catalogue .svc-filters > .svc-branch-filter {
    display: grid;
    gap: .3rem;
    margin: 0;
    min-width: 0;
    font-size: .875rem;
    font-weight: 600;
    line-height: 1.3;
}
.svc-catalogue .svc-filters input,
.svc-catalogue .svc-filters select,
.svc-catalogue .svc-filters summary {
    width: 100%;
    box-sizing: border-box;
    height: 44px;
    min-height: 44px;
    margin: 0;
    padding: 0 .7rem;
    border: 1px solid #9eb4b4;
    border-radius: .4rem;
    font: inherit;
    font-weight: 400;
    color: inherit;
    background-color: white;
}
.svc-grid,.sample-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,15rem),1fr));gap:.65rem}
.svc-grid label.svc-card{position:relative;border:1px solid #d1dedc;background:white;border-radius:.55rem;overflow:hidden;display:flex;align-items:stretch;min-width:0;cursor:pointer;margin:0;padding:0}
.svc-card:hover,.svc-card:focus-within{outline:2px solid #347b77;outline-offset:-2px}
.svc-card:has(:checked){box-shadow:inset 0 0 0 2px #166b60;background:#eff9f6}
.svc-card:has(:checked)::after{content:'✓';position:absolute;top:.25rem;left:.25rem;color:white;background:#166b60;padding:0 .35rem;border-radius:50%}
.svc-catalogue .svc-card input{position:absolute;opacity:0;width:1px;height:1px;min-height:0}
.svc-card img{width:29%;max-width:6.5rem;height:auto;min-height:6.5rem;object-fit:cover;align-self:stretch}
.svc-body{display:flex;flex:1;flex-direction:column;justify-content:center;gap:.18rem;padding:.65rem;min-width:0;line-height:1.3;overflow-wrap:anywhere}
.svc-category,.svc-address,.svc-body small{font-size:.75rem;color:#526d70}.svc-name{font-size:1rem}.svc-cost{font-size:.85rem;color:#126458}
.svc-action{display:flex;align-items:center;justify-content:space-between;gap:.7rem;margin-top:1rem}.svc-action span{font-size:.85rem}
.svc-catalogue button,.image-editor button{border:0;background:#205e61;color:white;border-radius:.45rem;padding:.5rem 1rem;min-height:44px;cursor:pointer}
.svc-catalogue button:disabled{background:#dbe5e4;color:#506465;cursor:default}.svc-more{margin-top:.6rem}.catalogue-change{margin-bottom:1rem}.catalogue-change summary{cursor:pointer;padding:.6rem}
.image-editor {margin:0; padding:clamp(.75rem,3vw,2rem); font:1rem/1.45 system-ui,sans-serif; color:#203e44; background:#f3f7f6}
.image-editor main {box-sizing:border-box; max-width:48rem; margin:auto; padding:clamp(1rem,3vw,2rem); background:white; border:1px solid #d5e1df; border-radius:1rem}
.image-heading {display:flex; align-items:center; justify-content:space-between; gap:1rem; margin-block:1rem}
.image-heading h1 {font-size:1.5rem; margin:0}
.image-heading h2 {margin:.25rem 0 0; font-size:1rem; overflow-wrap:anywhere}
.image-editor .current-image {width:5rem; height:5rem; object-fit:cover; border-radius:.65rem}
.image-editor fieldset {min-width:0; margin:0 0 1rem; padding:.75rem 0 0; border:0; border-top:1px solid #d5e1df}
.image-editor legend {font-weight:650; padding-right:.6rem}
.image-editor input[type=radio] {width:1rem; height:1rem; flex:none; margin:0; accent-color:#00695b}
.image-editor fieldset > label,.image-upload label {display:flex; align-items:center; gap:.5rem; min-height:44px; cursor:pointer}
.image-editor .sample-grid {display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.6rem; margin:.25rem 0 .9rem}
.sample-grid label {overflow:hidden; border:1px solid #cbdad6; border-radius:.6rem; cursor:pointer}
.sample-grid label:has(:checked) {background:#edf8f4; border-color:#00695b; box-shadow:inset 0 0 0 1px #00695b}
.sample-grid label:focus-within {outline:2px solid #00695b; outline-offset:2px}
.sample-grid img {display:block; width:100%; aspect-ratio:2.35; object-fit:cover}
.sample-caption {display:flex; align-items:baseline; gap:.4rem; padding:.5rem; font-size:.9rem; overflow-wrap:anywhere}
.image-upload {border-top:1px solid #d5e1df}
.image-upload input[type=file] {max-width:100%}
.image-upload p {margin:.5rem 0; font-size:.85rem}
@media(max-width:35rem) {.image-editor .sample-grid {grid-template-columns:repeat(2,minmax(0,1fr))}}

@media(max-width:600px){.svc-action{align-items:stretch;flex-direction:column}.svc-filters{gap:.4rem}.svc-grid{grid-template-columns:1fr}}

.svc-branch-filter{position:relative;flex:1 1 9rem;min-width:0;font-size:.82rem;font-weight:600}
.svc-branch-filter summary{display:flex;align-items:center;justify-content:space-between;gap:.4rem;min-height:44px;padding:.4rem;border:1px solid #9eb4b4;border-radius:.4rem;box-sizing:border-box;cursor:pointer}
.svc-branch-filter summary::after{content:'▾'}
.svc-branch-options{position:absolute;z-index:3;inset-inline:0;max-height:16rem;overflow:auto;background:white;border:1px solid #9eb4b4;border-radius:.4rem}
.svc-branch-options button{display:block;width:100%;text-align:start;background:white;color:#203e44}
.svc-branch-options button:is(:hover,:focus-visible,[aria-pressed="true"]){background:#e0efeb}

/* Use the same label column for the Location control and its address. */
.cp-kiosk .service-provider {
    --location-inset: clamp(.5rem, 2vw, 1.25rem);
    --location-label-width: clamp(5rem, 14vw, 10rem);
}
.cp-kiosk .service-provider .booking-location-row {
    display: grid;
    grid-template-columns: var(--location-label-width) minmax(0, 1fr);
    margin-inline: var(--location-inset);
    margin-bottom: 0;
    padding: 0;
}
.cp-kiosk .booking-location-row > .label,
.cp-kiosk .booking-location-row > .selection {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}
.cp-kiosk .booking-location-row + fogo-service-catalogue .svc-location {
    margin-inline: calc(var(--location-inset) + var(--location-label-width)) var(--location-inset);
    overflow-wrap: anywhere;
}

.cp-kiosk .ipad-voucher-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
}
.cp-kiosk .ipad-voucher-wrapper label { margin: 0; }
.cp-kiosk .ipad-voucher-wrapper select,
.cp-kiosk .ipad-voucher-wrapper input {
    width: 100%;
    min-height: 44px;
    box-sizing: border-box;
    border: 1px solid #acbfc1;
    border-radius: 6px;
    background-color: white;
    color: #173a40;
    padding: 6px 12px;
    font: inherit;
}
.cp-kiosk .ipad-voucher-wrapper select + label { margin-top: 6px; }
.cp-kiosk .ipad-voucher-wrapper p { margin: 0; line-height: 1.45; }
.cp-kiosk #app .ipad-voucher-wrapper select {
    height: 44px;
    appearance: none;
    border: 1px solid #acbfc1;
    padding-inline-end: 32px;
    background-image: linear-gradient(45deg, transparent 50%, #466369 50%),
                      linear-gradient(135deg, #466369 50%, transparent 50%);
    background-position: right 17px center, right 12px center;
    background-size: 5px 5px;
    background-repeat: no-repeat;
}

.cp-kiosk .booking-location-row + fogo-service-catalogue > .svc-location {margin-block:6px 20px}
.svc-catalogue .svc-filters :is(input[data-search],select[data-category]) {
    appearance:none;box-sizing:border-box;height:46px;min-height:46px;width:100%;font-size:16px;
}
.svc-catalogue .svc-filters select[data-category] {
    padding-right:32px;background-image:linear-gradient(45deg,transparent 50%,#395272 50%),linear-gradient(135deg,#395272 50%,transparent 50%);
    background-position:right 16px center,right 11px center;background-size:5px 5px;background-repeat:no-repeat;
}

fogo-service-catalogue > .svc-branch-filter { margin-bottom: 20px; }
.svc-branch-filter > .svc-location { margin: 6px 0 0; overflow-wrap: anywhere; }
