.address-component {
    margin-bottom: var(--spacing-2xl);
}

.address-component.address-compact {
    margin-bottom: var(--spacing-lg);
}

.address-label {
    display: block;
    margin-bottom: var(--spacing-lg);
    font-weight: 600;
    font-size: 16px;
    color: var(--color-text-primary);
}

.address-compact .address-label {
    font-size: 14px;
    margin-bottom: var(--spacing-md);
}

.address-fields {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.address-compact .address-fields {
    gap: var(--spacing-md);
}

.address-row {
    display: flex;
    gap: var(--spacing-lg);
    width: 100%;
}

.address-compact .address-row {
    gap: var(--spacing-md);
}

.address-street {
    flex-direction: column;
}

.address-street > div {
    width: 100%;
}

.address-city-state-zip {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: start;
}

.address-compact .address-city-state-zip {
    gap: var(--spacing-md);
}

.address-city {
    min-width: 0;
}

.address-state {
    min-width: 120px;
}

.address-zip {
    min-width: 100px;
}

.address-component .text-input-component {
    margin-bottom: var(--spacing-lg) !important;
}

.address-compact .address-component .text-input-component {
    margin-bottom: var(--spacing-md) !important;
}

.address-component .text-input-error {
    position: static;
    margin-top: var(--spacing-xs);
    margin-bottom: 0;
}

.address-component .dropdown-container {
    width: 100%;
}

.address-component .dropdown-trigger:not(.split-button) {
    width: 100%;
    min-width: auto;
    justify-content: space-between;
}

.address-component .form-group {
    margin-bottom: var(--spacing-lg) !important;
}

.address-compact .address-component .form-group {
    margin-bottom: var(--spacing-md) !important;
}

.address-component .dropdown-error {
    position: static;
    margin-top: var(--spacing-xs);
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .address-city-state-zip {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .address-state,
    .address-zip {
        min-width: 100%;
    }

    .address-compact .address-city-state-zip {
        gap: var(--spacing-md);
    }
}

@media (max-width: 480px) {
    .address-component {
        margin-bottom: var(--spacing-xl);
    }

    .address-fields {
        gap: var(--spacing-sm);
    }

    .address-compact .address-fields {
        gap: var(--spacing-xs);
    }

    .address-row {
        gap: var(--spacing-md);
    }

    .address-compact .address-row {
        gap: var(--spacing-sm);
    }

    .address-label {
        font-size: 16px;
    }

    .address-compact .address-label {
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .address-component * {
        transition: none;
        animation: none;
    }
}

@media print {
    .address-component {
        break-inside: avoid;
        margin-bottom: var(--spacing-lg);
    }

    .address-fields {
        gap: var(--spacing-sm);
    }

    .address-city-state-zip {
        grid-template-columns: 2fr 1fr 1fr;
    }
}