/* Customer AI inspirations — slab detail */

.customer-ai-dialog [hidden],
.customer-ai-gallery[hidden],
.customer-ai-file-preview[hidden] {
    display: none !important;
}

.slab-v2 button.slab-v2-btn {
    appearance: none;
    cursor: pointer;
    font-family: inherit;
    box-sizing: border-box;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    line-height: 1.2;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.slab-v2 button.slab-v2-btn-outline {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1rem;
    background: transparent;
    color: #243746;
    border: 1px solid #243746;
}

.slab-v2 button.slab-v2-btn-outline:hover,
.slab-v2 button.slab-v2-btn-outline:focus {
    background-color: #f9fafb;
    color: #243746;
}

.slab-v2 button.slab-v2-btn-primary {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1rem;
    text-align: center;
    background-color: #243746;
    color: #fff;
    border: 1px solid #243746;
}

.slab-v2 button.slab-v2-btn-primary:hover,
.slab-v2 button.slab-v2-btn-primary:focus {
    background-color: #233746;
    border-color: #233746;
    color: #fff;
}

.slab-v2 button.slab-v2-btn:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.customer-ai-cta {
    position: relative;
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
}

.customer-ai-cta-inner {
    position: relative;
    padding: 1.75rem 1rem 1.625rem;
    text-align: center;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
}

.customer-ai-cta-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 0.625rem;
}

.customer-ai-cta-icon svg {
    width: 2.25rem;
    height: 2.25rem;
}

.customer-ai-cta-title {
    margin: 0;
    font-family: BrandonGrotesqueWeb-Medium, sans-serif;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.3;
    color: #111827;
}

.customer-ai-cta-copy {
    margin: 0.375rem 0 0.875rem;
    font-family: BrandonGrotesqueWeb-Regular, sans-serif;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: #6b7280;
}

.customer-ai-cta-btn {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.7rem 1rem;
    border: 0;
    border-radius: 999px;
    background: #111827;
    color: #fff;
    font-family: BrandonGrotesqueWeb-Medium, sans-serif;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    line-height: 1.2;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(17, 24, 39, 0.18);
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.customer-ai-cta-btn:hover,
.customer-ai-cta-btn:focus {
    background: #000;
    color: #fff;
}

.customer-ai-cta-btn:active {
    transform: scale(0.97);
}

.slab-v2 .customer-ai-cta + .slab-v2-cta-stack {
    margin-top: 0.75rem;
}

.customer-ai-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e5e7eb;
}

@media (min-width: 640px) {
    .customer-ai-gallery {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.customer-ai-thumb {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    background: #f9fafb;
    cursor: pointer;
    text-align: left;
    overflow: hidden;
}

.customer-ai-thumb:hover,
.customer-ai-thumb:focus {
    border-color: #243746;
}

.customer-ai-thumb-image {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    background: #f3f4f6;
}

.customer-ai-thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 4 / 5;
    background: #f3f4f6;
    color: #6b7280;
}

.customer-ai-thumb-label {
    display: block;
    padding: 0 0.5rem 0.5rem;
    font-size: 0.75rem;
    line-height: 1.4;
    color: #4b5563;
}

.customer-ai-dialog {
    width: min(52rem, calc(100vw - 1.5rem));
    max-height: min(92vh, 50rem);
    margin: auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: #111827;
    overflow: visible;
    font-family: BrandonGrotesqueWeb-Regular, sans-serif;
}

.customer-ai-dialog::backdrop {
    background: rgba(17, 24, 39, 0.62);
}

.customer-ai-dialog[open] {
    display: flex;
    flex-direction: column;
}

.customer-ai-dialog-inner {
    display: flex;
    flex-direction: column;
    min-height: 0;
    position: relative;
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
    overflow: auto;
    max-height: min(92vh, 50rem);
}

.customer-ai-dialog-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.25rem 0;
}

.customer-ai-dialog-kicker {
    margin: 0 0 0.2rem;
    font-family: BrandonGrotesqueWeb-Medium, sans-serif;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #6b7280;
}

.customer-ai-dialog-title {
    margin: 0;
    font-family: BrandonGrotesqueWeb-Medium, sans-serif;
    font-size: 1.375rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: #111827;
}

.customer-ai-dialog-close {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    margin: -0.25rem -0.25rem 0 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #374151;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
}

.customer-ai-dialog-close:hover,
.customer-ai-dialog-close:focus {
    color: #111827;
    background: #f3f4f6;
}

.customer-ai-dialog-body {
    padding: 1rem 1.25rem 1.5rem;
}

.customer-ai-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 1.25rem;
}

.customer-ai-tab {
    appearance: none;
    flex: 1 1 0;
    margin: 0;
    padding: 0.7rem 0.3rem;
    border: 0;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    background: transparent;
    font-family: BrandonGrotesqueWeb-Medium, sans-serif;
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #6b7280;
    cursor: pointer;
}

.customer-ai-tab.is-active {
    color: #243746;
    border-bottom-color: #243746;
}

.customer-ai-hint {
    margin: 0 0 1rem;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #4b5563;
}

.customer-ai-examples {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 0 0.75rem;
}

.customer-ai-example {
    appearance: none;
    margin: 0;
    padding: 0.375rem 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #fff;
    color: #374151;
    font-family: BrandonGrotesqueWeb-Medium, sans-serif;
    font-size: 0.75rem;
    line-height: 1.4;
    cursor: pointer;
    text-align: left;
}

.customer-ai-example:hover,
.customer-ai-example:focus {
    border-color: #243746;
    color: #243746;
}

.customer-ai-textarea {
    display: block;
    width: 100%;
    min-height: 7.5rem;
    padding: 0.75rem 0.875rem;
    border: 1px solid #d1d5db;
    border-radius: 0.75rem;
    background: #fff;
    color: #111827;
    font-family: BrandonGrotesqueWeb-Regular, sans-serif;
    font-size: 0.9375rem;
    line-height: 1.5;
    resize: vertical;
}

.customer-ai-textarea:focus {
    outline: 2px solid #243746;
    outline-offset: 1px;
}

.customer-ai-count {
    margin: 0.375rem 0 0;
    text-align: right;
    font-size: 0.75rem;
    color: #9ca3af;
}

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

[data-customer-ai-mode="photo"] {
    position: relative;
}

.customer-ai-dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 8.5rem;
    padding: 1.25rem;
    border: 1px dashed #d1d5db;
    border-radius: 0.75rem;
    background: #f9fafb;
    cursor: pointer;
    text-align: center;
}

.customer-ai-dropzone.is-dragging {
    border-color: #243746;
    background: #f3f4f6;
}

.customer-ai-dropzone-label {
    font-family: BrandonGrotesqueWeb-Medium, sans-serif;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #243746;
}

.customer-ai-dropzone-hint {
    font-size: 0.8125rem;
    color: #6b7280;
}

.customer-ai-file-preview {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.customer-ai-file-preview img {
    width: 4.5rem;
    height: 4.5rem;
    object-fit: cover;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
}

.customer-ai-file-meta {
    min-width: 0;
    font-size: 0.875rem;
    color: #374151;
}

.customer-ai-file-name {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.customer-ai-file-remove {
    appearance: none;
    margin-top: 0.25rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: #243746;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: underline;
}

.customer-ai-surfaces-label {
    margin: 1.25rem 0 0.5rem;
    font-family: BrandonGrotesqueWeb-Medium, sans-serif;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #111827;
    text-align: left;
}

[data-wizard-step] .customer-ai-hint + .customer-ai-surfaces-label {
    margin-top: 0.5rem;
}

.customer-ai-surfaces {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.customer-ai-chip {
    appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0;
    padding: 0.4375rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    background: #fff;
    color: #374151;
    font-family: BrandonGrotesqueWeb-Medium, sans-serif;
    font-size: 0.8125rem;
    text-align: left;
    cursor: pointer;
}

.customer-ai-chip-swatch {
    flex: 0 0 auto;
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.customer-ai-chip-swatch--herringbone {
    background: repeating-linear-gradient(
        -45deg,
        #c9a06a 0 3px,
        #b8925c 3px 6px
    );
}

.customer-ai-chip-swatch--checkerboard {
    background: conic-gradient(#1c1c1c 90deg, #f3f1ed 0 180deg, #1c1c1c 0 270deg, #f3f1ed 0);
}

.customer-ai-chip.is-selected {
    border-color: #243746;
    background: #243746;
    color: #fff;
}

.customer-ai-chip.is-selected .customer-ai-chip-swatch {
    border-color: rgba(255, 255, 255, 0.45);
}

.customer-ai-actions {
    margin-top: 1.25rem;
}

.customer-ai-wizard-marker {
    --dot: 1.75rem;
    display: flex;
    align-items: flex-start;
    position: relative;
    width: 100%;
    max-width: 32rem;
    margin: 0 auto 1.5rem;
    padding: 0;
    list-style: none;
    pointer-events: none;
    user-select: none;
}

.customer-ai-wizard-marker::before {
    content: "";
    position: absolute;
    top: calc(var(--dot) / 2 - 1px);
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: #e5e7eb;
}

.customer-ai-wizard-marker li {
    position: relative;
    z-index: 1;
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
    padding: 0;
    list-style: none;
    background: transparent;
    height: auto;
    border-radius: 0;
    color: #9ca3af;
}

.customer-ai-wizard-marker li::marker {
    content: none;
}

.customer-ai-wizard-marker-dot {
    box-sizing: border-box;
    display: grid;
    place-items: center;
    width: var(--dot);
    height: var(--dot);
    margin: 0;
    padding: 0;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    background: #fff;
    color: #9ca3af;
    font-family: BrandonGrotesqueWeb-Medium, sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0;
}

.customer-ai-wizard-marker-dot span {
    display: block;
    line-height: 1;
    transform: translateY(-0.06em);
}

.customer-ai-wizard-marker-label {
    font-family: BrandonGrotesqueWeb-Medium, sans-serif;
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
    color: #9ca3af;
}

.customer-ai-wizard-marker li.is-current .customer-ai-wizard-marker-dot {
    border-color: #111827;
    background: #111827;
    color: #fff;
}

.customer-ai-wizard-marker li.is-current .customer-ai-wizard-marker-label {
    color: #111827;
}

.customer-ai-wizard-marker li.is-done .customer-ai-wizard-marker-dot {
    border-color: #111827;
    background: #fff;
    color: #111827;
}

.customer-ai-wizard-step-title {
    margin: 0 0 0.35rem;
    font-family: BrandonGrotesqueWeb-Medium, sans-serif;
    font-size: 1.125rem;
    font-weight: 500;
    color: #111827;
}

.customer-ai-wizard-scenes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
}

.customer-ai-wizard-scene {
    appearance: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    margin: 0;
    padding: 0.75rem 0.85rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    background: #fff;
    color: #111827;
    font-family: BrandonGrotesqueWeb-Medium, sans-serif;
    text-align: left;
    cursor: pointer;
}

.customer-ai-wizard-scene:hover,
.customer-ai-wizard-scene:focus {
    border-color: #243746;
}

.customer-ai-wizard-scene.is-selected {
    border-color: #111827;
    background: #111827;
    color: #fff;
}

.customer-ai-wizard-scene-name {
    font-size: 0.875rem;
}

.customer-ai-wizard-scene-meta {
    font-family: BrandonGrotesqueWeb-Regular, sans-serif;
    font-size: 0.75rem;
    color: #6b7280;
}

.customer-ai-wizard-scene.is-selected .customer-ai-wizard-scene-meta {
    color: #d1d5db;
}

.customer-ai-wizard-chips {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
}

.customer-ai-wizard-chips .customer-ai-chip {
    width: 100%;
    min-height: 2.5rem;
    border-radius: 0.625rem;
    padding: 0.55rem 0.75rem;
}

.customer-ai-wizard-preview {
    margin: 1rem 0 0;
    font-size: 0.875rem;
    line-height: 1.55;
    color: #4b5563;
}

.customer-ai-wizard-error {
    margin: 0.75rem 0 0;
    font-size: 0.8125rem;
    color: #b45309;
}

.customer-ai-wizard-nav {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.slab-v2 .customer-ai-wizard-nav button.slab-v2-btn {
    width: auto;
    flex: 1 1 0;
}

.customer-ai-dialog .slab-v2-btn,
.slab-v2 .customer-ai-dialog a.slab-v2-btn,
.slab-v2 .customer-ai-dialog button.slab-v2-btn {
    border-radius: 999px;
    font-family: BrandonGrotesqueWeb-Medium, sans-serif;
    font-weight: 500;
}

.customer-ai-progress,
.customer-ai-error,
.customer-ai-result {
    text-align: center;
}

.customer-ai-progress {
    padding: 1.5rem 0.5rem 0.75rem;
}

.customer-ai-progress-visual {
    position: relative;
    width: 5.5rem;
    height: 5.5rem;
    margin: 0 auto 1.25rem;
}

.customer-ai-progress-visual::before {
    content: "";
    position: absolute;
    inset: 0.35rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.18), transparent 70%);
    animation: customer-ai-pulse 1.8s ease-in-out infinite;
}

.customer-ai-progress-spin {
    position: absolute;
    inset: 0;
    animation: customer-ai-spin 1.1s linear infinite;
}

.customer-ai-progress-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid #e5e7eb;
    border-top-color: #3b82f6;
    border-right-color: #a855f7;
    border-bottom-color: #ec4899;
}

.customer-ai-progress-icon {
    position: absolute;
    inset: 1.05rem;
    width: auto;
    height: auto;
    animation: customer-ai-pulse 1.8s ease-in-out infinite;
}

.customer-ai-progress-title {
    margin: 0;
    font-family: BrandonGrotesqueWeb-Medium, sans-serif;
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: #111827;
}

.customer-ai-status {
    margin: 0.5rem 0 0;
    font-size: 0.9375rem;
    color: #374151;
}

.customer-ai-status::after {
    content: "";
    animation: customer-ai-dots 1.4s steps(4, end) infinite;
}

.customer-ai-progress-hint {
    margin: 0.375rem 0 0;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: #9ca3af;
}

.customer-ai-progress-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    width: 100%;
    max-width: 22rem;
    margin: 1.25rem auto 0;
    padding: 0;
    list-style: none;
}

.customer-ai-progress-steps li {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.5rem;
    border-radius: 999px;
    background: #f3f4f6;
    color: #9ca3af;
    font-family: BrandonGrotesqueWeb-Medium, sans-serif;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
}

.customer-ai-progress-steps li.is-current {
    background: #111827;
    color: #fff;
    animation: customer-ai-step-pulse 1.6s ease-in-out infinite;
}

.customer-ai-progress-steps li.is-done {
    background: #e5e7eb;
    color: #374151;
}

.customer-ai-spinner {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    border: 3px solid #e5e7eb;
    border-top-color: #243746;
    border-radius: 50%;
    animation: customer-ai-spin 0.8s linear infinite;
}

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

@keyframes customer-ai-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.65; transform: scale(0.96); }
}

@keyframes customer-ai-dots {
    0% { content: ""; }
    25% { content: "."; }
    50% { content: ".."; }
    75% { content: "..."; }
}

@keyframes customer-ai-step-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(17, 24, 39, 0.18); }
    50% { box-shadow: 0 0 0 6px rgba(17, 24, 39, 0); }
}

.customer-ai-error-message {
    margin: 0 0 1.25rem;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #374151;
}

.customer-ai-result-image {
    display: block;
    width: 100%;
    max-height: 28rem;
    margin: 0 auto 1rem;
    object-fit: contain;
    background: #f3f4f6;
    border-radius: 0.75rem;
}

.customer-ai-result-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

@media (min-width: 480px) {
    .customer-ai-result-actions {
        flex-direction: row;
        justify-content: center;
    }

    .slab-v2 .customer-ai-result-actions a.slab-v2-btn,
    .slab-v2 .customer-ai-result-actions button.slab-v2-btn,
    .customer-ai-result-actions .slab-v2-btn {
        width: auto;
        min-width: 12rem;
    }
}

@media (max-width: 639px) {
    .customer-ai-wizard-scenes,
    .customer-ai-wizard-chips {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
