﻿/* Store customer-information dialog */

.store-customer-dialog {
    width: min(34rem, calc(100vw - 2rem));
    max-width: 34rem;
}

    .store-customer-dialog .store-customer-dialog-content {
        padding: clamp(1rem, 3vw, 1.5rem);
    }

    .store-customer-dialog .store-customer-card {
        background: var(--store-white);
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .store-customer-dialog .store-customer-header {
        margin-bottom: 1.25rem;
    }

    .store-customer-dialog .store-customer-title {
        margin: 0;
        color: var(--store-text-main);
        font-size: clamp(1.25rem, 3vw, 1.55rem);
        font-weight: 800;
        line-height: 1.25;
        letter-spacing: -0.02em;
    }

    .store-customer-dialog .store-customer-description {
        margin: 0.35rem 0 0;
        color: var(--store-text-secondary);
        font-size: 0.875rem;
        line-height: 1.5;
    }

    .store-customer-dialog .store-customer-divider {
        margin-top: 1rem;
        border-color: var(--store-border);
    }

    .store-customer-dialog .store-customer-grid {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .store-customer-dialog .store-customer-field {
        padding-top: 0 !important;
        padding-bottom: 1rem !important;
    }

        .store-customer-dialog .store-customer-field:last-child {
            padding-bottom: 0 !important;
        }

    .store-customer-dialog .mud-input-control {
        margin-top: 0;
    }

    .store-customer-dialog .mud-input-label.mud-input-label-inputcontrol {
        background: var(--store-white);
    }

    .store-customer-dialog .mud-error-text {
        margin-top: 0.35rem;
        color: var(--store-danger);
        font-size: 0.78rem;
        font-weight: 650;
        line-height: 1.4;
    }

    .store-customer-dialog .mud-dialog-actions {
        padding: 0;
        background: var(--store-white);
    }

    .store-customer-dialog .store-action-bar {
        padding: 0 clamp(1rem, 3vw, 1.5rem) clamp(1rem, 3vw, 1.5rem);
    }

    .store-customer-dialog .store-btn-primary {
        order: 2;
        min-width: 10rem;
    }

    .store-customer-dialog .store-btn-secondary {
        order: 1;
    }

@media screen and (max-width: 600px) {
    .store-customer-dialog {
        width: 100vw;
        max-width: 100vw;
        margin: 0;
        border: 0;
        border-radius: 0;
    }

        .store-customer-dialog::before {
            height: 0.25rem;
        }

        .store-customer-dialog .store-customer-dialog-content {
            padding: 0;
        }

        .store-customer-dialog .store-customer-card {
            padding: 1rem;
        }

        .store-customer-dialog .store-customer-header {
            margin-bottom: 1rem;
        }

        .store-customer-dialog .store-customer-field {
            padding-bottom: 0.75rem !important;
        }

        .store-customer-dialog .store-action-bar {
            flex-direction: column;
            gap: 0.55rem;
            padding: 0 1rem 1rem;
        }

        .store-customer-dialog .store-btn {
            width: 100%;
        }

        .store-customer-dialog .store-btn-primary {
            order: 1;
        }

        .store-customer-dialog .store-btn-secondary {
            order: 2;
        }
}

@media (prefers-reduced-motion: reduce) {
    .store-customer-dialog *,
    .store-customer-dialog *::before,
    .store-customer-dialog *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}
