:root {
    --mud-appbar-height: 6rem;
    --cc-blue: #293d97;
    --cc-dark-blue: #0b2244;
    --cc-nav-blue: #2c3e50;
    --cc-blue-accent-01: #172d4d;
    --cc-blue-accent-02: #364758;
    --cc-dark-grey: #555555;
    --cc-medium-grey: #cccccc;
    --cc-light-grey: #f5f5f5;
    --cc-standard-text: #333333;
    --cc-yellow-accent: #d7a31a;
    --cc-panel-background: #eef3f7;
    --cc-panel-border: #a1b0bb;
    --store-navy: var(--cc-dark-blue);
    --store-blue: var(--cc-blue);
    --store-gold: var(--cc-yellow-accent);
    --store-ink: var(--cc-standard-text);
    --store-muted: var(--cc-dark-grey);
    --store-border: var(--cc-medium-grey);
    --store-surface: #ffffff;
    --store-page: var(--cc-light-grey);
    --store-primary: var(--cc-blue);
    --store-header: var(--cc-dark-blue);
    --store-focus-color: var(--cc-dark-blue);
}

html,
body {
    min-height: 100%;
    background: var(--mud-palette-background);
    color: var(--mud-palette-text-primary);
    font-family: Vazirmatn, "Roboto Flex", "Noto Sans", sans-serif;
    font-size: 1rem;
}

:focus-visible {
    outline: 0.1875rem solid var(--store-focus-color);
    outline-offset: 0.1875rem;
}

h1:focus:not(:focus-visible) {
    outline: none;
}

.store-skip-link {
    position: fixed;
    top: 0;
    left: 1rem;
    z-index: 1500;
    padding: 0.75rem 1rem;
    color: var(--cc-dark-blue);
    background: #ffffff;
    border: 0.1875rem solid var(--cc-yellow-accent);
    border-top: 0;
    border-radius: 0 0 0.3125rem 0.3125rem;
    font-weight: 600;
    text-decoration: none;
    transform: translateY(-125%);
    transition: transform 120ms ease;
}

    .store-skip-link:focus {
        outline: 0.1875rem solid #ffffff;
        outline-offset: 0.1875rem;
        transform: translateY(0);
    }

.store-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--mud-palette-background);
}

.store-layout {
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
}

.store-main-content {
    flex: 1 1 auto;
}

.store-content {
    min-height: 100%;
    padding: 1.75rem 2rem 2.25rem;
}

.store-container {
    width: 100%;
    max-width: none;
    padding-top: 0;
    padding-bottom: 0;
}

.store-app-bar {
    background: linear-gradient(rgb(41, 68, 97), rgb(32, 53, 70)) !important;
    border-bottom: 0.1875rem solid var(--cc-yellow-accent);
}

    .store-app-bar .mud-toolbar {
        min-height: 6rem;
    }

.store-app-brand {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    min-width: 0;
}

.store-app-logo {
    box-sizing: border-box;
    display: block;
    width: 5rem;
    height: 5rem;
    flex: 0 0 5rem;
    object-fit: contain;
    background: #ffffff;
    border: 0.3125rem solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.25);
}

.store-app-brand-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.1;
}

.store-app-title,
.store-app-subtitle {
    color: inherit;
}

.store-app-subtitle {
    opacity: 0.85;
}

.store-hero {
    margin: 0 0 2rem;
    padding: 1.875rem 0 0.875rem;
    border-bottom: 0.0625rem solid var(--store-border);
}

    .store-hero h1 {
        color: var(--store-primary);
        font-weight: 700;
    }

.store-section {
    display: grid;
    gap: 1.125rem;
}

.store-section-heading {
    display: grid;
    gap: 0.25rem;
    padding-left: 0.875rem;
    border-left: 0.25rem solid var(--store-gold);
}

.store-product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 17.5rem;
    overflow: hidden;
    border: 0.0625rem solid var(--store-border);
    border-radius: 0.5rem;
    transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

    .store-product-card:hover {
        border-color: rgba(41, 61, 151, 0.34);
        box-shadow: 0 0.625rem 1.5rem rgba(11, 34, 68, 0.12);
        transform: translateY(-0.125rem);
    }

.store-product-header {
    align-items: flex-start;
    background: #f8fafc;
    border-bottom: 0.0625rem solid var(--store-border);
}

.store-product-badge {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    margin-top: 0.5rem;
    padding: 0.25rem 0.625rem;
    color: var(--store-blue);
    background: rgba(41, 61, 151, 0.08);
    border: 0.0625rem solid rgba(41, 61, 151, 0.24);
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.25;
}

.store-product-price {
    color: var(--store-primary);
    font-weight: 800;
}

.store-product-content {
    flex: 1 1 auto;
    color: var(--store-ink);
}

.store-product-actions {
    align-items: center;
    padding: 0.5rem 1rem 1rem;
}

.store-product-details-divider {
    margin-block: 1rem;
}

.store-contact-panel,
.store-summary-panel,
.store-form-panel,
.store-status-panel {
    background: var(--store-surface);
    border: 0.0625rem solid var(--store-border);
    border-radius: 0.5rem;
}

.store-contact-panel,
.store-summary-panel,
.store-form-panel {
    padding: 1.5rem;
}

.store-contact-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.125rem;
    border-top: 0.25rem solid var(--store-gold);
}

.store-contact-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.625rem;
}

.store-summary-panel {
    position: sticky;
    top: 6.75rem;
}

.store-purchase-breadcrumbs {
    margin-bottom: 1rem;
}

.store-product-summary-price {
    margin-block: 0.5rem;
}

.store-product-summary-divider {
    margin-block: 1rem;
}

.store-form-heading {
    margin-bottom: 1rem;
}

.store-form-divider {
    margin-block: 1.5rem;
}

.store-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.store-status-panel,
.store-centered-state {
    display: grid;
    justify-items: center;
    gap: 1rem;
    text-align: center;
}

.store-status-panel {
    max-width: 42.5rem;
    margin: 3rem auto;
    padding: 2.5rem 1.75rem;
}

.store-centered-state {
    padding: 3rem 0;
}

.store-footer {
    position: relative;
    z-index: 1300;
    flex: 0 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    min-height: 3rem;
    padding: 0.625rem 1.5rem;
    color: #ffffff;
    background: var(--cc-dark-blue);
    border-top: 0.1875rem solid var(--cc-yellow-accent);
    box-shadow: 0 -0.125rem 0.5rem rgba(11, 34, 68, 0.18);
    font-size: 1rem;
    line-height: 1.5;
}

.store-footer-separator {
    color: rgba(255, 255, 255, 0.65);
}

.valid.modified:not([type="checkbox"]) {
    outline: 0.0625rem solid #26b050;
}

.invalid {
    outline: 0.0625rem solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    padding: 1rem;
    color: #ffffff;
    background: #b32121;
}

    .blazor-error-boundary::after {
        content: "An error has occurred.";
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

#blazor-error-ui {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1600;
    display: none;
    min-height: 3.5rem;
    padding: 1rem 4rem 1rem 1.25rem;
    color: var(--cc-dark-blue);
    background: #fff4c2;
    border-top: 0.1875rem solid var(--cc-yellow-accent);
    box-shadow: 0 -0.125rem 0.5rem rgba(11, 34, 68, 0.18);
}

    #blazor-error-ui .reload {
        margin-left: 0.5rem;
        color: var(--cc-dark-blue);
        font-weight: 700;
    }

    #blazor-error-ui .dismiss {
        position: absolute;
        top: 50%;
        right: 0.75rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 2.75rem;
        min-height: 2.75rem;
        padding: 0;
        color: var(--cc-dark-blue);
        background: transparent;
        border: 0;
        border-radius: 0.3125rem;
        font: inherit;
        font-size: 1.5rem;
        cursor: pointer;
        transform: translateY(-50%);
    }

@media (prefers-reduced-motion: reduce) {
    .store-skip-link,
    .store-product-card {
        transition: none;
    }

        .store-product-card:hover {
            transform: none;
        }
}

@media (max-width: 37.5rem) {
    .store-content {
        padding: 1.25rem 1rem 2rem;
    }

    .store-hero {
        margin-bottom: 1.25rem;
        padding-top: 1rem;
    }

    .store-summary-panel {
        position: static;
    }

    .store-form-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

        .store-form-actions .mud-button-root {
            width: 100%;
            min-height: 2.75rem;
        }

    .store-app-subtitle {
        display: none;
    }

    .store-contact-panel {
        align-items: stretch;
        flex-direction: column;
    }

    .store-contact-links {
        justify-content: flex-start;
    }

    .store-footer {
        padding-inline: 1rem;
    }

    .store-contact-panel > * {
        min-width: 0;
    }

    .store-contact-panel a {
        overflow-wrap: anywhere;
        word-break: break-word;
    }
}
