.lml-gallery-shell {
    position: relative;
    overflow: visible;
}

.lml-gallery {
    --lml-ink: #1d1d1f;
    --lml-muted: #6e6e73;
    --lml-line: rgba(0, 0, 0, 0.08);
    --lml-bg: #f5f5f7;
    --lml-card: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
    color: var(--lml-ink);
    -webkit-font-smoothing: antialiased;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

.lml-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 16px 24px;
    margin-bottom: 28px;
}

.lml-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.lml-chip {
    appearance: none;
    border: 1px solid var(--lml-line);
    background: transparent;
    color: var(--lml-ink);
    border-radius: 980px;
    padding: 7px 14px;
    font-size: 13px;
    line-height: 1.2;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.28s cubic-bezier(0.22, 1, 0.36, 1), color 0.28s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease;
}

.lml-chip:hover,
.lml-chip:focus {
    border-color: rgba(0, 0, 0, 0.18);
    outline: none;
}

.lml-chip.is-active {
    background: var(--lml-ink);
    border-color: var(--lml-ink);
    color: #fff;
}

.lml-brand-orb-host {
    --lml-orb-hit: 56px;
    --lml-orb-bleed: 24px;
    --lml-orb-size: var(--lml-orb-hit);
    --lml-orb-fill: #0f766e;
    --lml-neon: conic-gradient(from 0deg, #55c8ff, #6ad0ff, #8e6cff, #501ee5, #c252ff, #530fc8, #55c8ff);
    position: fixed;
    z-index: 100080;
    width: calc(var(--lml-orb-hit) + (2 * var(--lml-orb-bleed)));
    height: calc(var(--lml-orb-hit) + (2 * var(--lml-orb-bleed)));
    left: 20px;
    bottom: 20px;
    top: auto;
    right: auto;
    overflow: visible;
    pointer-events: none;
}

.lml-brand-orb-host[hidden] {
    display: none;
}

.lml-brand-orb,
.lml-brand-popover {
    pointer-events: auto;
}

.lml-brand-orb {
    position: absolute;
    left: var(--lml-orb-bleed);
    top: var(--lml-orb-bleed);
    width: var(--lml-orb-hit);
    height: var(--lml-orb-hit);
    border: 0;
    padding: 0;
    border-radius: 50%;
    background: transparent;
    cursor: grab;
    touch-action: none;
    user-select: none;
    outline: none;
    overflow: visible;
}

.lml-brand-orb:active {
    cursor: grabbing;
}

.lml-brand-orb:focus-visible {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9), 0 0 0 5px rgba(15, 23, 42, 0.35);
}

.lml-brand-orb-glow,
.lml-brand-orb-ring,
.lml-brand-orb-core {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.lml-brand-orb-glow {
    inset: -10px;
    background: var(--lml-neon);
    filter: blur(12px);
    opacity: 0.55;
    animation: lml-orb-spin 7s linear infinite;
    z-index: 0;
}

.lml-brand-orb-ring {
    inset: 0;
    padding: 3px;
    background: var(--lml-neon);
    animation: lml-orb-spin 5.5s linear infinite;
    z-index: 1;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
}

.lml-brand-orb-core {
    inset: 6px;
    z-index: 2;
    overflow: hidden;
    background: linear-gradient(135deg, #55c8ff 0%, #501ee5 100%);
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.35);
}

.lml-brand-orb-wash {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    animation: lml-orb-wash 12s ease-in-out infinite;
}

.lml-brand-orb-wash[data-lml-wash="0"] {
    background: linear-gradient(145deg, #198cff 0%, #7658ff 65%, #570fdd 100%);
}

.lml-brand-orb-wash[data-lml-wash="1"] {
    background: linear-gradient(160deg, #e9f8ff 0%, #6ad0ff 28%, #8e6cff 62%, #530fc8 100%);
    animation-delay: 4s;
}

.lml-brand-orb-wash[data-lml-wash="2"] {
    background: linear-gradient(125deg, #55c8ff 0%, #c252ff 100%);
    animation-delay: 8s;
}

.lml-brand-orb.is-set .lml-brand-orb-core {
    background: var(--lml-orb-fill);
}

.lml-brand-orb.is-set .lml-brand-orb-wash {
    animation: none;
    opacity: 0;
}

.lml-brand-orb.is-set .lml-brand-orb-glow {
    background: var(--lml-orb-fill);
    opacity: 0.5;
    animation: none;
    filter: blur(14px);
}

.lml-brand-orb-tip {
    position: fixed;
    left: 0;
    top: 0;
    background: rgba(15, 23, 42, 0.92);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.2;
    white-space: nowrap;
    padding: 6px 10px;
    border-radius: 8px;
    opacity: 0;
    pointer-events: none;
    z-index: 100081;
    transition: opacity 0.16s ease;
}

.lml-brand-orb:hover .lml-brand-orb-tip,
.lml-brand-orb:focus-visible .lml-brand-orb-tip {
    opacity: 1;
}

.lml-brand-orb-host.is-dragging .lml-brand-orb-tip,
.lml-brand-orb-host.is-open .lml-brand-orb-tip {
    opacity: 0;
}

.lml-brand-popover {
    position: fixed;
    width: 220px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.22);
    backdrop-filter: blur(16px);
    z-index: 100082;
    left: 0;
    top: 0;
}

.lml-brand-popover[hidden] {
    display: none;
}

.lml-brand-sv {
    position: relative;
    width: 100%;
    height: 132px;
    border-radius: 10px;
    overflow: hidden;
    cursor: crosshair;
    background: hsl(var(--lml-orb-hue, 180), 100%, 50%);
    touch-action: none;
}

.lml-brand-sv::before,
.lml-brand-sv::after {
    content: "";
    position: absolute;
    inset: 0;
}

.lml-brand-sv::before {
    background: linear-gradient(to right, #fff, rgba(255, 255, 255, 0));
}

.lml-brand-sv::after {
    background: linear-gradient(to top, #000, rgba(0, 0, 0, 0));
}

.lml-brand-sv-cursor {
    position: absolute;
    width: 14px;
    height: 14px;
    margin: -7px 0 0 -7px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
    z-index: 1;
    pointer-events: none;
}

.lml-brand-hue-wrap {
    margin-top: 10px;
}

.lml-brand-hue {
    display: block;
    width: 100%;
    height: 16px;
    margin: 0;
    appearance: none;
    background: linear-gradient(to right, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00);
    border-radius: 980px;
    outline: none;
}

.lml-brand-hue::-webkit-slider-thumb {
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid rgba(15, 23, 42, 0.35);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.lml-brand-hue::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid rgba(15, 23, 42, 0.35);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.lml-brand-popover-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.lml-brand-hex {
    flex: 1 1 auto;
    min-width: 0;
    height: 34px;
    border: 1px solid var(--lml-line);
    border-radius: 9px;
    padding: 0 10px;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
    background: #fff;
    -webkit-user-select: text;
    user-select: text;
}

.lml-brand-clear {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--lml-muted);
    font-size: 13px;
    cursor: pointer;
    padding: 4px 2px;
    text-decoration: none;
    flex: 0 0 auto;
}

.lml-brand-clear:hover,
.lml-brand-clear:focus {
    color: var(--lml-ink);
    text-decoration: underline;
}

@keyframes lml-orb-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes lml-orb-wash {
    0%,
    16%,
    100% {
        opacity: 0;
    }

    28%,
    48% {
        opacity: 1;
    }

    60% {
        opacity: 0;
    }
}

.lml-status {
    text-align: center;
    color: var(--lml-muted);
    padding: 48px 16px;
    font-size: 15px;
}

.lml-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 80px 16px;
}

.lml-loading[hidden] {
    display: none;
}

.lml-loading--inline {
    padding: 28px 16px;
}

.lml-spinner {
    width: 28px;
    height: 28px;
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-top-color: var(--lml-ink);
    border-radius: 50%;
    animation: lml-spin 0.7s linear infinite;
    flex-shrink: 0;
}

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

@keyframes lml-spin {
    to {
        transform: rotate(360deg);
    }
}

.lml-grid {
    display: flex;
    align-items: flex-start;
    gap: 48px;
    position: relative;
    max-width: 1240px;
    width: 100%;
    margin: 0 auto;
}

.lml-grid-col {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 56px;
}

.lml-grid-col[hidden] {
    display: none !important;
}

.lml-tile {
    position: relative;
    background: transparent;
    border: 0;
    box-shadow: none;
    overflow: visible;
    border-radius: 12px;
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    opacity: 1;
    transition: opacity 0.24s ease;
}

.lml-tile[hidden] {
    display: none !important;
}

.lml-tile--enter,
.lml-tile--leave {
    opacity: 0;
}

.lml-tile-demo {
    overflow: visible;
    background: transparent;
    pointer-events: auto;
    opacity: 1;
    transition: opacity 0.28s ease;
}

.lml-tile-demo--enter {
    opacity: 0;
}

.lml-tile-demo:empty {
    min-height: 280px;
    border-radius: 12px;
    background: var(--lml-tile-placeholder, #e8e8ed);
}

.lml-tile--dark .lml-tile-demo:empty {
    background: var(--lml-tile-placeholder, #1c1c1e);
}

.lml-tile-demo .ddlm-form {
    max-width: 100% !important;
    min-width: 0 !important;
    width: 100% !important;
    margin: 0 auto !important;
}

.lml-tile-demo .ddlm-form-input,
.lml-tile-demo select.ddlm-select {
    display: block !important;
    visibility: visible !important;
    min-height: 42px;
}

.lml-tile-demo textarea.ddlm-textarea {
    display: block !important;
    visibility: visible !important;
}

.lml-tile--dark .ddlm-form-heading,
.lml-tile--dark .ddlm-field-heading,
.lml-tile--dark .ddlm-field-label,
.lml-tile--dark .ddlm-required {
    color: #f5f5f7 !important;
}

.lml-tile--dark .ddlm-form-subheading,
.lml-tile--dark .ddlm-field-paragraph,
.lml-tile--dark .ddlm-field-description,
.lml-tile--dark .ddlm-form-footer,
.lml-tile--dark .ddlm-form-footer-text {
    color: #a1a1a6 !important;
}

.lml-tile--dark .ddlm-terms-label,
.lml-tile--dark .ddlm-checkbox-label,
.lml-tile--dark .ddlm-checkbox-text,
.lml-tile--dark .ddlm-radio-label,
.lml-tile--dark .ddlm-radio-text {
    color: #f5f5f7 !important;
}

.lml-tile--dark .ddlm-stripe-payment-field {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    color: #f5f5f7 !important;
}

.lml-tile--dark .ddlm-stripe-payment-preview,
.lml-tile--dark .ddlm-stripe-payment-pricing {
    background: #1c1c1e !important;
    border: 1px solid #3a3a3c !important;
    border-radius: 12px !important;
    color: #f5f5f7 !important;
}

.lml-tile--dark .ddlm-stripe-payment-preview {
    padding: 14px !important;
}

.lml-tile--dark .ddlm-stripe-mock-label,
.lml-tile--dark .ddlm-stripe-mock-link-row,
.lml-tile--dark .ddlm-stripe-mock-link-text,
.lml-tile--dark .ddlm-stripe-pricing-row,
.lml-tile--dark .ddlm-stripe-pricing-subtotal,
.lml-tile--dark .ddlm-stripe-pricing-tax-row,
.lml-tile--dark .ddlm-stripe-pricing-processing-fee,
.lml-tile--dark .ddlm-stripe-pricing-total,
.lml-tile--dark .ddlm-stripe-payment-amount,
.lml-tile--dark .ddlm-stripe-tax-ex-note,
.lml-tile--dark .ddlm-stripe-coupon-feedback {
    color: #f5f5f7 !important;
}

.lml-tile--dark .ddlm-stripe-mock-input {
    background: #2c2c2e !important;
    border-color: #3a3a3c !important;
    color: #f5f5f7 !important;
}

.lml-tile--dark .ddlm-stripe-coupon-toggle,
.lml-tile--dark .ddlm-stripe-coupon-toggle * {
    color: var(--ddlm-link-color, #bf5af2) !important;
}

.lml-tile--dark .ddlm-stripe-pricing-discount {
    color: #30d158 !important;
}

.lml-tile--dark .ddlm-progress-step-connector {
    background: #3a3a3c !important;
}

.lml-tile--dark .ddlm-progress-step-pill {
    background: #2c2c2e !important;
    color: #d1d5db !important;
}

.lml-tile--dark .ddlm-progress-step.is-complete .ddlm-progress-step-pill,
.lml-tile--dark .ddlm-progress-step.is-active .ddlm-progress-step-pill {
    background: var(--ddlm-primary-color, #bf5af2) !important;
    color: #111113 !important;
}

.lml-tile--dark .ddlm-stripe-payment-unavailable {
    color: #a1a1a6 !important;
}

@media (prefers-reduced-motion: reduce) {
    .lml-chip,
    .lml-tile,
    .lml-tile-demo {
        transition: none !important;
    }

    .lml-brand-orb-glow,
    .lml-brand-orb-ring,
    .lml-brand-orb-core,
    .lml-brand-orb-wash {
        animation: none !important;
    }

    .lml-brand-orb-wash[data-lml-wash="0"] {
        opacity: 1;
    }
}

.lml-tile-overlay {
    position: absolute;
    top: 12px;
    right: 12px;
    left: auto;
    bottom: auto;
    pointer-events: none;
    z-index: 2;
}

.lml-tile-import {
    position: static;
    display: none;
    align-items: center;
    gap: 6px;
    appearance: none;
    border: 0;
    background: rgba(255, 255, 255, 0.92);
    color: var(--lml-ink);
    padding: 6px 10px;
    font-size: 13px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border-radius: 980px;
    text-decoration: none;
    pointer-events: auto;
}

.lml-tile:hover .lml-tile-import,
.lml-tile:focus-within .lml-tile-import {
    display: inline-flex;
}

.lml-tile-import,
.lml-tile-import:hover,
.lml-tile-import:focus {
    text-decoration: none;
}

.lml-tile-import:hover .lml-tile-import-text,
.lml-tile-import:focus .lml-tile-import-text {
    text-decoration: underline;
}

.lml-tile-import-icon,
.lml-tile-import .dashicons {
    text-decoration: none;
    width: 16px;
    height: 16px;
    font-size: 16px;
    line-height: 1;
    flex-shrink: 0;
}

.lml-footer {
    display: flex;
    justify-content: center;
    margin-top: 8px;
}

.lml-load-more {
    appearance: none;
    border: 1px solid var(--lml-line);
    background: #fff;
    color: var(--lml-ink);
    border-radius: 980px;
    padding: 10px 22px;
    font-size: 14px;
    cursor: pointer;
}

.lml-load-more:hover,
.lml-load-more:focus {
    border-color: rgba(0, 0, 0, 0.2);
    outline: none;
}

.lml-load-more:disabled {
    opacity: 0.5;
    cursor: default;
}

.lml-sheet {
    position: fixed;
    inset: 0;
    z-index: 100100;
    background: rgba(0, 0, 0, 0.36);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.lml-sheet[hidden] {
    display: none;
}

.lml-sheet-card {
    width: min(420px, 100%);
    background: #fff;
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.22);
}

.lml-sheet-title {
    margin: 0 0 18px;
    font-size: 22px;
    letter-spacing: -0.03em;
}

.lml-sheet-label {
    display: block;
    font-size: 13px;
    color: var(--lml-muted);
    margin-bottom: 6px;
}

.lml-sheet-input {
    width: 100%;
    height: 42px;
    border: 1px solid var(--lml-line);
    border-radius: 10px;
    padding: 0 12px;
    font-size: 15px;
    -webkit-user-select: text;
    user-select: text;
}

.lml-sheet-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.lml-sheet-cancel,
.lml-sheet-confirm {
    appearance: none;
    border-radius: 980px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
}

.lml-sheet-cancel {
    border: 1px solid var(--lml-line);
    background: transparent;
}

.lml-sheet-confirm {
    border: 0;
    background: var(--lml-ink);
    color: #fff;
}

.lml-picker {
    position: fixed;
    inset: 0;
    z-index: 100050;
    background: #f5f5f7;
    overflow: auto;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

.lml-gallery img,
.lml-picker img {
    -webkit-user-drag: none;
    user-drag: none;
}

.lml-picker[hidden] {
    display: none;
}

.lml-picker-inner {
    max-width: none;
    height: 100%;
    margin: 0 auto;
    padding: 36px 28px 64px;
    overflow: visible;
    box-sizing: border-box;
}

.lml-picker-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
}

.lml-picker-title {
    margin: 0;
    font-size: 40px;
    line-height: 1.05;
    letter-spacing: -0.04em;
    font-weight: 600;
}

.lml-picker-close {
    appearance: none;
    border: 0;
    background: rgba(0, 0, 0, 0.06);
    width: 36px;
    height: 36px;
    border-radius: 980px;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    color: var(--lml-ink);
}

body.lml-picker-open {
    overflow: hidden;
}

body.lml-picker-open #wpadminbar {
    visibility: hidden;
}

@media (max-width: 960px) {
    .lml-picker-title {
        font-size: 32px;
    }
}

@media (max-width: 640px) {
    .lml-grid {
        flex-direction: column;
        align-items: stretch;
        gap: 56px;
    }

    .lml-grid-col {
        width: 100%;
    }

    .lml-grid-col[data-lml-col="1"] {
        display: none;
    }
}
