/* Public site and CRM share the same surfaces while keeping their own layouts. */
body:is(.luma-storefront, .crm-page) {
    --luma-ui-brand: #0096b2;
    --luma-ui-rose: #f29499;
    --luma-ui-line: rgb(0 150 178 / 25%);
    --luma-ui-wash: rgb(0 150 178 / 6%);
    --luma-ui-shadow: 0 3px 0 rgb(242 148 153 / 62%), 0 12px 28px rgb(0 150 178 / 14%);
}

.luma-storefront main :is(.luma-service, .luma-category-catalog, .luma-featured-card,
    .product-grid article, .luma-groom, .luma-clinic, .luma-store, .luma-record,
    .luma-visit, .luma-received, .luma-payment-card, .luma-bank-card,
    .luma-cartilla-access, .luma-cartilla-patient, .pa-booking, .crm-login),
.luma-storefront .luma-gallery-grid figure,
.crm-page .crm-main :is(.card, .crm-stat, .crm-module, .crm-patient-card,
    .crm-record-group, .luma-catalog-card, .lc, .lb-panel, .lb-shortcut) {
    border: 1px solid var(--luma-ui-line);
    border-radius: 18px;
    box-shadow: var(--luma-ui-shadow);
}

.luma-storefront main :is(.luma-service, .luma-featured-card, .product-grid article,
    .luma-clinic, .luma-bank-card),
.crm-page .crm-main :is(.crm-stat, .crm-patient-card, .luma-catalog-card, .luma-crm-services,
    .luma-assignment-panel, .luma-directory-panel, .lb-panel) {
    background-image: linear-gradient(145deg, var(--luma-ui-wash), transparent 52%);
}

.luma-storefront .luma-hero,
.luma-storefront .luma-category-hero,
.crm-page .crm-main :is(.crm-hero, .crm-patient-hero, .luma-staff-passport > header),
.crm-page .crm-main .lc > header:has(> h1) {
    box-shadow: var(--luma-ui-shadow);
    border-block-end: 3px solid var(--luma-ui-rose);
}
.luma-storefront .luma-hero-photo,
.luma-storefront .luma-visit-map,
.luma-storefront .luma-gallery-grid figure {
    border-radius: 16px;
    overflow: hidden;
}
.luma-storefront .luma-cover-photo,
.luma-storefront .luma-service-photo,
.luma-storefront .luma-gallery-grid img { transition: transform .25s ease; }

.crm-page .crm-main :is(.crm-directory, .luma-directory, .lc, .luma-crm-services) {
    min-inline-size: 0;
}
.crm-page .crm-main .lc-scroll { max-inline-size: 100%; overflow-x: auto; }
.crm-page .crm-main .lc-scroll th { background: rgb(0 150 178 / 9%); }
.crm-page .crm-main .lc-scroll :is(td, th) { padding-block: 9px; }
.crm-page .crm-main .lc-scroll tbody tr:nth-child(even) { background: var(--luma-ui-wash); }
.crm-page .crm-main .luma-crm-service-group[open] {
    border-color: var(--luma-ui-brand);
    box-shadow: inset 3px 0 var(--luma-ui-rose);
}
.crm-page .crm-sidebar nav a[aria-current="page"] {
    box-shadow: inset 3px 0 var(--luma-ui-rose);
}

.luma-storefront :is(.luma-catalog-option, .pa-days button, .pa-times button),
.crm-page .crm-main :is(.luma-directory-entry, .lc-item, .ops-day, .lb-shortcut) {
    transition: border-color .18s ease, box-shadow .18s ease;
}
.luma-storefront .luma-catalog-option:has(:checked),
.luma-storefront :is(.pa-days, .pa-times) button[aria-pressed="true"] {
    box-shadow: inset 0 0 0 2px var(--luma-ui-brand), inset 4px 0 var(--luma-ui-rose);
}
.luma-storefront :is(a, button, summary, input, select, textarea):focus-visible,
.crm-page :is(a, button, summary, input, select, textarea):focus-visible {
    outline: 2px solid var(--luma-ui-brand);
    outline-offset: 3px;
}
.luma-storefront :is(.luma-hero, .luma-category-hero, .luma-footer) :is(a, button):focus-visible,
.crm-page .crm-sidebar a:focus-visible { outline-color: #fff; }
.luma-storefront main :is(button, a.button, .luma-service-cta):not(:disabled):not([aria-disabled="true"]),
.crm-page .crm-main :is(button[type="submit"], a.button):not(:disabled):not([aria-disabled="true"]) {
    color: #fff !important;
    background-color: var(--luma-ui-brand);
}
@media (hover: hover) {
    .luma-storefront .luma-service:hover .luma-service-photo,
    .luma-storefront .luma-gallery-grid figure:hover img { transform: scale(1.035); }
    .luma-storefront .luma-catalog-option:hover,
    .crm-page .crm-main :is(.luma-directory-entry, .lc-item, .ops-day, .lb-shortcut):hover {
        border-color: var(--luma-ui-brand);
        box-shadow: 0 5px 14px rgb(0 150 178 / 18%);
    }
}
@media (max-width: 600px) {
    .luma-storefront main :is(.luma-service, .luma-featured-card, .luma-visit),
    .crm-page .crm-main :is(.card, .crm-patient-card, .luma-catalog-card, .lc) {
        border-radius: 14px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .luma-storefront :is(.luma-cover-photo, .luma-service-photo, .luma-gallery-grid img,
        .luma-catalog-option, .pa-days button, .pa-times button),
    .crm-page .crm-main :is(.luma-directory-entry, .lc-item, .ops-day, .lb-shortcut) {
        transition: none;
        transform: none !important;
    }
}
