/* Customer AI inspirations — slab detail */

.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;
    overflow: hidden;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    padding: 1.25rem 1rem 1.125rem;
    text-align: center;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    box-shadow: 0 10px 28px rgba(59, 130, 246, 0.08), 0 4px 14px rgba(244, 114, 182, 0.06);
}

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

.customer-ai-cta-icon::before {
    content: "";
    position: absolute;
    inset: 2px;
    background: #60a5fa;
    filter: blur(16px);
    opacity: 0.28;
}

.customer-ai-cta-icon svg {
    position: relative;
    z-index: 1;
    width: 2.25rem;
    height: 2.25rem;
}

.customer-ai-cta-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    background-image: linear-gradient(90deg, #111827, #4b5563, #111827);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.customer-ai-cta-copy {
    margin: 0.375rem 0 0.875rem;
    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: inherit;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    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;
    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(40rem, calc(100vw - 1.5rem));
    max-height: min(92vh, 46rem);
    margin: auto;
    padding: 0;
    border: 0;
    background: #fff;
    color: #111827;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
    overflow: auto;
}

.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;
}

.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-title {
    margin: 0;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.5rem;
    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;
    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;
}

.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.75rem 0.5rem;
    border: 0;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    background: transparent;
    font-family: inherit;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    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.625rem;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #374151;
    font-family: inherit;
    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;
    background: #fff;
    color: #111827;
    font-family: inherit;
    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;
    background: #f9fafb;
    cursor: pointer;
    text-align: center;
}

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

.customer-ai-dropzone-label {
    font-size: 0.8125rem;
    font-weight: 700;
    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;
}

.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-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #111827;
}

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

.customer-ai-chip {
    appearance: none;
    margin: 0;
    padding: 0.4375rem 0.75rem;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #374151;
    font-family: inherit;
    font-size: 0.8125rem;
    cursor: pointer;
}

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

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

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

.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);
    }
}

.customer-ai-status {
    margin: 1rem 0 0;
    font-size: 0.9375rem;
    color: #4b5563;
}

.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;
}

.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;
    }
}
