/* =========================================================
   Limitless Uploader — Frontend Styles
   Visual system matched to the Limitless Cost Estimator:
   Poppins, teal #066D7E, 12px-radius cards with #E6E6E6
   borders, soft shadows, and clean divider-based rows.

   All aesthetic choices (colors, border-radius, fonts) are
   consolidated here and can be edited without touching any
   PHP or JavaScript logic.

   Layout: two cards on desktop (upload area + order summary)
   stacking to a single column on narrow screens. Breakpoints
   use container queries against the uploader's own width so
   the layout adapts to the theme column it is rendered in.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

/* ---------- Design tokens (estimator palette) ---------- */
.limitless-uploader {
    --lu-teal:    #066D7E;
    --lu-black:   #000000;
    --lu-white:   #ffffff;
    --lu-bg:      #F2F2F2;
    --lu-divider: #E6E6E6;

    --lu-muted:       #999999;
    --lu-red:         #e04848;
    --lu-green-bg:    #e7f6ec;
    --lu-green-text:  #1b7a3d;
    --lu-green-border:#bfe5cb;

    /* Admin-overridable (Frontend Display settings tab) */
    --lu-button-bg:   #000000;
    --lu-button-text: #ffffff;
    --lu-warning-text:#8a6d00;

    --lu-font:        'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --lu-row-cols:    minmax(0, 2.4fr) minmax(0, 1.2fr) 84px minmax(0, 1fr) 92px 48px;
}

/* ---------- Container + grid ---------- */
.limitless-uploader {
    margin: 24px 0;
    font-family: var(--lu-font);
    font-size: 15px;
    color: var(--lu-black);
    line-height: 1.4;
    container-type: inline-size;
}

.limitless-uploader *,
.limitless-uploader *::before,
.limitless-uploader *::after {
    box-sizing: border-box;
}

.limitless-uploader__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

@container (min-width: 880px) {
    .limitless-uploader__grid {
        grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
    }
}

/* Right column: summary card + relocated add-to-cart button */
.limitless-uploader__sidebar {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

/* ---------- Cards ---------- */
.limitless-card {
    background: var(--lu-white);
    border: 1px solid var(--lu-divider);
    border-radius: 12px;
    padding: 24px 22px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.limitless-card__header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.limitless-card__title {
    margin: 0 !important;
    padding: 5px 0;
    font-family: var(--lu-font);
    font-size: 20px;
    font-weight: 650;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--lu-teal);
    line-height: 1.1;
}

.limitless-card__subtitle {
    margin: 8px 0 20px;
    font-size: 13px;
    font-weight: 400;
    color: var(--lu-muted);
}

/* ---------- Requirements note ---------- */
.limitless-requirements-note {
    padding: 12px 16px;
    background: var(--lu-bg);
    border-left: 4px solid var(--lu-teal);
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--lu-black);
}

/* ---------- Drop zone ---------- */
.limitless-dropzone {
    border: 2px dashed var(--lu-teal);
    border-radius: 10px;
    padding: 16px 24px;
    text-align: center;
    background: var(--lu-white);
    cursor: pointer;
    transition: background 0.18s;
}

.limitless-dropzone:hover,
.limitless-dropzone.is-dragging {
    background: rgba(6, 109, 126, 0.05);
}

.limitless-dropzone__icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--lu-teal);
    background: var(--lu-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.limitless-dropzone__icon {
    width: 28px;
    height: 28px;
    color: var(--lu-teal);
    display: block;
}

.limitless-dropzone__text {
    font-size: 16px;
    font-weight: 700;
    color: var(--lu-black);
    margin: 0 0 2px;
}

.limitless-dropzone__or {
    font-size: 13px;
    font-weight: 400;
    color: var(--lu-muted);
    margin: 0 0 8px;
}

.limitless-dropzone__button {
    display: inline-block;
    padding: 11px 28px;
    background: var(--lu-button-bg);
    color: var(--lu-button-text) !important;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: box-shadow 0.2s;
}

.limitless-dropzone__button:hover {
    /* 13% white overlay ≈ the previous #222222 hover on the default black,
       and works for any admin-chosen button color. */
    box-shadow: inset 0 0 0 999px rgba(255, 255, 255, 0.13);
    color: var(--lu-button-text) !important;
}

/* High-specificity override — theme may force teal text; button background keeps it readable */
#limitless-dropzone .limitless-dropzone__button,
#limitless-dropzone .limitless-dropzone__button * {
    color: var(--lu-button-text) !important;
}

.limitless-dropzone__meta {
    font-size: 12px;
    font-weight: 400;
    color: var(--lu-muted);
    margin: 12px 0 0;
}

/* ---------- Uploaded files section ---------- */
.limitless-file-section {
    margin-top: 24px;
}

.limitless-file-section__title {
    margin: 0 0 12px;
    font-family: var(--lu-font);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--lu-teal);
}

/* Column header — desktop only */
.limitless-file-columns {
    display: none;
}

@container (min-width: 680px) {
    .limitless-file-columns {
        display: grid;
        grid-template-columns: var(--lu-row-cols);
        gap: 12px;
        align-items: center;
        padding: 5px 12px 10px;
        font-size: 12px;
        font-weight: 700;
        color: var(--lu-black);
        border-bottom: 1.5px solid var(--lu-divider);
    }

    .limitless-file-columns__actions {
        text-align: center;
    }
}

/* ---------- File list ---------- */
.limitless-file-list {
    display: flex;
    flex-direction: column;
}

/* ---------- File row ---------- */
.limitless-file-row {
    background: var(--lu-white);
    transition: opacity 0.3s;
    border: 1px solid var(--lu-divider);
    border-radius: 10px;
    padding: 14px 12px;
    margin-top: 10px;
    animation: limitless-row-in 0.18s ease;
}

@keyframes limitless-row-in {
    from { opacity: 0; transform: translateY(-5px); }
    to   { opacity: 1; transform: translateY(0);    }
}

@container (min-width: 680px) {
    .limitless-file-row {
        display: grid;
        grid-template-columns: var(--lu-row-cols);
        gap: 12px;
        align-items: center;
        border: none;
        border-bottom: 1px solid var(--lu-divider);
        border-radius: 0;
        margin-top: 0;
        padding: 16px 12px;
    }

    .limitless-file-row:last-child {
        border-bottom: none;
    }

    /* Full-width sub-rows inside the grid */
    .limitless-file-row__progress,
    .limitless-file-row__spacing-note,
    .limitless-file-row__warnings,
    .limitless-file-row__error {
        grid-column: 1 / -1;
    }
}

.limitless-file-row.is-removing {
    opacity: 0.4;
    pointer-events: none;
}

.limitless-file-row.is-removed {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    margin: 0;
    border: none;
}

/* Cells — stacked label/value pairs on mobile */
.limitless-file-row__cell {
    min-width: 0;
    font-size: 13px;
}

@container (max-width: 679.9px) {
    .limitless-file-row__cell {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 4px 0;
    }

    .limitless-file-row__cell[data-label]::before {
        content: attr(data-label);
        font-size: 12px;
        font-weight: 600;
        color: var(--lu-muted);
        flex-shrink: 0;
    }

    .limitless-file-row__cell--actions {
        justify-content: flex-end;
    }
}

/* While uploading, the qty input is hidden (no record yet) */
.limitless-file-row.is-uploading .limitless-file-row__qty-wrap,
.limitless-file-row.is-uploading .limitless-file-row__cell--qty,
.limitless-file-row.has-error .limitless-file-row__qty-wrap,
.limitless-file-row.has-error .limitless-file-row__cell--qty {
    visibility: hidden;
}

@container (max-width: 679.9px) {
    .limitless-file-row.is-uploading .limitless-file-row__cell--qty,
    .limitless-file-row.is-uploading .limitless-file-row__cell--dims,
    .limitless-file-row.is-uploading .limitless-file-row__cell--total,
    .limitless-file-row.has-error .limitless-file-row__cell--qty,
    .limitless-file-row.has-error .limitless-file-row__cell--dims,
    .limitless-file-row.has-error .limitless-file-row__cell--total {
        display: none;
    }
}

/* File cell: thumbnail + name */
.limitless-file-row__cell--file {
    display: flex;
    align-items: center;
    gap: 10px;
}

.limitless-file-row__thumb {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    border: 1.5px solid var(--lu-divider);
    background: var(--lu-bg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--lu-muted);
}

@container (max-width: 679.9px) {
    .limitless-file-row__thumb {
        width: 48px;
        height: 48px;
    }
}

.limitless-file-row__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.limitless-file-row__thumb.has-image {
    background:
        repeating-conic-gradient(#f2f2f2 0% 25%, #ffffff 0% 50%)
        0 0 / 12px 12px;
}

.limitless-file-row__thumb--pdf { background: rgba(6,109,126,0.10); color: #044e5c; border-color: rgba(6,109,126,0.30); }
.limitless-file-row__thumb--ai  { background: rgba(6,109,126,0.06); color: var(--lu-teal); border-color: rgba(6,109,126,0.20); }
.limitless-file-row__thumb--img { background: rgba(6, 109, 126, 0.08); color: var(--lu-teal); border-color: rgba(6, 109, 126, 0.25); }

.limitless-file-row__filename {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--lu-black);
    word-break: break-word;
    min-width: 0;
}

/* Dimensions */
.limitless-dim-main {
    display: block;
    font-weight: 600;
    color: var(--lu-black);
}

.limitless-dim-sub {
    display: block;
    font-size: 11.5px;
    font-weight: 400;
    color: var(--lu-muted);
}

.limitless-dim-warn {
    color: var(--lu-red);
    font-style: italic;
    font-size: 12.5px;
}

/* Quantity input */
.limitless-file-row__qty-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* The column header / mobile data-label already says "Copies" */
.limitless-file-row__qty-label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.limitless-file-row__qty {
    width: 68px;
    padding: 9px 8px;
    border: 1.5px solid var(--lu-divider);
    border-radius: 8px;
    font-family: var(--lu-font);
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    background: var(--lu-white);
    color: var(--lu-black);
    transition: border-color 0.15s;
}

.limitless-file-row__qty:focus {
    border-color: var(--lu-teal);
    outline: none;
    box-shadow: none;
}

/* Total inches */
.limitless-file-row__billable {
    font-weight: 600;
    color: var(--lu-black);
}

/* Status chip */
.limitless-file-row__status {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    background: rgba(6, 109, 126, 0.08);
    border: 1px solid rgba(6, 109, 126, 0.2);
    color: var(--lu-teal);
}

.limitless-file-row__status.is-ready {
    background: var(--lu-green-bg);
    border-color: var(--lu-green-border);
    color: var(--lu-green-text);
}

.limitless-file-row__status.is-error {
    background: #fdecec;
    border-color: #f6cdcd;
    color: #b42318;
}

/* Actions */
.limitless-file-row__cell--actions {
    text-align: center;
}

.limitless-file-row__remove {
    background: none;
    border: none;
    border-radius: 6px;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #ccc;
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
    transition: color 0.15s, background 0.15s;
}

.limitless-file-row__remove:hover {
    color: var(--lu-red);
    background: rgba(224, 72, 72, 0.08);
}

/* Progress bar */
.limitless-file-row__progress {
    height: 4px;
    background: var(--lu-divider);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 8px;
}

.limitless-file-row__progress-bar {
    height: 100%;
    background: var(--lu-teal);
    border-radius: 2px;
    transition: width 0.15s ease-out;
    width: 0%;
}

/* Spacing note — shown when copies > 1 */
.limitless-file-row__spacing-note {
    margin: 4px 0 0;
    font-size: 12px;
    color: var(--lu-muted);
    text-align: right;
}

/* Warnings */
.limitless-file-row__warnings {
    margin-top: 0;
}

.limitless-warning {
    font-size: 12px;
    color: var(--lu-warning-text);
    background: #fff8e1;
    border-left: 3px solid #f0b429;
    padding: 4px 8px;
    border-radius: 3px;
    margin: 4px 0 0;
}

/* Error */
.limitless-file-row__error {
    font-size: 13px;
    color: var(--lu-red);
    margin-top: 4px;
}

/* Debug detail lines shown on blocked uploads (detected size, required width). */
.limitless-error-detail {
    color: #50575e;
    font-size: 12px;
}

/* ---------- Tip bar ---------- */
.limitless-tip {
    margin-top: 14px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid var(--lu-divider);
    border-radius: 8px;
    background: var(--lu-bg);
    font-size: 12.5px;
    color: var(--lu-black);
}

.limitless-tip__icon {
    color: var(--lu-teal);
    font-weight: 700;
    flex-shrink: 0;
}

/* ---------- Global error banner ---------- */
.limitless-error-banner {
    margin-top: 12px;
    padding: 10px 14px;
    background: #fde8e8;
    border: 1px solid #facfcf;
    border-radius: 8px;
    color: #8b1414;
    font-size: 14px;
}

/* ---------- Order summary card ---------- */
.limitless-card__title--summary {
    margin-bottom: 6px !important;
}

.limitless-summary-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 14px 0 16px;
    border-bottom: 1px solid var(--lu-divider);
}

.limitless-summary-stat:first-child {
    border-right: 1px solid var(--lu-divider);
}

.limitless-summary-stat__label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--lu-black);
    margin-bottom: 6px;
}

.limitless-summary-stat__value {
    display: block;
    font-size: 26px;
    font-weight: 800;
    color: var(--lu-teal);
    line-height: 1;
    letter-spacing: -0.01em;
}

.limitless-summary-rate {
    padding: 16px 0;
    border-bottom: 1px solid var(--lu-divider);
}

.limitless-summary-rate__label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--lu-black);
    margin-bottom: 6px;
}

.limitless-summary-rate__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.limitless-summary-rate__value {
    font-size: 30px;
    font-weight: 800;
    color: var(--lu-teal);
    line-height: 1;
    letter-spacing: -0.01em;
}

.limitless-tier-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 20px;
    background: var(--lu-teal);
    color: var(--lu-white);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.limitless-summary-total {
    padding: 18px 0 8px;
}

.limitless-summary-total__label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--lu-black);
    margin-bottom: 6px;
}

.limitless-summary-total__value {
    display: block;
    font-size: 42px;
    font-weight: 800;
    color: var(--lu-teal);
    line-height: 0.95;
    letter-spacing: -0.02em;
}

.limitless-minimum-note {
    margin: 10px 0 0;
    font-size: 12px;
    color: var(--lu-warning-text);
    background: #fff8e1;
    padding: 6px 10px;
    border-radius: 6px;
}

/* ---------- Summary fee line (Expert Art Review) ---------- */
.limitless-summary-fee {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0 0;
    font-size: 13px;
}

.limitless-summary-fee__label {
    font-weight: 600;
    color: var(--lu-black);
}

.limitless-summary-fee__value {
    font-weight: 700;
    color: var(--lu-green-text);
    white-space: nowrap;
}

/* ---------- Order options card (Order Notes + Expert Art Review) ----------
   Compact by default: just the card title and two checkbox rows. Each row
   reveals its detail (textarea / description) only when ticked. */
.limitless-card--options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px 22px 20px;
}

/* Same teal/uppercase treatment as the other card titles, scaled down so
   the options card reads as secondary to Upload / Order Summary. */
.limitless-card__title--options {
    font-size: 15px;
    margin-bottom: 2px !important;
}

/* Shared checkbox row for both options.
   The label rules are deliberately defensive (!important on the visual
   basics) — themes commonly style labels inside the product summary as
   uppercase/heading-like, which is exactly what these must NOT look like. */
.limitless-option-toggle {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    margin: 0;
    padding: 0;
}

.limitless-option-toggle input[type="checkbox"] {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin: 2px 0 0;
    accent-color: var(--lu-teal);
    cursor: pointer;
}

.limitless-uploader .limitless-option-toggle__label {
    font-family: var(--lu-font) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    color: var(--lu-black) !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    margin: 0 !important;
    padding: 0 !important;
}

.limitless-uploader .limitless-option-toggle__label strong {
    color: var(--lu-green-text) !important;
    font-weight: 600 !important;
}

/* Detail area revealed under a ticked checkbox — indented to the label */
.limitless-option-reveal {
    margin: 8px 0 0 27px;
}

/* Sub-label above a reveal textarea (used by Expert Review Notes) —
   brand teal, never the theme's light/electric blue. */
.limitless-uploader .limitless-order-notes__label {
    display: block;
    margin: 0 0 6px !important;
    font-family: var(--lu-font) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: var(--lu-teal) !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

.limitless-optional-tag {
    font-weight: 400;
    font-size: 12px;
    color: var(--lu-muted);
}

.limitless-order-notes__field {
    display: block;
    width: 100%;
    padding: 10px 12px;
    background: var(--lu-bg);
    border: 1px solid var(--lu-divider);
    border-radius: 8px;
    font-family: var(--lu-font);
    font-size: 13px;
    color: var(--lu-black);
    line-height: 1.45;
    resize: vertical;
}

/* Placeholder stays grey (typed text is black) — themes sometimes force
   placeholder color, so this is scoped + important. */
.limitless-uploader .limitless-order-notes__field::placeholder {
    color: var(--lu-muted) !important;
    opacity: 1 !important;
}

.limitless-order-notes__field:focus {
    outline: none;
    border-color: var(--lu-teal);
    background: var(--lu-white);
}

.limitless-expert-review__description {
    margin: 0 0 10px;
    font-size: 12px;
    color: var(--lu-muted);
    line-height: 1.5;
}

/* ---------- Required artwork acknowledgment ----------
   Quiet, compact strip directly above Add to Cart — reads as part of the
   checkout action, never as another card or a warning. */
.limitless-ack {
    padding: 10px 12px;
    background: var(--lu-white);
    border: 1px solid var(--lu-divider);
    border-radius: 10px;
    margin-bottom: -4px;
}

.limitless-ack.has-error {
    border-color: var(--lu-red);
    background: #fdf1f1;
}

.limitless-ack__option {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    cursor: pointer;
    margin: 0;
}

.limitless-ack__option input[type="checkbox"] {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin: 2px 0 0;
    accent-color: var(--lu-teal);
    cursor: pointer;
}

.limitless-ack__text {
    font-size: 11.5px;
    font-weight: 500;
    color: #50575e;
    line-height: 1.55;
}

.limitless-ack__link {
    display: inline-block;
    margin-left: 4px;
    color: var(--lu-teal);
    text-decoration: underline;
}

.limitless-ack__error {
    margin: 6px 0 0 25px;
    font-size: 12px;
    font-weight: 600;
    color: var(--lu-red);
}

/* ---------- Pricing tiers (collapsible) ---------- */
.limitless-tiers {
    margin-top: 16px;
    border: 1px solid var(--lu-divider);
    border-radius: 10px;
    background: var(--lu-white);
    overflow: hidden;
}

.limitless-tiers__summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 13px 14px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--lu-teal);
    user-select: none;
    transition: background 0.15s;
}

.limitless-tiers__summary:hover {
    background: rgba(6, 109, 126, 0.04);
}

.limitless-tiers__summary::-webkit-details-marker {
    display: none;
}

.limitless-tiers__chevron {
    flex-shrink: 0;
    transition: transform 0.2s;
}

.limitless-tiers[open] .limitless-tiers__chevron {
    transform: rotate(180deg);
}

/* Tier list — clean divider rows like the estimator */
.limitless-tiers__table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
    margin: 0;
    padding: 2px 8px 10px;
}

.limitless-tiers__table td {
    padding: 9px 10px;
    border: none;
    border-top: 1px solid var(--lu-divider);
    background: transparent;
    color: var(--lu-black);
}

.limitless-tier-row td:first-child {
    border-radius: 6px 0 0 6px;
    font-weight: 400;
    padding-left: 14px;
}

.limitless-tier-row td:last-child {
    border-radius: 0 6px 6px 0;
    padding-right: 14px;
}

.limitless-tier-row td:nth-child(2) {
    font-weight: 600;
    text-align: right;
}

.limitless-tier-row__check {
    width: 28px;
    text-align: right;
}

.limitless-tier-row__check svg {
    visibility: hidden;
    color: var(--lu-white);
    vertical-align: middle;
}

/* Active tier — solid teal with white text, like the estimator */
.limitless-tier-row.is-active td {
    background: var(--lu-teal);
    color: var(--lu-white);
    font-weight: 600;
    border-top-color: transparent;
}

.limitless-tier-row.is-active + .limitless-tier-row td {
    border-top-color: transparent;
}

.limitless-tier-row.is-active .limitless-tier-row__check svg {
    visibility: visible;
}

/* ---------- Real-time note ---------- */
.limitless-realtime-note {
    margin: 16px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 400;
    color: var(--lu-teal);
}

.limitless-realtime-note__icon {
    font-weight: 700;
}

/* ---------- WooCommerce quantity field ----------
   Uploader products are locked to quantity 1 — copy quantity comes from the
   uploader file rows. This stylesheet only loads on uploader-enabled product
   pages, so this hides the Woo quantity field even on themes that ignore the
   sold-individually / quantity-input-args filters. */
form.cart div.quantity {
    display: none !important;
}

/* ---------- Cart summary ---------- */
.limitless-cart-summary {
    font-size: 13px;
    color: #50575e;
    margin-top: 4px;
}

.limitless-cart-summary__toggle {
    display: inline-block;
    color: #066D7E;
    cursor: pointer;
    font-size: 12px;
    padding: 0;
    text-decoration: underline;
}

.limitless-cart-summary details {
    margin-top: 2px;
}

.limitless-cart-summary summary::-webkit-details-marker {
    display: none;
}

.limitless-cart-file-list {
    margin: 6px 0 0 12px;
    padding: 0;
    list-style: none;
    font-size: 12px;
}

.limitless-cart-file-list li {
    padding: 2px 0;
    color: #50575e;
}

/* Concise order option lines under the cart item name */
.limitless-cart-options {
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
    font-size: 12px;
    color: #50575e;
}

.limitless-cart-options li {
    padding: 1px 0;
}

.limitless-cart-options .limitless-cart-options__review {
    font-weight: 600;
    color: #1b7a3d;
}

/* ---------- Relocated add-to-cart button ---------- */
.limitless-cart-button-slot:empty {
    display: none;
}

.limitless-cart-button-slot .single_add_to_cart_button {
    display: block;
    width: 100%;
    margin: 0;
    padding: 15px 20px;
    background: var(--lu-teal);
    color: var(--lu-white);
    border: none;
    border-radius: 10px;
    font-family: var(--lu-font);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
}

.limitless-cart-button-slot .single_add_to_cart_button:hover:not(:disabled) {
    background: #055866;
    color: var(--lu-white);
}

.limitless-cart-button-slot .single_add_to_cart_button:disabled {
    /* Clearly "not ready yet" — neutral gray, not a washed-out teal */
    background: #c3c9cd;
    color: #ffffff;
    opacity: 1;
    cursor: not-allowed;
    box-shadow: none;
}

/* ---------- Add-to-cart "Updating price…" state ---------- */
.single_add_to_cart_button.limitless-updating {
    opacity: 0.6;
    cursor: wait;
}

/* ---------- Admin CSS (also loaded here for simplicity) ---------- */
.limitless-admin-wrap .limitless-tab-content {
    padding: 20px 0;
}

/* ---------- Responsive (viewport-level safety net) ---------- */
@media (max-width: 600px) {
    .limitless-card {
        padding: 18px 14px;
    }

    .limitless-dropzone {
        padding: 24px 16px;
    }

    .limitless-summary-stat__value {
        font-size: 24px;
    }

    .limitless-summary-total__value {
        font-size: 36px;
    }
}
