/* Scoped to direct purchases; historical wallet and token screens keep their CSS. */
body.pdc-has-direct-selection, body:has([data-pdc-direct-selection]) {
    padding-bottom: calc(var(--pdc-direct-selection-height, 150px) + 20px);
}
[data-pdc-direct-selection] {
    box-sizing: border-box;
    position: fixed;
    inset: auto 0 0;
    z-index: 9990;
    display: grid;
    grid-template-columns: minmax(150px, 1fr) auto auto;
    align-items: center;
    gap: 6px 24px;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 14px max(20px, calc((100vw - 1150px) / 2)) calc(14px + env(safe-area-inset-bottom, 0px));
    border: 1px solid #c4d8c9;
    border-width: 1px 0 0;
    border-radius: 0;
    background: #fff;
    color: #173e32;
    box-shadow: 0 -6px 28px #163d311a;
    font: 14px/1.4 Arial, Helvetica, sans-serif;
    text-align: left;
}
[data-pdc-direct-selection] *, [data-pdc-direct-selection] *::before, [data-pdc-direct-selection] *::after { box-sizing: border-box; }
[data-pdc-direct-selection] [hidden] { display: none !important; }
[data-pdc-direct-selection] p { margin: 0; }
[data-pdc-direct-count] { display: block; font-size: 15px; line-height: 1.4; }
[data-pdc-direct-limit] { display: block; color: #496356; font-size: 12px; line-height: 1.4; }
.pdc-direct-selection__choice { min-width: 0; }
.pdc-direct-selection__price { white-space: nowrap; font-size: 12px; }
[data-pdc-direct-principal] { display: block; font-size: 25px; font-weight: 800; line-height: 1.25; letter-spacing: -.025em; }
.pdc-direct-selection__note { grid-column: 1 / 3; color: #496356; font-size: 12px; }
.pdc-direct-selection__actions { grid-column: 3; grid-row: 1 / 3; display: flex; align-items: center; gap: 10px 16px; }
[data-pdc-direct-cart] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 11px 19px;
    border: 1px solid #155943;
    border-radius: 9px;
    background: #155943;
    color: #fff !important;
    font-weight: 700;
    text-decoration: none !important;
    white-space: nowrap;
}
[data-pdc-direct-cart]:hover { background: #103f31; }
[data-pdc-direct-cart][aria-disabled="true"] { border-color: #d4ddd6; background: #eaf0eb; color: #56685e !important; cursor: default; }
.pdc-direct-selection__browse { display: inline-flex; align-items: center; min-height: 44px; color: #155943; text-decoration: underline; text-underline-offset: 3px; font-size: 12px; }
[data-pdc-direct-feedback] { grid-column: 1 / -1; color: #22573d; font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
[data-pdc-direct-feedback]:empty { display: none; }
[data-pdc-direct-feedback].is-error { color: #9f2525; }
form[data-pdc-select-pack].is-selected [data-pdc-select-button] { border-color: #bad3b5; background: #edf5e7; color: #285426; }
form[data-pdc-select-pack].is-pdc-direct-busy [data-pdc-select-button] { cursor: progress; opacity: .75; }
form[data-pdc-select-pack].is-pdc-direct-full [data-pdc-select-button] { border-color: #d4ddd6; background: #eaf0eb; color: #56685e; cursor: default; }
[data-pdc-direct-selection] a:focus-visible, form[data-pdc-select-pack] [data-pdc-select-button]:focus-visible { outline: 3px solid #b8892d; outline-offset: 3px; }
@media (max-width: 760px) {
    body.pdc-pack-checkout.pdc-has-direct-selection #payment .form-row.place-order { box-sizing: border-box; width: 100%; max-width: 100%; }
    body.pdc-pack-checkout.pdc-has-direct-selection #payment #place_order { box-sizing: border-box; max-width: 100%; }
    [data-pdc-direct-selection] { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding: 11px 16px calc(11px + env(safe-area-inset-bottom, 0px)); }
    [data-pdc-direct-count] { font-size: 14px; }
    [data-pdc-direct-principal] { font-size: 22px; }
    .pdc-direct-selection__note { grid-column: 1 / -1; font-size: 11px; }
    .pdc-direct-selection__actions { grid-column: 1 / -1; grid-row: auto; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
    [data-pdc-direct-cart] { min-height: 44px; padding: 10px 12px; font-size: 13px; }
    .pdc-direct-selection__browse { font-size: 11px; }
}
@media (max-width: 360px) {
    [data-pdc-direct-selection] { padding-inline: 10px; }
    .pdc-direct-selection__actions { gap: 6px; }
    [data-pdc-direct-cart] { padding-inline: 9px; font-size: 12px; }
}
@media print {
    [data-pdc-direct-selection] { display: none !important; }
    body.pdc-has-direct-selection { padding-bottom: 0; }
}

/* Direct catalog: contents first, one action, compact navigation on phones. */
.pdc-store--direct .pdc-direct-hero-copy h1 { max-width:600px; margin:12px 0 14px; font-size:clamp(36px,4.4vw,56px); line-height:1.06; letter-spacing:-.045em; }
.pdc-store--direct .pdc-direct-start-price { display:inline-flex; align-items:baseline; flex-wrap:wrap; gap:5px; margin:0; padding:6px 12px; background:#fff1b0; color:#173e32; border-radius:8px; font-size:16px; line-height:1.3; }
.pdc-store--direct .pdc-direct-start-price strong { font-size:29px; font-weight:800; letter-spacing:-.03em; }
.pdc-store--direct .pdc-direct-start-price>span { font-size:13px; }
.pdc-store--direct .pdc-direct-inclusions { display:grid; gap:13px; list-style:none; padding:0!important; margin:22px 0 14px!important; }
.pdc-store--direct .pdc-direct-inclusions li { display:flex; gap:10px; margin:0; padding:0; font-size:14px; line-height:1.4; }
.pdc-store--direct .pdc-direct-inclusions li>span { display:flex; flex:0 0 23px; justify-content:center; align-items:center; height:23px; border-radius:50%; background:#dce9ce; color:#155943; font-weight:800; }
.pdc-store--direct .pdc-direct-inclusions strong { display:block; font-size:15px; color:#173e32; }
.pdc-store--direct .pdc-direct-inclusions div>span { display:block; margin-top:2px; color:#506457; }
.pdc-store--direct .pdc-direct-contents-note { margin:0 0 18px; max-width:440px; color:#5d6b5d; font-size:12px; line-height:1.5; }
.pdc-store--direct .pdc-direct-hero-cta { width:100%; max-width:450px; min-height:48px; justify-content:center; font-size:15px; }
.pdc-store--direct .pdc-direct-order-terms { display:block; margin-top:11px; font-size:12px; line-height:1.5; }
.pdc-direct-selection.is-empty .pdc-direct-selection__price,
.pdc-direct-selection.is-empty [data-pdc-direct-cart] { display:none; }
.pdc-direct-selection.is-empty .pdc-direct-selection__browse { justify-content:center; min-height:44px; padding:10px 16px; border-radius:9px; color:#fff; background:#155943; font-weight:700; font-size:13px; text-decoration:none; }
[data-pdc-direct-selection] [data-pdc-direct-limit]:not([hidden]) { grid-column:1/-1; }
@media(max-width:760px) {
    .pdc-store--direct .pdc-store-shortcuts { display:flex; flex-wrap:nowrap; gap:8px; margin-bottom:14px; padding-bottom:0; }
    .pdc-store--direct .pdc-store-shortcuts>.pdc-store-brand { flex:1; width:auto; gap:6px; font-size:10px; white-space:nowrap; }
    .pdc-store--direct .pdc-store-brand>span { font-size:19px; }
    .pdc-store--direct .pdc-store-shortcuts>div { display:flex; gap:7px; }
    .pdc-store--direct .pdc-store-shortcuts>div>a:first-child,
    .pdc-store--direct .pdc-store-shortcuts>div>a[href$="-how"] { display:none; }
    .pdc-store--direct .pdc-store-shortcuts>div>.pdc-credit-nav { padding:7px 10px; min-height:44px; font-size:11px; }
    .pdc-store--direct .pdc-store-shortcuts>div>.pdc-store-nav-cart { padding:7px 9px; min-height:44px; font-size:10px!important; white-space:nowrap; }
    .pdc-store--direct .pdc-store-hero { padding:24px 20px; border-radius:18px; margin-bottom:20px; }
    .pdc-store--direct .pdc-direct-hero-copy>.pdc-store-eyebrow { font-size:9px; letter-spacing:.15em; margin-bottom:0; }
    .pdc-store--direct .pdc-direct-hero-copy h1 { font-size:clamp(31px,8.6vw,38px); line-height:1.07; margin:10px 0 13px; }
    .pdc-store--direct .pdc-direct-start-price { padding:5px 10px; font-size:14px; }
    .pdc-store--direct .pdc-direct-start-price strong { font-size:26px; }
    .pdc-store--direct .pdc-direct-inclusions { margin:18px 0 12px!important; gap:12px; }
    .pdc-store--direct .pdc-direct-inclusions strong { font-size:14px; }
    .pdc-store--direct .pdc-direct-inclusions div>span { font-size:12px; line-height:1.4; }
    .pdc-store--direct .pdc-direct-contents-note { font-size:11px; margin-bottom:16px; }
    .pdc-store--direct .pdc-direct-order-terms { font-size:11px; margin-top:10px; }
    .pdc-store--direct .pdc-store-hero-library { display:none; }
    [data-pdc-direct-selection] { grid-template-columns:minmax(0,1fr) auto; gap:2px 12px; padding:10px 15px calc(10px + env(safe-area-inset-bottom,0px)); }
    .pdc-direct-selection__choice { grid-column:1; grid-row:1; }
    [data-pdc-direct-count] { font-size:12px; }
    .pdc-direct-selection__price { grid-column:1; grid-row:2; }
    [data-pdc-direct-principal] { font-size:22px; }
    .pdc-direct-selection__note { grid-column:1; grid-row:3; font-size:10px; }
    .pdc-direct-selection__actions { grid-column:2; grid-row:1/4; display:flex; flex-direction:column; gap:0; align-items:stretch; }
    [data-pdc-direct-cart] { min-height:44px; padding:10px 14px; font-size:12px; }
    .pdc-direct-selection__browse { justify-content:center; min-height:30px; font-size:11px; }
    .pdc-direct-selection.is-empty .pdc-direct-selection__note { grid-row:2; }
    .pdc-direct-selection.is-empty .pdc-direct-selection__choice { align-self:end; }
    .pdc-direct-selection.is-empty .pdc-direct-selection__actions { grid-row:1/3; }
    [data-pdc-direct-selection] [data-pdc-direct-limit]:not([hidden]) { grid-row:auto; font-size:11px; margin-top:4px; }
    [data-pdc-direct-feedback] { max-height:54px; overflow:auto; }
}
@media(max-width:360px) {
    .pdc-store--direct .pdc-store-shortcuts { gap:5px; }
    .pdc-store--direct .pdc-store-shortcuts>.pdc-store-brand { font-size:9px; }
    .pdc-store--direct .pdc-store-shortcuts>div { gap:5px; }
    .pdc-store--direct .pdc-store-shortcuts>div>.pdc-credit-nav,
    .pdc-store--direct .pdc-store-shortcuts>div>.pdc-store-nav-cart { padding-inline:7px; }
    .pdc-store--direct .pdc-store-hero { padding:22px 17px; }
}
