.ama-freight-page {
    max-width: 49rem;
}

.ama-freight-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem 1.2rem;
    margin-block: 1rem 1.6rem;
}

.ama-freight-page a.ama-freight-primary,
.ama-freight-page button.ama-freight-primary {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: .7rem;
    padding: .55rem 1rem;
    background: #005cb8;
    color: #fff !important;
    font: inherit;
    font-weight: 650;
    text-decoration: none;
    cursor: pointer;
}

.ama-freight-page .ama-freight-primary:hover {
    background: #064985;
    color: #fff !important;
}

.ama-freight-panel {
    padding: clamp(1rem, 3vw, 1.6rem);
    border: 1px solid #dce4ed;
    border-radius: 1rem;
}

.ama-freight-panel h2 {
    margin: 0 0 1rem;
}

.ama-freight-panel form > label,
.ama-freight-grid label,
.ama-freight-extra label:not(.ama-freight-checks label) {
    display: block;
    min-width: 0;
    margin-bottom: .85rem;
}

.ama-freight-page [hidden] {
    display: none !important;
}

.ama-freight-panel label > :is(input:not([type="checkbox"]), select, textarea) {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    margin-top: .3rem;
    padding: .5rem .65rem;
    border: 1px solid #c8d4e0;
    border-radius: .55rem;
    background: #fff;
    color: #182d42;
    font: inherit;
    box-sizing: border-box;
}

.ama-freight-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 .9rem;
}

.ama-freight-extra {
    margin-bottom: 1rem;
}

.ama-freight-extra summary {
    cursor: pointer;
    font-weight: 650;
    color: #0054a2;
    margin-bottom: .65rem;
}

.ama-freight-checks {
    display: flex;
    gap: .5rem .9rem;
    flex-wrap: wrap;
    margin-block: 0 .8rem;
}

.ama-freight-page .ama-freight-hint {
    color: #516276;
    font-size: .9rem;
    margin-bottom: 1rem;
}

.ama-freight-error {
    margin-bottom: .85rem;
    font-weight: 600;
    color: #a22024;
}

.ama-freight-follow {
    margin-block: 1.5rem;
}

.ama-freight-page [id] {
    scroll-margin-top: 7rem;
}

.ama-freight-current {
    background: #edf6ff;
    border-radius: .5rem;
    padding-inline: .65rem !important;
}

.ama-freight-discard {
    background: transparent;
    border: 0;
    padding: .4rem 0;
    color: #81414b;
    font: inherit;
    cursor: pointer;
}

@media (max-width: 490px) {
    .ama-freight-grid {
        grid-template-columns: 1fr;
    }

    .ama-freight-actions a {
        padding-block: .45rem;
    }
}

@media (max-width: 600px) {
    .admin-bar #ama-app:has(.ama-freight-page) .ama-main > .ama-geo-header {
        min-height: 98px;
    }
}
