/* components.css — Past Lives shared component library
 *
 * Loaded by both hub/base.html and admin/base.html.
 * All classes use the pl- prefix.
 * Theme-aware via [data-theme="light"] selectors and CSS variables from hub.css.
 */

/* ========================================
   Modal
   ======================================== */
.pl-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    padding: 1rem;
}

.pl-modal {
    background: var(--hub-card-bg, #0f2d44);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.pl-modal--sm { max-width: 400px; }
.pl-modal--md { max-width: 560px; }
.pl-modal--lg { max-width: 720px; }

.pl-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pl-modal__title {
    font-family: 'Lato', system-ui, sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--hub-text, #F4EFDD);
    margin: 0;
}

.pl-modal__close {
    background: none;
    border: none;
    color: var(--hub-text-muted, #96ACBB);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.pl-modal__close:hover {
    color: var(--hub-text, #F4EFDD);
}

.pl-modal__body {
    padding: 1.5rem;
}

.pl-modal__actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

/* Modal transitions */
.modal-enter {
    transition: opacity 0.2s ease;
}

.modal-leave {
    transition: opacity 0.15s ease;
}

/* Toast styles live inline in templates/components/toast.html (self-contained, `plt-` prefix). */

/* ========================================
   Toggle
   ======================================== */
.pl-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pl-toggle-row:last-child {
    border-bottom: none;
}

.pl-toggle-label {
    font-size: 0.9375rem;
    font-weight: 400;
    color: var(--hub-text, #F4EFDD);
}

.pl-toggle-desc {
    font-size: 0.8125rem;
    color: var(--hub-text-muted, #96ACBB);
    margin-top: 0.125rem;
}

.pl-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.pl-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.pl-toggle__slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    transition: background-color 0.2s ease;
}

.pl-toggle__slider::before {
    content: "";
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: #fff;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.pl-toggle input:checked + .pl-toggle__slider {
    background-color: var(--color-tuscan-yellow, #EEB44B);
}

.pl-toggle input:checked + .pl-toggle__slider::before {
    transform: translateX(20px);
}

.pl-toggle input:focus-visible + .pl-toggle__slider {
    box-shadow: 0 0 0 3px rgba(238, 180, 75, 0.3);
}

/* Compact toggle for dense grids (the notification matrix). */
.pl-toggle--sm {
    width: 36px;
    height: 20px;
}

.pl-toggle--sm .pl-toggle__slider::before {
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
}

.pl-toggle--sm input:checked + .pl-toggle__slider::before {
    transform: translateX(16px);
}

/* Locked-on toggle: a forced / always-on channel the user can't change. Reads as on
   but visibly inert (no pointer, dimmed) so it's clearly not interactive. */
.pl-toggle--locked {
    cursor: default;
}

.pl-toggle--locked .pl-toggle__slider {
    cursor: default;
    opacity: 0.55;
    background-color: var(--color-tuscan-yellow, #EEB44B);
}

.pl-toggle--locked .pl-toggle__slider::before {
    transform: translateX(16px);
}

/* Unavailable toggle: an opt-in channel the member can't use yet (the Discord DM
   channel before they link Discord). Reads as inert + dimmed, distinct from the
   locked-ON forced style — there's no lock glyph and it doesn't force the knob on. */
.pl-toggle--disabled {
    cursor: default;
}

.pl-toggle--disabled .pl-toggle__slider {
    cursor: default;
    opacity: 0.4;
}

/* A small lock glyph sits in the knob to read as "always on, not interactive". */
.pl-toggle__lock {
    position: absolute;
    top: 50%;
    left: 3px;
    transform: translate(1px, -50%);
    color: var(--color-navy, #092E4C);
    pointer-events: none;
    z-index: 1;
}

.pl-toggle--sm .pl-toggle__lock {
    transform: translate(18px, -50%);
}

/* ========================================
   Notification preference matrix (event × channel)
   ======================================== */
/* Horizontal-scroll wrapper: on narrow screens the matrix scrolls as a unit
   rather than crushing its columns (matches the .admin-table-wrap pattern). */
.pl-notif-matrix__scroll {
    border: 1px solid var(--hub-border, rgba(255, 255, 255, 0.1));
    border-radius: 8px;
    overflow-x: auto;
}

.pl-notif-matrix {
    /* Column count is set per-instance via --pl-notif-cols (the rendered channel
       count) so the grid always matches the template and never hardcodes a number. */
    --pl-notif-cols: 5;
    display: grid;
    /* The event column flexes; the fixed channel columns set an intrinsic floor,
       so when they don't fit, the __scroll wrapper takes over rather than crushing them.
       Width fits the two-word labels — "Push (Browser)" wraps to "PUSH / (BROWSER)". */
    grid-template-columns: minmax(200px, 1fr) repeat(var(--pl-notif-cols), 84px);
    align-items: stretch;
}

.pl-notif-matrix__head,
.pl-notif-matrix__row {
    display: contents;
}

.pl-notif-matrix__event-head,
.pl-notif-matrix__chan-head {
    background: var(--hub-surface, rgba(255, 255, 255, 0.04));
    color: var(--hub-text-muted, #8b97a8);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.5rem 0.25rem;
    /* Center and allow a long label to wrap rather than clip inside the fixed
       64px column (this is what cut "Scheduled" down to "SCHEDUL"). */
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.15;
    border-bottom: 1px solid var(--hub-border, rgba(255, 255, 255, 0.1));
}

.pl-notif-matrix__event-head {
    text-align: left;
}

.pl-notif-matrix__chan-head {
    text-align: center;
}

.pl-notif-matrix__event,
.pl-notif-matrix__cell {
    padding: 0.6rem 0.5rem;
    border-bottom: 1px solid var(--hub-border, rgba(255, 255, 255, 0.08));
}

/* Drop the last row's bottom border (the container's border closes it). */
.pl-notif-matrix__row:last-child .pl-notif-matrix__event,
.pl-notif-matrix__row:last-child .pl-notif-matrix__cell {
    border-bottom: none;
}

.pl-notif-matrix__event-label {
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--hub-text, #F4EFDD);
}

.pl-notif-matrix__event-desc {
    font-size: 0.72rem;
    margin-top: 0.1rem;
}

.pl-notif-matrix__cell {
    display: flex;
    align-items: center;
    justify-content: center;
}

.pl-notif-matrix__na {
    color: var(--hub-text-muted, #8b97a8);
    opacity: 0.4;
    font-size: 0.85rem;
}

@media (max-width: 640px) {
    .pl-notif-matrix {
        /* Tighter on phones; the __scroll wrapper carries the horizontal overflow. */
        grid-template-columns: minmax(150px, 1fr) repeat(var(--pl-notif-cols), 68px);
    }
}

/* Notifications tab chrome — replaces one-off inline styles. */
.pl-notif-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.25rem;
}

.pl-notif-intro {
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

/* Discord account-linking control on the Notifications tab: a themed banner with the
   linked status on the left and the Connect/Disconnect action on the right. Uses the
   hub surface/border/text tokens so it adapts to both Obsidian (dark) and Slate
   (light) themes, like the matrix below it. */
.pl-discord-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    border: 1px solid var(--hub-border, rgba(255, 255, 255, 0.1));
    border-radius: 8px;
    background: var(--hub-surface, rgba(255, 255, 255, 0.04));
}

.pl-discord-link__status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--hub-text, #F4EFDD);
}

.pl-discord-link__icon {
    flex: none;
    color: #5865F2; /* Discord blurple */
}

.pl-discord-link__form {
    margin: 0;
}

.pl-notif-category {
    margin: 0;
}

/* Category header row: title on the left, the per-section All on/off control on
   the right. */
.pl-notif-category-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 1.25rem 0 0.5rem;
}

.pl-notif-section + .pl-notif-section {
    margin-top: 0.5rem;
}

/* Bulk on/off controls (the top "Everything" row and each section's). */
.pl-notif-bulk {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.pl-notif-bulk--all {
    margin-bottom: 0.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--hub-border, rgba(255, 255, 255, 0.1));
}

.pl-notif-bulk__label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--hub-text-muted, #8b97a8);
    margin-right: 0.25rem;
}

.pl-notif-bulk__btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-tuscan-yellow, #eeb44b);
}

.pl-notif-bulk__btn:hover {
    text-decoration: underline;
}

.pl-notif-bulk__sep {
    color: var(--hub-text-muted, #8b97a8);
    opacity: 0.5;
}

.pl-notif-actions {
    margin-top: 1.5rem;
}

/* ========================================
   Form Field
   ======================================== */
.pl-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    margin-bottom: 1rem;
}

.pl-form-group:last-child {
    margin-bottom: 0;
}

.pl-form-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--hub-text-muted, #96ACBB);
}

.pl-form-group input,
.pl-form-group select,
.pl-form-group textarea {
    background: var(--hub-input-bg, rgba(255, 255, 255, 0.06));
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    color: var(--hub-text, #F4EFDD);
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    width: 100%;
    transition: border-color 0.15s ease;
}

.pl-form-group input:focus,
.pl-form-group select:focus,
.pl-form-group textarea:focus {
    border-color: var(--color-tuscan-yellow, #EEB44B);
    outline: none;
    box-shadow: 0 0 0 3px rgba(238, 180, 75, 0.15);
}

/* Custom dropdown chevron — replaces the native arrow that crowds the right edge. */
.pl-form-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 2.25rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2396ACBB' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
}

/* Native <option> popups don't inherit the select's colors — theme them so the
   dropdown list isn't white-on-white on the dark theme (FRONTEND rule 13). */
.pl-form-group select option {
    background: var(--hub-elevated);
    color: var(--hub-text);
}

/* Date/time pickers: let the native picker indicator (the clock/calendar glyph)
   and the dropdown follow the dark theme — otherwise the glyph renders black and
   is invisible on the dark input background. */
.pl-form-group input[type="time"],
.pl-form-group input[type="date"],
.pl-form-group input[type="datetime-local"] {
    color-scheme: dark;
}

/* File input: theme the native ::file-selector-button — otherwise it renders as an
   OS-default light button on the dark theme. No CSS file styled it before this. */
.pl-form-group input[type="file"]::file-selector-button {
    background: var(--hub-input-bg, rgba(255, 255, 255, 0.06));
    color: var(--hub-text, #F4EFDD);
    border: 1px solid var(--hub-input-border, rgba(255, 255, 255, 0.12));
    border-radius: 6px;
    padding: 0.35rem 0.75rem;
    margin-right: 0.75rem;
    font-size: 0.8125rem;
    cursor: pointer;
}

/* Two-column field layout for long edit forms. Column gap only — each
   .pl-form-group keeps its own margin-bottom for vertical rhythm. Collapses
   to a single column on narrow screens. */
.pl-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1.25rem;
}

@media (max-width: 640px) {
    .pl-form-grid {
        grid-template-columns: 1fr;
    }
}

.pl-field-errors {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pl-field-error {
    font-size: 0.8125rem;
    color: #f87171;
}

.pl-field-hint {
    font-size: 0.8125rem;
    color: var(--hub-text-muted, #96ACBB);
    margin: 0;
}

/* ========================================
   Image Upload Zone
   ======================================== */
.cls-image-upload-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 1.25rem;
    border: 2px dashed rgba(238, 180, 75, 0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    background: rgba(238, 180, 75, 0.02);
}

.cls-image-upload-zone:hover,
.cls-image-upload-zone.drag-hover {
    border-color: rgba(238, 180, 75, 0.6);
    background: rgba(238, 180, 75, 0.04);
}

.cls-image-upload-zone.uploading {
    opacity: 0.6;
    pointer-events: none;
}

.cls-image-upload-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-tuscan-yellow, #EEB44B);
}

.cls-image-upload-hint {
    font-size: 0.75rem;
    color: var(--hub-text-muted, #96ACBB);
}

.cls-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.75rem;
    margin: 0.5rem 0 0.75rem;
}

.cls-image-cell {
    position: relative;
    background: rgba(9, 46, 76, 0.18);
    border: 1px solid rgba(26, 69, 104, 0.4);
    border-radius: 8px;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    cursor: grab;
    transition: opacity 0.2s, transform 0.15s;
}

.cls-image-cell.dragging { opacity: 0.4; transform: scale(0.95); }
.cls-image-cell.drag-over { border-color: var(--color-tuscan-yellow, #EEB44B); box-shadow: 0 0 0 2px rgba(238, 180, 75, 0.3); }

.cls-image-thumb {
    width: 100%;
    height: 100px;
    border-radius: 6px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
}

.cls-image-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.cls-image-fields {
    display: flex;
    gap: 0.35rem;
    align-items: center;
}

.cls-image-alt {
    flex: 1;
    padding: 0.3rem 0.5rem;
    font-size: 0.8rem;
    border: 1px solid var(--hub-border, rgba(255, 255, 255, 0.08));
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.15);
    color: inherit;
}

.cls-image-remove {
    background: none;
    border: none;
    color: #f87171;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 0.3rem;
    line-height: 1;
}

.cls-image-remove:hover { color: #ef4444; }

.cls-image-drag-handle {
    position: absolute;
    top: 0.3rem;
    right: 0.4rem;
    font-size: 0.9rem;
    color: var(--hub-text-muted, #96ACBB);
    opacity: 0.5;
    cursor: grab;
}

/* ========================================
   Buttons
   ======================================== */
.pl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease;
    white-space: nowrap;
    min-height: 36px;
    text-decoration: none;
}

.pl-btn--primary {
    background: var(--color-tuscan-yellow, #EEB44B);
    color: #092E4C;
}

.pl-btn--primary:hover {
    background: #f5c86a;
}

.pl-btn--secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--hub-text, #F4EFDD);
}

.pl-btn--secondary:hover {
    background: rgba(255, 255, 255, 0.12);
}

.pl-btn--danger {
    background: #dc2626;
    color: #fff;
}

.pl-btn--danger:hover {
    background: #ef4444;
}

.pl-btn--icon {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
}

/* ========================================
   Color Picker
   ======================================== */
.pl-color-picker {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--hub-input-bg, rgba(255, 255, 255, 0.06));
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    padding: 0.375rem 0.5rem;
    width: fit-content;
    min-width: 160px;
}

.pl-color-picker:focus-within {
    border-color: var(--color-tuscan-yellow, #EEB44B);
    box-shadow: 0 0 0 3px rgba(238, 180, 75, 0.15);
}

.pl-color-picker__swatch-wrapper {
    position: relative;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.pl-color-picker__input {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    cursor: pointer;
    border: none;
    padding: 0;
    background: none;
}

.pl-color-picker__hex {
    background: none !important;
    border: none !important;
    color: var(--hub-text, #F4EFDD) !important;
    font-family: monospace !important;
    font-size: 0.9375rem !important;
    padding: 0 !important;
    width: 80px !important;
    box-shadow: none !important;
}

.pl-color-picker__hex:focus {
    outline: none !important;
}

[data-theme="light"] .pl-color-picker {
    background: #fff;
    border-color: #d1d5db;
}

[data-theme="light"] .pl-color-picker__hex {
    color: #1f2937 !important;
}

/* ========================================
   Cart
   ======================================== */
.pl-cart {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.02);
}

.pl-cart__title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--hub-text-muted, #96ACBB);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 1rem;
}

.pl-cart__empty {
    font-size: 0.875rem;
    color: var(--hub-text-muted, #96ACBB);
}

.pl-cart__items {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.pl-cart__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.875rem;
}

.pl-cart__item:last-child {
    border-bottom: none;
}

.pl-cart__item-name {
    flex: 1;
    color: var(--hub-text, #F4EFDD);
}

.pl-cart__item-qty {
    color: var(--hub-text-muted, #96ACBB);
    font-size: 0.8125rem;
}

.pl-cart__item-price {
    color: var(--hub-text, #F4EFDD);
    font-weight: 500;
    min-width: 60px;
    text-align: right;
}

.pl-cart__item-remove {
    background: none;
    border: none;
    color: var(--hub-text-muted, #96ACBB);
    cursor: pointer;
    padding: 0.25rem;
    font-size: 0.75rem;
}

.pl-cart__item-remove:hover {
    color: #f87171;
}

.pl-cart__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.pl-cart__total {
    font-size: 1rem;
    font-weight: 700;
    color: var(--hub-text, #F4EFDD);
}

/* ========================================
   Quantity picker (inside modal)
   ======================================== */
.pl-qty {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pl-qty__btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--hub-text, #F4EFDD);
    font-size: 1.125rem;
    cursor: pointer;
}

.pl-qty__btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.pl-qty__value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--hub-text, #F4EFDD);
    min-width: 2rem;
    text-align: center;
}

/* ========================================
   Light theme overrides
   ======================================== */
[data-theme="light"] .pl-modal {
    background: #fff;
    border-color: #e5e7eb;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .pl-modal__title {
    color: #1f2937;
}

[data-theme="light"] .pl-modal__header {
    border-color: #e5e7eb;
}

[data-theme="light"] .pl-modal__close {
    color: #6b7280;
}

[data-theme="light"] .pl-modal__close:hover {
    color: #1f2937;
}

[data-theme="light"] .pl-toggle__slider {
    background-color: #ccc;
}

[data-theme="light"] .pl-toggle-row {
    border-color: #e5e7eb;
}

[data-theme="light"] .pl-toggle-label {
    color: #1f2937;
}

[data-theme="light"] .pl-toggle-desc {
    color: #6b7280;
}

[data-theme="light"] .pl-form-label {
    color: #6b7280;
}

[data-theme="light"] .pl-form-group input,
[data-theme="light"] .pl-form-group select,
[data-theme="light"] .pl-form-group textarea {
    background: #fff;
    border-color: #d1d5db;
    color: #1f2937;
}

[data-theme="light"] .pl-form-group input[type="time"],
[data-theme="light"] .pl-form-group input[type="date"],
[data-theme="light"] .pl-form-group input[type="datetime-local"] {
    color-scheme: light;
}

[data-theme="light"] .pl-form-group input[type="file"]::file-selector-button {
    background: #f3f4f6;
    color: #1f2937;
    border-color: #d1d5db;
}

[data-theme="light"] .pl-field-hint {
    color: #6b7280;
}

[data-theme="light"] .pl-btn--secondary {
    background: #f3f4f6;
    color: #1f2937;
}

[data-theme="light"] .pl-btn--secondary:hover {
    background: #e5e7eb;
}

[data-theme="light"] .pl-cart {
    border-color: #e5e7eb;
    background: #fafafa;
}

[data-theme="light"] .pl-cart__title {
    color: #6b7280;
}

[data-theme="light"] .pl-cart__item {
    border-color: #e5e7eb;
}

[data-theme="light"] .pl-cart__item-name {
    color: #1f2937;
}

[data-theme="light"] .pl-cart__item-qty {
    color: #6b7280;
}

[data-theme="light"] .pl-cart__item-price {
    color: #1f2937;
}

[data-theme="light"] .pl-cart__footer {
    border-color: #e5e7eb;
}

[data-theme="light"] .pl-cart__total {
    color: #1f2937;
}

[data-theme="light"] .pl-qty__btn {
    border-color: #d1d5db;
    background: #fff;
    color: #1f2937;
}

[data-theme="light"] .pl-qty__btn:hover {
    background: #f3f4f6;
}

[data-theme="light"] .pl-qty__value {
    color: #1f2937;
}

[data-theme="light"] .pl-cart__empty {
    color: #6b7280;
}
