/**
 * LF Wishlist & Registry — Premium Admin Settings
 */

/* ---------------------------------------------------------------
 * Layout
 * ------------------------------------------------------------- */
.lfwlr-admin-wrap {
    max-width: 920px;
    margin: 20px 20px 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Pro settings / wide tables: use more of the admin content width */
.lfwlr-admin-wrap--wide {
    max-width: min(1320px, calc(100% - 40px));
}

.lfwlr-admin-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

/*
 * WordPress moves .notice elements after the first h1. Without this anchor
 * they land inside the flex header and sit beside the page title.
 */
.lfwlr-admin-wrap > .wp-header-end {
    border: 0;
    height: 0;
    margin: 0 0 16px;
    padding: 0;
}

.lfwlr-admin-wrap > .notice,
.lfwlr-admin-wrap > .updated,
.lfwlr-admin-wrap > .error,
.lfwlr-admin-wrap > .update-nag {
    margin: 0 0 16px;
}

.lfwlr-admin-header__icon {
    width: 36px;
    height: 36px;
    color: #e8475f;
    flex-shrink: 0;
}

.lfwlr-admin-header__title {
    font-size: 22px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    line-height: 1.2;
}

.lfwlr-admin-header__version {
    font-size: 12px;
    font-weight: 500;
    color: #94a3b8;
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 6px;
    margin-left: 4px;
    vertical-align: middle;
}

/* ---------------------------------------------------------------
 * Tabs
 * ------------------------------------------------------------- */
.lfwlr-admin-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 0;
}

.lfwlr-admin-tab {
    display: inline-block;
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    white-space: nowrap;
    transition: color .15s, border-color .15s;
    text-decoration: none;
    box-sizing: border-box;
    line-height: 1.4;
}

a.lfwlr-admin-tab:focus {
    outline: none;
    box-shadow: none;
}

a.lfwlr-admin-tab:focus-visible {
    outline: 2px solid #e8475f;
    outline-offset: 2px;
}

.lfwlr-admin-tab:hover {
    color: #334155;
}

.lfwlr-admin-tab--active {
    color: #e8475f;
    border-bottom-color: #e8475f;
    font-weight: 600;
}

/* ---------------------------------------------------------------
 * Section Card
 * ------------------------------------------------------------- */
.lfwlr-admin-section {
    display: none;
}

.lfwlr-admin-section--active {
    display: block;
}

.lfwlr-admin-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0;
    margin: 24px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
    overflow: visible;
}

.lfwlr-admin-card__header {
    padding: 20px 24px 16px;
    border-bottom: 1px solid #f1f5f9;
}

.lfwlr-admin-card__title {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 4px;
}

.lfwlr-admin-card__desc {
    font-size: 13px;
    color: #94a3b8;
    margin: 0;
    line-height: 1.5;
}

.lfwlr-admin-card__body {
    padding: 0;
    overflow: visible;
}

/* ---------------------------------------------------------------
 * Field Row
 * ------------------------------------------------------------- */
.lfwlr-field {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 24px;
    border-bottom: 1px solid #f8fafc;
}

.lfwlr-field:last-child {
    border-bottom: none;
}

.lfwlr-field__label-wrap {
    flex: 0 0 240px;
    min-width: 0;
    padding-top: 4px;
}

.lfwlr-field__label {
    font-size: 14px;
    font-weight: 500;
    color: #334155;
    line-height: 1.4;
    display: block;
}

.lfwlr-field__hint {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 4px;
    line-height: 1.4;
}

.lfwlr-field__control {
    flex: 1;
    min-width: 0;
}

/* ---------------------------------------------------------------
 * Toggle Switch (checkbox replacement)
 * ------------------------------------------------------------- */
.lfwlr-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    gap: 10px;
}

.lfwlr-toggle__input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.lfwlr-toggle__track {
    position: relative;
    width: 44px;
    height: 24px;
    background: #cbd5e1;
    border-radius: 12px;
    transition: background .2s;
    flex-shrink: 0;
}

.lfwlr-toggle__track::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .15);
    transition: transform .2s;
}

.lfwlr-toggle__input:checked + .lfwlr-toggle__track {
    background: #e8475f;
}

.lfwlr-toggle__input:checked + .lfwlr-toggle__track::after {
    transform: translateX(20px);
}

.lfwlr-toggle__input:focus-visible + .lfwlr-toggle__track {
    outline: 2px solid #e8475f;
    outline-offset: 2px;
}

.lfwlr-toggle__text {
    font-size: 13px;
    color: #64748b;
}

/* ---------------------------------------------------------------
 * Text / Number / Email inputs
 * ------------------------------------------------------------- */
.lfwlr-input {
    width: 100%;
    max-width: 400px;
    padding: 8px 12px;
    font-size: 14px;
    color: #334155;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
    box-sizing: border-box;
}

.lfwlr-input:focus {
    border-color: #e8475f;
    box-shadow: 0 0 0 3px rgba(232, 71, 95, .1);
    outline: none;
}

.lfwlr-input--sm {
    max-width: 120px;
}

.lfwlr-input--color {
    max-width: 80px;
}

/* ---------------------------------------------------------------
 * Select
 * ------------------------------------------------------------- */
.lfwlr-select {
    width: 100%;
    max-width: 400px;
    padding: 8px 12px;
    font-size: 14px;
    color: #334155;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    background: #fff;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' fill='none' stroke='%2394a3b8' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
    cursor: pointer;
    box-sizing: border-box;
}

.lfwlr-select:focus {
    border-color: #e8475f;
    box-shadow: 0 0 0 3px rgba(232, 71, 95, .1);
    outline: none;
}

/* ---------------------------------------------------------------
 * Textarea
 * ------------------------------------------------------------- */
.lfwlr-textarea {
    width: 100%;
    max-width: 100%;
    padding: 10px 14px;
    font-size: 13px;
    font-family: "SF Mono", Monaco, Menlo, Consolas, monospace;
    color: #334155;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    background: #f8fafc;
    resize: vertical;
    min-height: 100px;
    box-sizing: border-box;
}

.lfwlr-textarea:focus {
    border-color: #e8475f;
    box-shadow: 0 0 0 3px rgba(232, 71, 95, .1);
    outline: none;
    background: #fff;
}

/* ---------------------------------------------------------------
 * Color Picker wrapper
 * ------------------------------------------------------------- */
.lfwlr-color-field {
    position: relative;
}

.lfwlr-color-field .wp-picker-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lfwlr-color-field .wp-picker-container .wp-color-result {
    border: 1px solid #e2e8f0 !important;
    border-radius: 4px !important;
    height: 38px !important;
    min-height: 38px !important;
    min-width: 160px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: stretch !important;
    overflow: hidden !important;
    position: relative !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #475569 !important;
    box-shadow: none !important;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s;
    margin: 0 !important;
}

.lfwlr-color-field .wp-picker-container .wp-color-result:hover {
    border-color: #cbd5e1 !important;
}

.lfwlr-color-field .wp-picker-container .wp-color-result:focus {
    border-color: #e8475f !important;
    box-shadow: 0 0 0 3px rgba(232, 71, 95, .1) !important;
    outline: none !important;
}

.lfwlr-color-field .wp-picker-container .wp-color-result .wp-color-result-text {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 1 1 auto !important;
    margin-left: 32px !important;
    height: 100% !important;
    background: #fff !important;
    border-left: 1px solid #e2e8f0 !important;
    border-radius: 0 !important;
    line-height: 38px !important;
    padding: 0 12px !important;
    font-size: 13px !important;
}

.lfwlr-color-field .wp-picker-container .wp-picker-input-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

.lfwlr-color-field .wp-picker-container .wp-picker-input-wrap label {
    margin: 0 !important;
}

.lfwlr-color-field .wp-picker-container .wp-picker-input-wrap input[type="text"].wp-color-picker {
    width: 90px !important;
    padding: 6px 10px !important;
    font-size: 13px !important;
    font-family: "SF Mono", Monaco, Menlo, Consolas, monospace !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 4px !important;
    color: #334155 !important;
    background: #f8fafc !important;
    box-shadow: none !important;
    height: auto !important;
    margin: 0 !important;
}

.lfwlr-color-field .wp-picker-container .wp-picker-input-wrap input[type="text"].wp-color-picker:focus {
    border-color: #e8475f !important;
    box-shadow: 0 0 0 3px rgba(232, 71, 95, .1) !important;
    outline: none !important;
    background: #fff !important;
}

.lfwlr-color-field .wp-picker-container .wp-picker-input-wrap .wp-picker-clear {
    padding: 4px 10px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 4px !important;
    background: #fff !important;
    color: #64748b !important;
    cursor: pointer !important;
    line-height: 1.6 !important;
    height: auto !important;
    margin: 0 !important;
}

.lfwlr-color-field .wp-picker-container .wp-picker-input-wrap .wp-picker-clear:hover {
    background: #f8fafc !important;
    color: #ef4444 !important;
    border-color: #fecaca !important;
}

.lfwlr-color-field .wp-picker-container .wp-picker-holder {
    display: none;
    position: absolute;
    z-index: 100;
    top: 100%;
    left: 0;
    margin-top: 6px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .1), 0 4px 10px rgba(0, 0, 0, .05);
    min-width: 240px;
}

.lfwlr-color-field .wp-picker-container.wp-picker-active .wp-picker-holder {
    display: block;
}

/* ---------------------------------------------------------------
 * SVG Upload
 * ------------------------------------------------------------- */
.lfwlr-svg-field {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.lfwlr-svg-field__preview {
    width: 48px;
    height: 48px;
    border: 1px dashed #e2e8f0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f8fafc;
}

.lfwlr-svg-field__preview img {
    max-width: 36px;
    max-height: 36px;
    object-fit: contain;
}

.lfwlr-svg-field__actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* ---------------------------------------------------------------
 * Buttons
 * ------------------------------------------------------------- */
.lfwlr-admin-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: all .15s;
    border: 1px solid transparent;
    text-decoration: none;
    line-height: 1.4;
}

.lfwlr-admin-btn--primary {
    background: #e8475f;
    color: #fff;
    border-color: #e8475f;
}

.lfwlr-admin-btn--primary:hover {
    background: #d63a51;
    border-color: #d63a51;
    color: #fff;
}

.lfwlr-admin-btn--sm {
    padding: 5px 12px;
    font-size: 12px;
    border-radius: 4px;
}

.lfwlr-admin-btn--secondary {
    background: #fff;
    color: #64748b;
    border-color: #e2e8f0;
}

.lfwlr-admin-btn--secondary:hover {
    background: #f8fafc;
    color: #334155;
}

.lfwlr-admin-btn--ghost {
    background: none;
    color: #ef4444;
    border: none;
    padding: 4px 8px;
}

.lfwlr-admin-btn--ghost:hover {
    background: #fef2f2;
}

/* ---------------------------------------------------------------
 * Footer
 * ------------------------------------------------------------- */
.lfwlr-admin-footer {
    padding: 20px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ---------------------------------------------------------------
 * Shortcode Docs
 * ------------------------------------------------------------- */
.lfwlr-shortcode-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 16px 20px;
    margin-bottom: 16px;
}

.lfwlr-shortcode-card__code {
    font-size: 14px;
    font-weight: 600;
    font-family: "SF Mono", Monaco, Menlo, Consolas, monospace;
    color: #e8475f;
    margin-bottom: 6px;
}

.lfwlr-shortcode-card__desc {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 8px;
}

.lfwlr-shortcode-card table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.lfwlr-shortcode-card th {
    text-align: left;
    font-weight: 600;
    color: #475569;
    padding: 6px 10px;
    border-bottom: 1px solid #e2e8f0;
}

.lfwlr-shortcode-card td {
    padding: 6px 10px;
    color: #64748b;
    border-bottom: 1px solid #f1f5f9;
}

.lfwlr-shortcode-card code {
    background: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    color: #1e293b;
}

/* ---------------------------------------------------------------
 * Notice (saved)
 * ------------------------------------------------------------- */
.lfwlr-admin-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 20px;
}

.lfwlr-admin-notice--success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

/* ---------------------------------------------------------------
 * Go Pro banner
 * ------------------------------------------------------------- */
.lfwlr-go-pro-banner {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 6px;
    padding: 32px;
    color: #fff;
    text-align: center;
    margin: 24px 0;
}

.lfwlr-go-pro-banner h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #fff;
}

.lfwlr-go-pro-banner p {
    font-size: 14px;
    opacity: .85;
    margin: 0 0 20px;
}

.lfwlr-go-pro-banner .lfwlr-admin-btn {
    background: #fff;
    color: #6366f1;
    font-weight: 600;
    padding: 10px 24px;
}

.lfwlr-go-pro-banner .lfwlr-admin-btn:hover {
    background: #f0f0ff;
    color: #4f46e5;
}

.lfwlr-go-pro-grid,
.lfwlr-go-pro-price-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.lfwlr-go-pro-feature {
    margin: 0;
    padding: 24px;
}

.lfwlr-go-pro-feature strong {
    display: block;
    font-size: 14px;
    color: #1e293b;
    margin-bottom: 8px;
}

.lfwlr-go-pro-feature p {
    font-size: 13px;
    color: #64748b;
    margin: 0;
    line-height: 1.6;
}

.lfwlr-go-pro-pricing {
    margin-top: 28px;
}

.lfwlr-go-pro-pricing h2 {
    margin: 0 0 6px;
    font-size: 16px;
    color: #1e293b;
}

.lfwlr-go-pro-pricing > p {
    margin: 0 0 16px;
    font-size: 13px;
    color: #64748b;
}

.lfwlr-go-pro-price {
    display: block;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 22px 24px;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
}

.lfwlr-go-pro-price:hover,
.lfwlr-go-pro-price:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 1px #6366f1;
}

.lfwlr-go-pro-price__amount {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
}

.lfwlr-go-pro-price__name {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    color: #64748b;
}

/* ---------------------------------------------------------------
 * Pro: Analytics dashboard (lfwlr-analytics)
 * ------------------------------------------------------------- */
.lfwlr-analytics-intro {
    margin: -8px 0 20px;
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
}

.lfwlr-analytics-empty {
    margin: 0;
    padding: 20px 24px;
    color: #64748b;
    font-size: 14px;
}

.lfwlr-analytics-section.lfwlr-admin-card {
    overflow: visible;
}

.lfwlr-analytics-section .lfwlr-admin-card__body--flush {
    padding: 0;
}

.lfwlr-analytics-overview__grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.lfwlr-analytics-stat {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    column-gap: 10px;
    row-gap: 2px;
    align-items: center;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 8px 12px;
    min-width: 0;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}

.lfwlr-analytics-stat__icon {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.lfwlr-analytics-stat:has(.lfwlr-analytics-stat__split) .lfwlr-analytics-stat__icon {
    grid-row: 1 / span 2;
}

.lfwlr-analytics-stat__main {
    display: flex;
    align-items: baseline;
    gap: 6px;
    min-width: 0;
}

.lfwlr-analytics-stat__icon svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.lfwlr-analytics-stat__icon--lists { background: #f1f5f9; color: #475569; }
.lfwlr-analytics-stat__icon--items { background: #eef2ff; color: #4f46e5; }
.lfwlr-analytics-stat__icon--owners { background: #ecfeff; color: #0891b2; }
.lfwlr-analytics-stat__icon--purchases { background: #fff1f3; color: #e8475f; }
.lfwlr-analytics-stat__icon--claims { background: #fff7ed; color: #d97706; }

.lfwlr-analytics-stat__value {
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    color: #0f172a;
    letter-spacing: -0.03em;
}

.lfwlr-analytics-stat__value--primary { color: #e8475f; }
.lfwlr-analytics-stat__value--accent { color: #d97706; }

.lfwlr-analytics-stat__label {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    white-space: nowrap;
}

.lfwlr-analytics-stat__split {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    white-space: nowrap;
}

@media (max-width: 782px) {
    .lfwlr-analytics-overview__grid {
        grid-template-columns: 1fr;
    }
}

.lfwlr-analytics-stat__split span {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.lfwlr-analytics-stat__split svg {
    width: 12px;
    height: 12px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.lfwlr-analytics-section {
    margin-bottom: 24px;
}

.lfwlr-analytics-section .wp-list-table {
    border: none;
    box-shadow: none;
}

.lfwlr-analytics-section .wp-list-table th,
.lfwlr-analytics-section .wp-list-table td {
    vertical-align: middle;
}

.lfwlr-analytics-section .wp-list-table img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    vertical-align: middle;
    background: #f1f5f9;
}

/* Funnel report table */
.lfwlr-funnel-report.lfwlr-admin-card {
    margin-top: 0;
}

.lfwlr-funnel-table {
    border: none !important;
    box-shadow: none !important;
    margin: 0;
}

.lfwlr-funnel-table thead th {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    color: #475569;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.01em;
    padding: 12px 14px;
}

.lfwlr-funnel-table thead th a {
    color: #475569;
    text-decoration: none;
}

.lfwlr-funnel-table thead th a:hover {
    color: #e8475f;
}

.lfwlr-funnel-table tbody td {
    padding: 12px 14px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
    font-size: 13px;
    color: #334155;
}

.lfwlr-funnel-table tbody tr:last-child td {
    border-bottom: none;
}

.lfwlr-funnel-table__thumb {
    width: 56px;
}

.lfwlr-funnel-table__thumb img {
    display: block;
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
    background: #f1f5f9;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .06);
}

.lfwlr-funnel-table__product a {
    color: #0f172a;
    font-weight: 600;
    text-decoration: none;
}

.lfwlr-funnel-table__product a:hover {
    color: #e8475f;
}

.lfwlr-funnel-table__type {
    width: 110px;
}

.lfwlr-funnel-table__num,
.lfwlr-funnel-table__rate {
    width: 96px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.lfwlr-funnel-table__num strong {
    color: #0f172a;
}

.lfwlr-funnel-rate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.lfwlr-funnel-rate--high {
    background: #f0fdf4;
    color: #15803d;
}

.lfwlr-funnel-rate--mid {
    background: #fffbeb;
    color: #b45309;
}

.lfwlr-funnel-rate--low {
    background: #f8fafc;
    color: #94a3b8;
}

.lfwlr-select--compact {
    width: auto;
    min-width: 160px;
    max-width: 220px;
}

.lfwlr-input--date {
    width: auto;
    min-width: 140px;
    max-width: 160px;
}

.lfwlr-report-toolbar .lfwlr-select,
.lfwlr-report-toolbar .lfwlr-select--compact,
.lfwlr-report-toolbar .lfwlr-input--date {
    width: auto;
    flex: 0 0 auto;
}

@media (max-width: 960px) {
    .lfwlr-funnel-table__type,
    .lfwlr-funnel-table__num,
    .lfwlr-funnel-table__rate {
        width: auto;
    }
}

/* ---------------------------------------------------------------
 * Reports: abandoned, customer lists, shared toolbars
 * ------------------------------------------------------------- */
.lfwlr-report-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 20px;
    padding: 12px 16px;
    flex-wrap: wrap;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}

.lfwlr-report-toolbar__filters {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    min-width: 0;
}

.lfwlr-report-toolbar__label {
    font-size: 13px;
    color: #64748b;
    white-space: nowrap;
}

.lfwlr-report-toolbar__export {
    margin-left: auto;
}

.lfwlr-report-toolbar .lfwlr-input[type="search"] {
    min-width: 280px;
    flex: 1 1 280px;
    max-width: 420px;
}

.lfwlr-report-toolbar .lfwlr-input[type="number"] {
    width: 72px;
    min-width: 72px;
    max-width: 72px;
}

div.lfwlr-report-toolbar > .lfwlr-admin-btn:last-child,
div.lfwlr-report-toolbar > .lfwlr-report-toolbar__export {
    margin-left: auto;
}

.lfwlr-report-banner,
.lfwlr-report-empty {
    margin: 0 0 16px;
    padding: 12px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #334155;
    font-size: 13px;
    line-height: 1.5;
}

.lfwlr-report-empty {
    padding: 40px 28px;
    text-align: center;
}

.lfwlr-report-empty p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}

.lfwlr-report-limit {
    margin: 0 0 12px;
    color: #854d0e;
    font-size: 13px;
}

.lfwlr-admin-notice--warn {
    background: #fef9c3;
    border: 1px solid #fde68a;
    color: #854d0e;
}

.lfwlr-list-section + .lfwlr-list-section {
    margin-top: 28px;
}

.lfwlr-list-section__title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1;
}

.lfwlr-list-section__mark {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    flex-shrink: 0;
}

.lfwlr-list-section__mark svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.lfwlr-list-section__label {
    color: inherit;
}

.lfwlr-list-section__count {
    margin-left: auto;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    font-size: 12px;
    font-weight: 700;
}

.lfwlr-list-section--wishlist .lfwlr-list-section__title {
    background: #fff1f3;
    color: #be123c;
}

.lfwlr-list-section--registry .lfwlr-list-section__title {
    background: #eef2ff;
    color: #4338ca;
}

.lfwlr-report-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.lfwlr-report-card.lfwlr-admin-card,
.lfwlr-list-card.lfwlr-admin-card {
    margin: 0;
}

.lfwlr-report-card {
    padding: 0;
    overflow: hidden;
}

.lfwlr-report-card__head,
.lfwlr-list-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.lfwlr-report-card__head {
    padding: 18px 20px 0;
}

.lfwlr-report-card__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.lfwlr-person {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.lfwlr-person--bar {
    margin: 0 0 16px;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.lfwlr-person__mark {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(145deg, #fff1f3 0%, #ffe4e9 100%);
    color: #e8475f;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: inset 0 0 0 1px rgba(232, 71, 95, .12);
}

.lfwlr-person__name,
.lfwlr-person__meta {
    display: block;
}

.lfwlr-person__name {
    color: #0f172a;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.lfwlr-person__meta {
    margin-top: 2px;
    color: #64748b;
    font-size: 12px;
    text-decoration: none;
}

.lfwlr-report-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 20px 16px;
    padding: 0;
    list-style: none;
}

.lfwlr-report-facts li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    color: #475569;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
}

.lfwlr-report-facts svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
    fill: none;
    stroke: #94a3b8;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.lfwlr-line-groups {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0 20px 20px;
}

.lfwlr-line-group {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 14px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
}

.lfwlr-line-group--wishlist {
    border-top: 3px solid #fb7185;
}

.lfwlr-line-group--registry {
    border-top: 3px solid #818cf8;
}

.lfwlr-line-group__title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
}

.lfwlr-line-group__name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lfwlr-line-group__items {
    margin: 0;
    padding: 0;
    list-style: none;
}

.lfwlr-line-group__items li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    column-gap: 12px;
    row-gap: 2px;
    padding: 8px 0;
    font-size: 13px;
    color: #334155;
}

.lfwlr-line-group__items li + li {
    border-top: 1px solid #f1f5f9;
}

.lfwlr-line-group__product {
    min-width: 0;
    word-break: break-word;
}

.lfwlr-qty {
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.lfwlr-note {
    display: block;
    color: #94a3b8;
    font-size: 11px;
    line-height: 1.35;
}

.lfwlr-line-group__items .lfwlr-note {
    grid-column: 1 / -1;
}

.lfwlr-type,
.lfwlr-pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
}

.lfwlr-type--wishlist {
    background: #fff1f3;
    color: #e8475f;
}

.lfwlr-type--registry {
    background: #eef2ff;
    color: #4f46e5;
}

.lfwlr-pill {
    background: #f1f5f9;
    color: #475569;
}

.lfwlr-pill--ok {
    background: #f0fdf4;
    color: #15803d;
    box-shadow: inset 0 0 0 1px rgba(22, 163, 74, .15);
}

.lfwlr-pill--danger {
    background: #fef2f2;
    color: #dc2626;
    box-shadow: inset 0 0 0 1px rgba(220, 38, 38, .12);
}

@media (max-width: 782px) {
    .lfwlr-report-card__head {
        flex-direction: column;
        align-items: stretch;
    }

    .lfwlr-report-card__actions {
        justify-content: flex-start;
    }

    .lfwlr-report-toolbar__export {
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }
}

.lfwlr-list-card {
    padding: 0;
    overflow: hidden;
}

.lfwlr-list-card__summary {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    cursor: pointer;
    list-style: none;
}

.lfwlr-list-card__summary::-webkit-details-marker {
    display: none;
}

.lfwlr-list-card__summary:focus {
    outline: none;
}

.lfwlr-list-card__summary:focus-visible {
    box-shadow: inset 0 0 0 2px #e8475f;
    border-radius: 6px;
}

.lfwlr-list-card__chevron {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: #94a3b8;
    transition: transform .18s ease;
}

.lfwlr-list-card__chevron path {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.lfwlr-list-card[open] .lfwlr-list-card__chevron {
    transform: rotate(90deg);
}

.lfwlr-list-card__main {
    min-width: 0;
    flex: 1;
}

.lfwlr-list-card__title {
    display: block;
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
}

.lfwlr-list-card__tags,
.lfwlr-list-card__counts {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.lfwlr-list-card__counts {
    color: #475569;
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
}

.lfwlr-list-card__counts span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 3px 8px;
}

.lfwlr-list-card__counts svg {
    width: 13px;
    height: 13px;
    fill: none;
    stroke: #94a3b8;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.lfwlr-list-card__body {
    padding: 8px 12px 12px;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
}

.lfwlr-list-card__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 28px;
    margin-bottom: 8px;
}

.lfwlr-list-card__meta .lfwlr-report-facts {
    margin: 0;
    flex: 1;
    gap: 4px 14px;
}

.lfwlr-list-card__link {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    flex-shrink: 0;
    margin-left: auto;
    color: #e8475f;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
}

.lfwlr-list-card__link svg {
    width: 12px;
    height: 12px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.lfwlr-list-card__link:hover,
.lfwlr-list-card__link:focus {
    color: #be123c;
}

.lfwlr-inset__label {
    margin: 2px 4px 6px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #94a3b8;
}

.lfwlr-inset + .lfwlr-inset {
    margin-top: 10px;
}

.lfwlr-inset__group {
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 6px;
    overflow: hidden;
}

.lfwlr-inset__row {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 40px;
    padding: 7px 12px;
}

.lfwlr-inset__row + .lfwlr-inset__row {
    box-shadow: inset 0 1px 0 #eef2f6;
}

.lfwlr-inset__name {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    font-weight: 500;
    color: #0f172a;
}

.lfwlr-inset__name .lfwlr-note {
    margin-top: 1px;
}

.lfwlr-inset__trail {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
    color: #64748b;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

.lfwlr-inset__trail a {
    color: #e8475f;
    font-weight: 600;
    text-decoration: none;
}

.lfwlr-inset__stat {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    white-space: nowrap;
}

.lfwlr-inset__stat span {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: #94a3b8;
}

.lfwlr-inset__stat strong {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}

/* ---------------------------------------------------------------
 * Coupon reward activity
 * ------------------------------------------------------------- */
.lfwlr-reward-activity.lfwlr-admin-card {
    margin-top: 24px;
}

.lfwlr-reward-activity__notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 16px 24px 0;
    padding: 14px 16px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}

.lfwlr-reward-activity__notice--success {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

.lfwlr-reward-activity__notice--muted {
    color: #334155;
}

.lfwlr-reward-activity__icon {
    display: inline-flex;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(148, 163, 184, 0.16);
    color: inherit;
}

.lfwlr-reward-activity__notice--success .lfwlr-reward-activity__icon {
    background: rgba(22, 101, 52, 0.12);
}

.lfwlr-reward-activity__copy {
    flex: 1;
    min-width: 0;
}

.lfwlr-reward-activity__copy strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 2px;
    color: inherit;
}

.lfwlr-reward-activity__copy p {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    opacity: 0.9;
}

.lfwlr-reward-activity__count {
    flex-shrink: 0;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    background: #fff;
    border: 1px solid currentColor;
    opacity: 0.85;
}

.lfwlr-reward-activity__empty {
    padding: 20px 24px 24px;
}

.lfwlr-reward-activity__empty p {
    margin: 0;
    font-size: 13px;
    color: #64748b;
}

.lfwlr-reward-activity__list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 18px 24px 0;
    padding-bottom: 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #64748b;
}

.lfwlr-reward-activity__list-meta {
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    color: #94a3b8;
}

.lfwlr-reward-activity__list {
    list-style: none;
    margin: 0;
    padding: 0 0 8px;
}

.lfwlr-reward-activity__row {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.6fr) auto;
    gap: 12px 16px;
    align-items: center;
    margin: 0 12px;
    padding: 12px;
    border-radius: 6px;
}

.lfwlr-reward-activity__row + .lfwlr-reward-activity__row {
    border-top: 1px solid #f1f5f9;
}

.lfwlr-reward-activity__main {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.lfwlr-reward-activity__code {
    display: inline-block;
    max-width: 100%;
    padding: 4px 8px;
    border-radius: 4px;
    background: #f1f5f9;
    color: #0f172a;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lfwlr-reward-activity__status {
    flex-shrink: 0;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
}

.lfwlr-reward-activity__status--used {
    background: #dcfce7;
    color: #166534;
}

.lfwlr-reward-activity__status--unused {
    background: #f1f5f9;
    color: #475569;
}

.lfwlr-reward-activity__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    min-width: 0;
    font-size: 12px;
    color: #64748b;
}

.lfwlr-reward-activity__customer {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    align-items: baseline;
    color: #334155;
    font-weight: 500;
}

.lfwlr-reward-activity__customer a {
    color: inherit;
    text-decoration: none;
}

.lfwlr-reward-activity__customer a:hover {
    color: #e8475f;
}

.lfwlr-reward-activity__email,
.lfwlr-reward-activity__rule,
.lfwlr-reward-activity__date {
    color: #94a3b8;
    font-weight: 400;
}

.lfwlr-reward-activity__link {
    justify-self: end;
    font-size: 12px;
    font-weight: 600;
    color: #e8475f;
    text-decoration: none;
    white-space: nowrap;
}

.lfwlr-reward-activity__link:hover {
    text-decoration: underline;
}

/* ---------------------------------------------------------------
 * Responsive
 * ------------------------------------------------------------- */
@media (max-width: 782px) {
    .lfwlr-field {
        flex-direction: column;
        gap: 8px;
    }

    .lfwlr-field__label-wrap {
        flex: none;
        width: 100%;
    }

    .lfwlr-input,
    .lfwlr-select {
        max-width: 100%;
    }

    .lfwlr-reward-activity__row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .lfwlr-reward-activity__link {
        justify-self: start;
    }
}
