﻿/* ============================================================================
   Shared dialog foundation
   ----------------------------------------------------------------------------
   Admin dialog section headings, descriptions, delete/cancel actions, graphic-
   selection sizing, interaction states, and mobile action ordering.

   Source: Pasted text (3)(1).txt:15 and 123-208 plus responsive admin-form rules.
   ============================================================================ */

@media (min-width: 960px) {
    .mud-grid-item.graphic-selection-item {
        flex: 0 0 10%;
        max-width: 10%;
    }
}

.store-admin-form-dialog .store-admin-form-section {
    min-width: 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
}

.store-admin-form-dialog .mud-dialog-title {
    display: none;
}

.store-admin-form-dialog .store-admin-form-section-heading {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.store-admin-form-dialog .store-admin-form-section-copy {
    min-width: 0;
}

.store-admin-form-dialog .store-admin-form-section-title {
    margin: 0;
    color: var(--store-text-main);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.35;
}

.store-admin-form-dialog .store-admin-form-section-description {
    display: block;
    margin-top: 0.2rem;
    color: var(--store-text-muted);
    font-size: 0.8rem;
    line-height: 1.45;
}

.store-admin-form-dialog .store-admin-form-actions {
    gap: 0.65rem;
}

.store-admin-form-dialog .store-admin-form-delete {
    order: 0;
    margin-right: auto;
    color: var(--store-danger) !important;
    background: var(--store-white) !important;
    border-color: color-mix(in srgb, var(--store-danger) 48%, var(--store-border));
    box-shadow: none !important;
}

.store-admin-form-dialog .store-admin-form-cancel {
    order: 1;
}

@media (hover: hover) and (pointer: fine) {
    .store-admin-form-dialog .store-admin-form-delete:hover:not(:disabled) {
        color: var(--store-danger) !important;
        background: var(--store-danger-soft) !important;
        border-color: var(--store-danger);
        box-shadow: none !important;
        transform: translateY(-1px);
    }
}

.store-admin-form-dialog .store-admin-form-delete:active:not(:disabled) {
    color: var(--store-danger) !important;
    background: var(--store-danger-soft) !important;
    border-color: var(--store-danger);
    box-shadow: none !important;
    transform: translateY(1px);
}

.store-admin-form-dialog .store-admin-form-delete:disabled {
    color: var(--store-text-secondary) !important;
    background: var(--store-grey) !important;
    border-color: var(--store-border);
    cursor: not-allowed;
    opacity: 1;
    transform: none;
}

@media screen and (max-width: 600px) {
    .store-admin-form-dialog .store-admin-form-delete {
        order: 3;
        margin-top: 0.25rem;
        margin-right: 0;
    }
}
