.bpfd-directory, .bpfd-directory * { box-sizing: border-box; }
.bpfd-directory { min-width: 0; width: 100%; }
.bpfd-heading { display: grid; gap: var(--pd-sm, 12px); margin-bottom: clamp(24px, 3.5vw, 50px); }
.bpfd-heading > *, .bpfd-card-copy > * { margin: 0; }
.bpfd-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-normal, 24px); }
.bpfd-card {
    display: grid; grid-row: span 2; grid-template-rows: subgrid; gap: 0; min-width: 0;
    overflow: clip; border: 1px solid var(--border); border-radius: var(--bradius, 24px);
    background: var(--bg-light-4); scroll-margin-top: 100px;
}
.bpfd-card-copy { display: flex; flex-direction: column; gap: 8px; padding: clamp(20px, 2vw, 32px); overflow-wrap: anywhere; }
.bpfd-art {
    min-width: 0; min-height: 300px; display: grid; place-items: center; grid-template-columns: minmax(0, 1fr);
    padding: clamp(15px, 1.7vw, 26px); background: var(--bg-light-2);
}
.bpfd-art--groups, .bpfd-art--locations { background: var(--bg-light-3); }
.bpfd-art--catalogue { background: var(--bg-light); }
.bpfd-art .bpp-product { width: 100%; max-width: 390px; }
.bpfd-art .bpp-ui { max-width: 380px; }
.bpfd-art--image img { display: block; width: 100%; height: auto; max-width: 500px; border: 1px solid var(--border); border-radius: var(--buttonradius, 12px); }
.bpfd-art .bpfd-responsive-preview { width: 100%; }
.bpfd-art--rewards { isolation: isolate; position: relative; overflow: clip; padding: 18px 15px; background: var(--accent); }
.bpfd-art--rewards::before {
    content: '✳'; position: absolute; inset: 0 0 0 auto; display: grid; align-items: center; width: min(60%, 216px);
    color: var(--primary); opacity: .16; font-size: clamp(140px, 18vw, 230px); line-height: 1; z-index: -1;
}
.bpfd-rewards { position: relative; display: grid; gap: 16px; justify-items: center; min-width: 0; width: 100%; padding: 0; border: 0; margin: 0; }
.bpfd-rewards .bpfd-radio, .bpfd-rewards legend {
    position: absolute; clip-path: inset(50%); overflow: hidden; width: 1px; height: 1px; margin: 0; padding: 0;
}
.bpfd-pass { width: min(100%, 290px); padding: 15px 18px; border-radius: 24px; background: var(--secondary); color: var(--title-light); box-shadow: 0 8px 24px color-mix(in srgb, var(--title-dark) 13%, transparent); }
.bpfd-pass-name, .bpfd-pass-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.bpfd-pass-name { font-size: .9rem; }
.bpfd-pass-name small { font-size: .55rem; letter-spacing: .14em; color: var(--accent); }
.bpfd-pass-title { display: block; padding: 9px 0 4px; font-size: 1.55rem; line-height: 1.12; letter-spacing: -.035em; }
.bpfd-panel { display: none; font-size: .8rem; line-height: 1.5; }
.bpfd-stamps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; padding: 10px 0; }
.bpfd-stamps i { display: grid; place-items: center; font-size: 1.3rem; font-style: normal; border-radius: 50%; aspect-ratio: 1; border: 1px dashed currentColor; }
.bpfd-stamps i:nth-child(-n+3) { color: var(--secondary); background: var(--accent); border: 0; }
.bpfd-balance { display: block; font-size: 2.35rem; line-height: 1.5; color: var(--accent); }
.bpfd-balance small { font-size: .9rem; }
.bpfd-pass-footer { padding-top: 12px; border-top: 1px solid color-mix(in srgb, var(--title-light) 22%, transparent); font-size: .6rem; letter-spacing: .12em; }
.bpfd-switch { max-width: 100%; display: inline-flex; padding: 4px; border-radius: 30px; background: var(--title-light); }
.bpfd-switch label { display: grid; place-items: center; min-height: 44px; padding: 7px clamp(8px, 1.2vw, 17px); border-radius: 24px; cursor: pointer; font: inherit; font-size: .8rem; color: var(--secondary); }
.bpfd-radio[value=stamps]:checked ~ .bpfd-scene-window .bpfd-pass [data-mode=stamps],
.bpfd-radio[value=points]:checked ~ .bpfd-scene-window .bpfd-pass [data-mode=points],
.bpfd-radio[value=cashback]:checked ~ .bpfd-scene-window .bpfd-pass [data-mode=cashback] { display: block; }
.bpfd-radio[value=stamps]:checked ~ .bpfd-switch [data-mode=stamps],
.bpfd-radio[value=points]:checked ~ .bpfd-switch [data-mode=points],
.bpfd-radio[value=cashback]:checked ~ .bpfd-switch [data-mode=cashback] { background: var(--secondary); color: var(--title-light); }
.bpfd-radio[value=stamps]:focus-visible ~ .bpfd-switch [data-mode=stamps],
.bpfd-radio[value=points]:focus-visible ~ .bpfd-switch [data-mode=points],
.bpfd-radio[value=cashback]:focus-visible ~ .bpfd-switch [data-mode=cashback] { outline: 3px solid var(--primary); outline-offset: 2px; }
@supports not (grid-template-rows: subgrid) {
    .bpfd-card { display: flex; flex-direction: column; grid-row: auto; }
    .bpfd-art { flex: 1; }
}
@media (max-width: 1030px) { .bpfd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) {
    .bpfd-grid { grid-template-columns: minmax(0, 1fr); }
    .bpfd-card { display: flex; flex-direction: column; grid-row: auto; }
    .bpfd-art { min-height: 250px; }
    .bpfd-art .bpfd-responsive-preview { width: min(100%, 240px); }
}
