/*
Plugin: XL Custom Samples — frontend
Version: 3.0  (modern shadcn/tailwind-flavored)
*/

:root {
    --xl-brand: #ff3b00;
    --xl-brand-hover: #e63500;
    --xl-brand-soft: #fff1ec;
    --xl-text: #0f172a;
    --xl-muted: #64748b;
    --xl-border: #e5e7eb;
    --xl-border-strong: #d1d5db;
    --xl-soft: #f8fafc;
    --xl-card: #ffffff;
    --xl-radius-sm: 6px;
    --xl-radius: 8px;
    --xl-radius-lg: 12px;
    --xl-shadow-sm: 0 1px 2px rgba(15,23,42,.06);
    --xl-shadow: 0 4px 12px rgba(15,23,42,.08), 0 1px 3px rgba(15,23,42,.04);
    --xl-shadow-lg: 0 20px 40px rgba(15,23,42,.12), 0 4px 12px rgba(15,23,42,.06);
    --xl-ring: 0 0 0 3px rgba(255,59,0,.18);
    --xl-ease: cubic-bezier(.22,1,.36,1);
}

body.no-scroll { overflow: hidden; }

/* =========================================================
   UNIQUE BUTTON SYSTEM (.xl-cs-btn) — defeats theme overrides
   ========================================================= */
.xl-cs-btn,
a.xl-cs-btn,
button.xl-cs-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 18px !important;
    border-radius: 8px !important;
    border: 1px solid transparent !important;
    background: #fff !important;
    color: var(--xl-text) !important;
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    text-decoration: none !important;
    text-transform: none !important;
    cursor: pointer !important;
    box-shadow: none !important;
    transition: background .15s var(--xl-ease), color .15s, border-color .15s, transform .05s, box-shadow .15s !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}
.xl-cs-btn:hover { box-shadow: var(--xl-shadow-sm) !important; }
.xl-cs-btn:active { transform: translateY(1px) !important; }
.xl-cs-btn:focus-visible { outline: none !important; box-shadow: var(--xl-ring) !important; }

.xl-cs-btn-primary,
a.xl-cs-btn-primary,
button.xl-cs-btn-primary {
    background: var(--xl-brand) !important;
    border-color: var(--xl-brand) !important;
    color: #fff !important;
}
.xl-cs-btn-primary:hover { background: var(--xl-brand-hover) !important; border-color: var(--xl-brand-hover) !important; color: #fff !important; }

.xl-cs-btn-ghost,
a.xl-cs-btn-ghost {
    background: var(--xl-soft) !important;
    border-color: var(--xl-border) !important;
    color: var(--xl-text) !important;
}
.xl-cs-btn-ghost:hover { background: #f1f5f9 !important; border-color: var(--xl-border-strong) !important; color: var(--xl-text) !important; }

.xl-cs-btn-block { width: 100% !important; }

.xl-cs-icon-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 999px !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    color: var(--xl-text) !important;
    cursor: pointer !important;
    padding: 0 !important;
    transition: background .15s, color .15s, border-color .15s !important;
}
.xl-cs-icon-btn:hover { background: var(--xl-soft) !important; border-color: var(--xl-border) !important; }
.xl-cs-icon-btn:focus-visible { outline: none; box-shadow: var(--xl-ring); }

/* =========================================================
   OFF-CANVAS DRAWER
   ========================================================= */
#xl-cs-drawer-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(15,23,42,.55);
    backdrop-filter: blur(4px);
    z-index: 9999;
    pointer-events: none;
}
body.xl-cs-drawer-open #xl-cs-drawer-overlay {
    display: block;
    pointer-events: auto;
}

#xl-cs-drawer {
    position: fixed; top: 0; right: 0; bottom: 0;
    width: 460px; max-width: 92%;
    background: #fff;
    visibility: hidden; opacity: 0;
    transform: translateX(100%);
    box-shadow: var(--xl-shadow-lg);
    transition: transform .35s var(--xl-ease), opacity .25s var(--xl-ease), visibility .25s, z-index 0s linear .35s;
    z-index: -1;
    pointer-events: none;
    display: flex; flex-direction: column;
}
#xl-cs-drawer.opened {
    visibility: visible; opacity: 1; transform: translateX(0);
    z-index: 99999;
    pointer-events: auto;
    transition: transform .35s var(--xl-ease), opacity .25s var(--xl-ease), visibility .25s, z-index 0s;
}
#xl-cs-drawer .inner { display: flex; flex-direction: column; height: 100%; min-height: 0; }
#xl-cs-drawer .fly-samples-wrap {
    flex: 1; min-height: 0;
    overflow-y: auto;
    background: #fff;
    scrollbar-width: thin;
}
.fly-samples-wrap::-webkit-scrollbar { width: 6px; }
.fly-samples-wrap::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
.fly-samples-content { display: flex; flex-direction: column; min-height: 100%; }
.fly-samples-body { flex: 1; }
.fly-samples-body-content { padding: 20px 24px; }

/* Drawer header */
.xl-cs-drawer-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 20px 18px 24px;
    border-bottom: 1px solid var(--xl-border);
    background: #fff;
    position: sticky; top: 0; z-index: 2;
}
.xl-cs-drawer-title-wrap { display: flex; align-items: center; gap: 10px; }
h3.fly-samples-title {
    margin: 0; padding: 0;
    font-size: 18px; font-weight: 700;
    color: var(--xl-text); letter-spacing: -.01em;
}
.xl-cs-drawer-count {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 24px; height: 24px; padding: 0 8px;
    background: var(--xl-brand-soft); color: var(--xl-brand);
    border-radius: 999px; font-size: 12px; font-weight: 700;
}

/* Progress bar */
.xl-cs-progress { margin-bottom: 18px; }
.xl-cs-progress-meta {
    display: flex; justify-content: space-between;
    font-size: 12px; color: var(--xl-muted); margin-bottom: 6px;
    font-weight: 500;
}
.xl-cs-progress-meta span:last-child { color: var(--xl-brand); font-weight: 600; }
.xl-cs-progress-bar {
    height: 6px; border-radius: 999px;
    background: var(--xl-soft); overflow: hidden;
}
.xl-cs-progress-fill {
    height: 100%; width: 0%;
    background: linear-gradient(90deg, var(--xl-brand), #ff7a4d);
    border-radius: 999px;
    transition: width .35s var(--xl-ease);
}

/* Drawer sample rows */
.product-samples-list {
    display: flex; flex-direction: column; gap: 10px;
}
.xl-cs-row {
    display: grid; grid-template-columns: 64px 1fr 32px;
    align-items: center; gap: 14px;
    padding: 12px;
    border: 1px solid var(--xl-border);
    border-radius: var(--xl-radius);
    background: #fff;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.xl-cs-row:hover {
    border-color: var(--xl-border-strong);
    box-shadow: var(--xl-shadow-sm);
}
.xl-cs-row-img {
    width: 64px; height: 64px;
    border-radius: var(--xl-radius-sm);
    overflow: hidden; background: var(--xl-soft);
    border: 1px solid var(--xl-border);
}
.xl-cs-row-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.xl-cs-row-info { min-width: 0; }
.xl-cs-row-name {
    font-size: 14px; font-weight: 600; color: var(--xl-text);
    margin: 0 0 2px; line-height: 1.3;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.xl-cs-row-detail {
    font-size: 12px; color: var(--xl-muted);
    margin: 0 0 4px; line-height: 1.3;
}
.xl-cs-row-free {
    display: inline-flex; align-items: center;
    font-size: 11px; font-weight: 700;
    color: #047857; background: #ecfdf5;
    padding: 2px 8px; border-radius: 999px;
    text-transform: uppercase; letter-spacing: .04em;
}
.xl-cs-row-x,
.remove-sample-btn.xl-cs-row-x {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px;
    border-radius: 8px;
    color: var(--xl-muted); background: transparent;
    cursor: pointer; font-size: 18px; font-weight: 400;
    transition: background .15s, color .15s;
}
.xl-cs-row-x:hover { background: #fef2f2; color: #dc2626; }

/* "Meer toevoegen" ghost row */
#go-to-samples-page { margin-top: 16px; }
#go-to-samples-page .xl-cs-btn { width: 100% !important; }

/* Empty state */
.xl-cs-empty {
    text-align: center;
    padding: 24px 8px 8px;
    display: flex; flex-direction: column; align-items: center;
}
.xl-cs-empty-art {
    margin-bottom: 18px;
    display: flex; align-items: center; justify-content: center;
}
.empty-samples-heading {
    font-size: 20px; font-weight: 700;
    color: var(--xl-text); margin: 0 0 6px;
    letter-spacing: -.01em;
}
.empty-samples-text {
    font-size: 14px; color: var(--xl-muted);
    margin: 0 0 20px; line-height: 1.55; max-width: 320px;
}
.return-to-samples { margin: 0; }
.xl-cs-empty-perks {
    list-style: none; padding: 0; margin: 24px 0 0;
    display: flex; flex-direction: column; gap: 8px;
    font-size: 13px; color: var(--xl-muted);
    width: 100%; max-width: 280px;
}
.xl-cs-empty-perks li {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 14px;
    background: var(--xl-soft);
    border: 1px solid var(--xl-border);
    border-radius: var(--xl-radius-sm);
    font-weight: 500;
}
.xl-cs-empty-perks li svg { color: #10b981; flex-shrink: 0; }

/* Drawer footer (form) — flows naturally below sample list */
.fly-samples-footer {
    border-top: 1px solid var(--xl-border);
    background: #fff;
    margin-top: 20px;
}

/* =========================================================
   KLEURSTALEN PAGE
   ========================================================= */
.xl-cs-page {
    width: 100% !important;
    max-width: 1410px;
    margin: 0 auto !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box;
}
.xl-cs-page-main {
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1;
}
.xl-cs-grid-wrap { flex-grow: 1; min-width: 0; }

/* Active filter bar — hidden when no filters */
.xl-cs-activebar {
    display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
    background: transparent;
    border: 0;
    padding: 0;
    margin: 0 0 16px;
    box-shadow: none;
    min-height: 0;
}
.xl-cs-activebar:has(.xl-cs-activebar-empty) { display: none !important; }
.xl-cs-activebar-label {
    font-size: 11px; font-weight: 700;
    color: var(--xl-muted);
    text-transform: uppercase; letter-spacing: .08em;
    margin-right: 4px;
}
.xl-cs-activebar-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex; flex-wrap: wrap; gap: 6px;
}
.xl-cs-tag {
    display: inline-flex; align-items: center; gap: 4px;
    background: var(--xl-brand);
    color: #fff;
    border: 0;
    padding: 4px 4px 4px 12px;
    border-radius: 999px;
    margin: 0 !important;
    font-size: 12.5px; font-weight: 500;
}
.xl-cs-tag-text { color: #fff; font-weight: 500; }
.xl-cs-tag-x {
    display: inline-flex; align-items: center; justify-content: center;
    width: 18px; height: 18px;
    background: rgba(255,255,255,.22) !important;
    color: #fff !important;
    border-radius: 999px !important;
    cursor: pointer;
    font-size: 13px; font-weight: 700; line-height: 1;
    border: 0 !important; padding: 0 !important;
    transition: background .15s;
}
.xl-cs-tag-x:hover { background: rgba(255,255,255,.4) !important; }
.xl-cs-activebar-empty { display: none; }

/* Sample grid */
.xl-cs-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
    gap: 14px !important;
    margin: 0 !important;
}
@media (max-width: 640px) {
    .xl-cs-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
    .xl-cs-card { padding: 6px 6px 8px !important; }
    .xl-cs-title { font-size: 13px !important; }
}

/* === POLAROID CARD (concept B) — namespaced .xl-cs-* === */
.xl-cs-card {
    position: relative;
    display: flex !important;
    flex-direction: column !important;
    background: #fff !important;
    border: 1px solid var(--xl-border) !important;
    border-radius: 8px !important;
    padding: 8px 8px 10px !important;
    cursor: pointer;
    box-shadow: var(--xl-shadow-sm) !important;
    transition: border-color .15s, box-shadow .15s !important;
    box-sizing: border-box;
    margin: 0 !important;
    max-width: none !important;
    flex: initial !important;
    overflow: visible !important;
    text-align: left !important;
}
.xl-cs-card:hover {
    border-color: var(--xl-text) !important;
    box-shadow: var(--xl-shadow) !important;
}
.xl-cs-card.selected {
    border-color: var(--xl-brand) !important;
    box-shadow: 0 0 0 1px var(--xl-brand) !important;
    background: #fffaf8 !important;
}

/* Polaroid swatch */
.xl-cs-swatch {
    position: relative !important;
    width: 100% !important;
    height: 0 !important;
    padding-bottom: 100% !important;
    margin: 0 0 10px !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    background: var(--xl-soft) !important;
    box-shadow: inset 0 0 0 1px rgba(15,23,42,.06) !important;
}
.xl-cs-swatch img {
    position: absolute !important;
    inset: 0 !important;
    top: 0 !important; left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    border-radius: 0 !important;
    aspect-ratio: 1/1 !important;
}

/* Floating action button — anchored inside swatch */
.xl-cs-fab {
    position: absolute !important;
    bottom: 6px !important;
    right: 6px !important;
    width: 28px !important;
    height: 28px !important;
    min-height: 28px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: rgba(255,255,255,.95) !important;
    color: var(--xl-text) !important;
    box-shadow: 0 2px 6px rgba(15,23,42,.18), 0 0 0 1px rgba(15,23,42,.06) !important;
    cursor: pointer;
    z-index: 3;
    font-size: 0 !important;
    line-height: 0 !important;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: background .15s, color .15s, box-shadow .15s !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.xl-cs-fab .xl-cs-fab-label { display: none !important; }
.xl-cs-fab::before {
    content: "" !important;
    display: block !important;
    width: 14px !important;
    height: 14px !important;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' d='M12 5v14M5 12h14'/></svg>") center/14px 14px no-repeat;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' d='M12 5v14M5 12h14'/></svg>") center/14px 14px no-repeat;
}
.xl-cs-card.selected .xl-cs-fab,
.xl-cs-card.selected .xl-cs-fab:hover {
    background: var(--xl-brand) !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(255,59,0,.45) !important;
}
.xl-cs-card.selected .xl-cs-fab::before {
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M4 12.5l5 5L20 7'/></svg>") center/12px 12px no-repeat;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M4 12.5l5 5L20 7'/></svg>") center/12px 12px no-repeat;
}
.xl-cs-fab:active { transform: scale(.92); }
.xl-cs-card-oos .xl-cs-fab { display: none !important; }

/* Meta footer */
.xl-cs-meta { padding: 0 2px; }
.xl-cs-title {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: var(--xl-text) !important;
    margin: 0 0 6px !important;
    line-height: 1.25 !important;
    text-align: left !important;
    word-break: break-word !important;
}
.xl-cs-meta-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: nowrap;
}
.xl-cs-type {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 5px !important;
    background: var(--xl-soft) !important;
    color: var(--xl-text) !important;
    border: 1px solid var(--xl-border) !important;
    border-radius: 999px !important;
    padding: 4px 10px 4px 7px !important;
    font-size: 10.5px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    margin: 0 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    text-align: left !important;
    width: fit-content !important;
    flex-shrink: 0 !important;
    vertical-align: middle !important;
    box-sizing: border-box !important;
}
.xl-cs-type-icon,
img.xl-cs-type-icon,
.xl-cs-type img.sample-icon,
.xl-cs-type .sample-icon {
    width: 13px !important;
    height: 13px !important;
    min-height: 0 !important;
    max-height: none !important;
    border-radius: 0 !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: contain !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    vertical-align: middle !important;
    align-self: center !important;
    line-height: 1 !important;
    transform: translateY(0.5px) !important;
}
.xl-cs-type {
    line-height: 2px !important;
}
.xl-cs-product {
    font-size: 10px !important;
    line-height: 1.35 !important;
    color: var(--xl-muted) !important;
    margin: 1px 0 0 !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: .04em !important;
    text-align: right !important;
    flex: 1;
    min-width: 0;
    /* clamp to 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word !important;
}

/* Selected meta accent */
.xl-cs-card.selected .xl-cs-title { color: var(--xl-brand) !important; }
.xl-cs-card.selected .xl-cs-type {
    background: var(--xl-brand-soft) !important;
    border-color: #ffd1bf !important;
    color: var(--xl-brand) !important;
}

/* Out-of-stock overlay */
.xl-cs-stock-overlay {
    position: absolute !important;
    inset: 0 !important;
    display: flex !important;
    align-items: center; justify-content: center;
    text-align: center;
    background: rgba(255,255,255,.85);
    color: var(--xl-text);
    font-weight: 700;
    font-size: 11px;
    line-height: 1.4;
    padding: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
    z-index: 2;
}
.xl-cs-card-oos .xl-cs-swatch img { filter: grayscale(60%) opacity(.55); }

/* =========================================================
   LOAD MORE
   ========================================================= */
.xl-cs-loadmore-wrap { text-align: center; margin: 32px 0 48px; }
.xl-cs-loadmore {
    display: inline-flex !important;
    align-items: center; justify-content: center;
    height: 42px !important; padding: 0 22px !important;
    background: #fff !important;
    border: 1px solid var(--xl-border-strong) !important;
    border-radius: 8px !important;
    color: var(--xl-text) !important;
    font-size: 14px !important; font-weight: 600 !important;
    cursor: pointer;
    transition: background .15s, border-color .15s !important;
    box-shadow: none !important;
    text-transform: none !important;
    line-height: 1 !important;
}
.xl-cs-loadmore:hover { background: var(--xl-soft) !important; border-color: var(--xl-text) !important; }

/* =========================================================
   FILTER SIDEBAR — redesigned, namespaced
   ========================================================= */
.xl-cs-sidebar {
    position: fixed; top: 0; left: 0; bottom: 0;
    width: 360px; max-width: 92%;
    background: #fff;
    transform: translateX(-100%);
    transition: transform .3s var(--xl-ease);
    box-shadow: var(--xl-shadow-lg);
    overflow: hidden;
    padding: 0;
    display: flex; flex-direction: column;
    z-index: 100000;
}
.xl-cs-sidebar.open { transform: translateX(0); }

.xl-cs-sidebar-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid var(--xl-border);
    background: #fff;
    flex-shrink: 0;
}
.xl-cs-sidebar-title {
    margin: 0 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: var(--xl-text) !important;
    letter-spacing: -.01em !important;
    text-transform: none !important;
}

.xl-cs-sidebar-body {
    flex: 1;
    overflow-y: auto;
    padding: 4px 18px 20px;
}

/* Filter section */
.xl-cs-fsec {
    padding: 16px 0;
    border-bottom: 1px solid var(--xl-border);
}
.xl-cs-fsec:last-child { border-bottom: 0; }
.xl-cs-fsec-title {
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: .08em !important;
    color: var(--xl-muted) !important;
    margin: 0 0 10px !important;
}

/* Chip-pills (categories, colors) */
.xl-cs-chips {
    display: flex; flex-wrap: wrap; gap: 6px;
}
.xl-cs-chip {
    position: relative;
    display: inline-flex; align-items: center;
    padding: 7px 12px;
    background: #fff;
    color: var(--xl-text);
    border: 1px solid var(--xl-border);
    border-radius: 999px;
    font-size: 12.5px; font-weight: 500;
    line-height: 1;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
    user-select: none;
}
.xl-cs-chip:hover { border-color: var(--xl-text); }
.xl-cs-chip-input {
    position: absolute !important;
    width: 1px !important; height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
    margin: 0 !important;
}
.xl-cs-chip:has(.xl-cs-chip-input:checked) {
    background: var(--xl-brand);
    border-color: var(--xl-brand);
    color: #fff;
}
.xl-cs-chip-text { line-height: 1; }

/* Product list — compact rows, single line + ellipsis */
.xl-cs-flist {
    display: flex; flex-direction: column; gap: 0;
    margin: 0 -8px;
}
.xl-cs-frow {
    display: flex; align-items: center; gap: 10px;
    padding: 7px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: background .15s, color .15s;
    color: var(--xl-text);
    font-size: 12.5px;
    line-height: 1.2;
    min-height: 32px;
}
.xl-cs-frow:hover { background: var(--xl-soft); color: var(--xl-text); }
.xl-cs-frow-input {
    position: absolute !important;
    width: 1px !important; height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
.xl-cs-frow-box {
    flex-shrink: 0;
    width: 16px; height: 16px;
    border: 1.5px solid var(--xl-border-strong);
    border-radius: 4px;
    background: #fff;
    transition: background .15s, border-color .15s;
    position: relative;
}
.xl-cs-frow:has(.xl-cs-frow-input:checked) {
    background: var(--xl-brand-soft);
    color: var(--xl-brand);
    font-weight: 600;
}
.xl-cs-frow:has(.xl-cs-frow-input:checked) .xl-cs-frow-box {
    background: var(--xl-brand);
    border-color: var(--xl-brand);
}
.xl-cs-frow:has(.xl-cs-frow-input:checked) .xl-cs-frow-box::after {
    content: "";
    position: absolute; inset: 0;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round' d='M5 12.5l4 4L19 7'/></svg>") center/12px no-repeat;
}
.xl-cs-frow-text {
    flex: 1; min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Filter overlay (mobile only) */
.xl-cs-filter-overlay {
    position: fixed; inset: 0;
    background: rgba(15,23,42,.55);
    backdrop-filter: blur(4px);
    z-index: 9998;
    visibility: hidden; opacity: 0;
    transition: opacity .25s, visibility .25s;
}
.xl-cs-filter-overlay.open { visibility: visible; opacity: 1; }

/* Filter toggle button (mobile only) — subtle white w/ brand accent */
.xl-cs-filter-toggle.xl-cs-btn,
.xl-cs-filter-toggle.xl-cs-btn-primary,
button.xl-cs-filter-toggle {
    width: 100% !important;
    margin-bottom: 16px !important;
    background: #fff !important;
    color: var(--xl-text) !important;
    border: 1px solid var(--xl-border-strong) !important;
    box-shadow: var(--xl-shadow-sm) !important;
    font-weight: 600 !important;
    height: 44px !important;
}
.xl-cs-filter-toggle svg { color: var(--xl-brand); }
button.xl-cs-filter-toggle:hover {
    background: var(--xl-soft) !important;
    border-color: var(--xl-text) !important;
    color: var(--xl-text) !important;
}

@media (min-width: 992px) {
    button.xl-cs-filter-toggle,
    .xl-cs-filter-toggle.xl-cs-btn,
    .xl-cs-filter-toggle,
    .xl-cs-filter-overlay,
    .xl-cs-sidebar .xl-cs-sidebar-head { display: none !important; }
    .xl-cs-page-main { flex-direction: row !important; align-items: flex-start; gap: 28px; }
    .xl-cs-sidebar {
        position: sticky; top: 20px;
        transform: none !important;
        flex: 0 0 260px;
        background: #fff;
        border: 1px solid var(--xl-border);
        border-radius: 8px;
        box-shadow: var(--xl-shadow-sm);
        max-height: calc(100vh - 40px);
        overflow: hidden;
        visibility: visible; opacity: 1;
        z-index: auto;
    }
    .xl-cs-sidebar-body { padding: 4px 14px 16px; }
    .xl-cs-fsec { padding: 14px 0; }
}

/* JS-class compat for sidebar open toggle */
.product-samples-filters.open { transform: translateX(0) !important; }
.filter-overlay.open { visibility: visible !important; opacity: 1 !important; }

/* =========================================================
   TOAST — bottom-center, frosted pill
   ========================================================= */
.sample-notification-container {
    position: fixed;
    bottom: 28px; left: 50%;
    transform: translateX(-50%);
    z-index: 100001;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    pointer-events: none;
    width: max-content; max-width: 92vw;
}
.sample-notification {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 12px 20px 12px 16px;
    background: rgba(15, 23, 42, .92);
    color: #fff;
    border-radius: 999px;
    box-shadow: 0 12px 32px rgba(15,23,42,.28), 0 4px 10px rgba(15,23,42,.18);
    backdrop-filter: blur(8px) saturate(1.4);
    -webkit-backdrop-filter: blur(8px) saturate(1.4);
    font-size: 14px; font-weight: 500;
    line-height: 1.3; letter-spacing: -.005em;
    pointer-events: auto;
    animation: xl-toast-in .35s var(--xl-ease) forwards;
    opacity: 0;
    border: 1px solid rgba(255,255,255,.08);
}
.sample-notification::before {
    content: "";
    display: inline-block;
    width: 20px; height: 20px;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='12' r='12' fill='%23ff3b00'/><path fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M7 12.5l3 3 7-7'/></svg>");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
.sample-notification.is-removed::before {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='12' r='12' fill='%2364748b'/><path fill='none' stroke='white' stroke-width='3' stroke-linecap='round' d='M8 8l8 8M16 8l-8 8'/></svg>");
}
.sample-notification.is-warn::before {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='12' r='12' fill='%23f59e0b'/><path fill='none' stroke='white' stroke-width='3' stroke-linecap='round' d='M12 7v6M12 16.5v.5'/></svg>");
}
@keyframes xl-toast-in {
    from { transform: translateY(16px) scale(.96); opacity: 0; }
    to   { transform: translateY(0) scale(1); opacity: 1; }
}
@media (max-width: 640px) {
    .sample-notification-container { bottom: 20px; }
    .sample-notification { padding: 10px 16px 10px 14px; font-size: 13px; }
}

/* Cleanup empty wp paragraphs */
.xl-grid-item p:empty { display: none !important; }
.xl-grid-item > br { display: none !important; }

/* =========================================================
   NATIVE FORM (xl-srf-) — already namespaced
   ========================================================= */
.xl-srf-wrap { padding: 0 !important; background: #fff; }
.xl-srf {
    padding: 22px 24px 24px;
    background: #fff;
}
.xl-srf-title {
    margin: 0 0 18px;
    font-size: 18px; font-weight: 700;
    color: var(--xl-text); letter-spacing: -.01em;
}
.xl-srf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.xl-srf-field { margin-bottom: 14px; position: relative; }
.xl-srf-field label {
    display: block;
    font-size: 12px; font-weight: 600;
    color: var(--xl-text); margin-bottom: 6px;
}
.xl-srf-field .xl-req { color: var(--xl-brand); margin-left: 2px; }
.xl-srf-field input,
.xl-srf-field select {
    width: 100%; height: 42px;
    padding: 0 14px;
    border: 1px solid var(--xl-border);
    border-radius: 10px;
    background: #fff;
    font-size: 14px; color: var(--xl-text);
    box-sizing: border-box;
    transition: border-color .15s, box-shadow .15s;
    font-family: inherit;
}
.xl-srf-field select {
    appearance: none; -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M1 1l5 5 5-5'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}
.xl-srf-field input:focus,
.xl-srf-field select:focus {
    outline: none;
    border-color: var(--xl-brand);
    box-shadow: var(--xl-ring);
}
.xl-srf-field input.xl-srf-invalid,
.xl-srf-field select.xl-srf-invalid { border-color: #ef4444; }
.xl-srf-hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; }
.xl-srf-error {
    background: #fef2f2; color: #b91c1c;
    border: 1px solid #fecaca; border-radius: 10px;
    padding: 10px 14px; font-size: 13px;
    margin: 4px 0 12px; line-height: 1.45;
}
.xl-srf-submit {
    position: relative; width: 100%; height: 48px;
    background: var(--xl-brand); color: #fff;
    border: 0; border-radius: 10px;
    font-size: 15px; font-weight: 700;
    cursor: pointer;
    transition: background .15s, transform .05s;
}
.xl-srf-submit:hover { background: var(--xl-brand-hover); }
.xl-srf-submit:active { transform: translateY(1px); }
.xl-srf-submit[disabled] { opacity: .65; cursor: wait; }
.xl-srf-spinner {
    display: none; width: 18px; height: 18px;
    border: 2.5px solid rgba(255,255,255,.35);
    border-top-color: #fff;
    border-radius: 50%; margin-left: 8px;
    vertical-align: middle;
    animation: xl-srf-spin .7s linear infinite;
}
.xl-srf-submit.is-loading .xl-srf-submit-label { opacity: .7; }
.xl-srf-submit.is-loading .xl-srf-spinner { display: inline-block; }
@keyframes xl-srf-spin { to { transform: rotate(360deg); } }

.xl-srf-success {
    padding: 36px 24px; text-align: center;
}
.xl-srf-success-icon {
    width: 64px; height: 64px; margin: 0 auto 14px;
    border-radius: 50%; background: var(--xl-brand-soft);
    display: flex; align-items: center; justify-content: center;
}
.xl-srf-success h3 {
    margin: 0 0 6px;
    font-size: 20px; font-weight: 700;
    color: var(--xl-text);
}
.xl-srf-success p { margin: 0 0 22px; color: var(--xl-muted); font-size: 14px; line-height: 1.5; }
.xl-srf-success-back {
    display: inline-block; background: var(--xl-text);
    color: #fff !important; text-decoration: none;
    padding: 12px 22px; border-radius: 10px;
    font-weight: 600; transition: background .15s;
}
.xl-srf-success-back:hover { background: #000; }

@media (max-width: 480px) {
    .xl-srf-row { grid-template-columns: 1fr; gap: 0; }
    .xl-srf { padding: 20px 18px; }
}