/* /Components/Shared/CardDeckView.razor.rz.scp.css */
/* The cards drawn on the customer's site (docs/PLAN-cards.md D9). Tokens only. connect.js sets --cx-tilt-x and --cx-tilt-y (at most
   6°) as the pointer moves over a card, and aria-pressed when it is turned; with reduced motion the card turns at once and does not lean. */
.cx-deck[b-898q8kdb6g] {
    display: grid;
    gap: var(--weo-space-6);
    margin-bottom: var(--weo-space-6);
}

.cx-chain[b-898q8kdb6g] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--weo-space-4);
}

.cx-chain-arrow[b-898q8kdb6g] {
    font-size: 22px;
    color: var(--weo-muted);
}

.cx-card[b-898q8kdb6g] {
    display: grid;
    gap: var(--weo-space-2);
    width: 320px;
    max-width: 100%;
}

.cx-card-turn[b-898q8kdb6g] {
    all: unset;
    display: block;
    cursor: pointer;
    border-radius: var(--weo-radius-card);
    perspective: 1000px;
}

.cx-card-turn:focus-visible[b-898q8kdb6g] {
    outline: 2px solid var(--weo-primary);
    outline-offset: 2px;
}

.cx-card-inner[b-898q8kdb6g] {
    position: relative;
    display: block;
    aspect-ratio: 85.6 / 54;
    transform-style: preserve-3d;
    transform: rotateX(var(--cx-tilt-x, 0deg)) rotateY(var(--cx-tilt-y, 0deg));
    transition: transform .5s ease;
}

.cx-card-turn[aria-pressed="true"] .cx-card-inner[b-898q8kdb6g] {
    transform: rotateX(var(--cx-tilt-x, 0deg)) rotateY(calc(180deg + var(--cx-tilt-y, 0deg)));
}

.cx-card-side[b-898q8kdb6g] {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: var(--weo-space-4);
    border-radius: var(--weo-radius-card);
    backface-visibility: hidden;
    box-shadow: var(--weo-overlay-shadow);
    overflow: hidden;
    font-size: 12px;
}

.cx-card-front[b-898q8kdb6g] {
    background-color: var(--weo-cardface-colour, var(--weo-primary));
    background-image: var(--weo-cardface-art, linear-gradient(135deg, transparent 40%, color-mix(in srgb, var(--weo-camera-line) 14%, transparent)));
    background-size: cover;
    background-position: center;
}

/* The bolder face the owner wants on this site: a deeper shadow and a sheen across the card. */
.cx-deck-bold .cx-card-front[b-898q8kdb6g] {
    background-image: var(--weo-cardface-art, linear-gradient(120deg, transparent 30%, color-mix(in srgb, var(--weo-camera-line) 26%, transparent) 50%, transparent 70%),
        radial-gradient(circle at 15% 10%, color-mix(in srgb, var(--weo-accent) 45%, transparent), transparent 55%));
}

.cx-card-ink-light[b-898q8kdb6g] {
    color: var(--weo-camera-ink);
}

.cx-card-ink-dark[b-898q8kdb6g] {
    color: color-mix(in srgb, var(--weo-brand) 20%, #000000);
}

.cx-card-back[b-898q8kdb6g] {
    transform: rotateY(180deg);
    justify-content: flex-start;
    gap: var(--weo-space-1);
    background: var(--weo-card);
    color: var(--weo-text);
    border: 1px solid var(--weo-card-border);
}

.cx-card-top[b-898q8kdb6g], .cx-card-bottom[b-898q8kdb6g] {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--weo-space-2);
}

.cx-card-bottom[b-898q8kdb6g] {
    align-items: flex-end;
}

.cx-card-product[b-898q8kdb6g] {
    font-weight: 600;
    font-size: 13px;
}

.cx-card-number[b-898q8kdb6g] {
    font-size: 20px;
    letter-spacing: .08em;
    font-variant-numeric: tabular-nums;
}

.cx-deck-bold .cx-card-number[b-898q8kdb6g] {
    font-size: 22px;
    font-weight: 600;
}

.cx-card-facts[b-898q8kdb6g] {
    display: grid;
    justify-items: end;
    font-variant-numeric: tabular-nums;
}

.cx-card-facts small[b-898q8kdb6g], .cx-card-back small[b-898q8kdb6g] {
    opacity: .75;
    font-size: 10px;
    text-transform: uppercase;
}

.cx-card-ribbon[b-898q8kdb6g] {
    padding: 2px var(--weo-space-2);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.cx-ribbon-active[b-898q8kdb6g] { background: var(--weo-success-bg); color: var(--weo-success); }
.cx-ribbon-blocked[b-898q8kdb6g] { background: var(--weo-warning-bg); color: var(--weo-warning); }
.cx-ribbon-expired[b-898q8kdb6g] { background: var(--weo-danger-bg); color: var(--weo-danger); }
.cx-ribbon-replaced[b-898q8kdb6g] { background: var(--weo-tint); color: var(--weo-tint-text); }
.cx-ribbon-closed[b-898q8kdb6g] { background: var(--weo-subtle); color: var(--weo-muted); }

.cx-card-ended .cx-card-front[b-898q8kdb6g] {
    filter: grayscale(.85);
    opacity: .7;
}

.cx-card-loads[b-898q8kdb6g] {
    display: grid;
    gap: var(--weo-space-1);
    font-size: 12px;
}

@media (max-width: 640px) {
    .cx-chain[b-898q8kdb6g] {
        flex-direction: column;
        align-items: stretch;
    }

    .cx-chain-arrow[b-898q8kdb6g] {
        transform: rotate(90deg);
        align-self: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cx-card-inner[b-898q8kdb6g] {
        transition: none;
        transform: none;
    }

    .cx-card-turn[aria-pressed="true"] .cx-card-inner[b-898q8kdb6g] {
        transform: rotateY(180deg);
    }
}
