#order_form :is(.asd-order-types, .asd-order-company) {
    min-width: 0;
    padding: 0;
    margin: 0 0 14px;
    border: 0;
}

#order_form .asd-order-types legend {
    margin-bottom: 6px;
    font-weight: 700;
}

#order_form .asd-order-types label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 0 12px 6px 0;
}

#order_form .asd-order-types input[type="radio"] {
    appearance: auto;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    accent-color: #ac1419;
}

#order_form .asd-order-company label {
    display: block;
    margin-bottom: 4px;
}

/* The order form changes height when company fields become visible. */
#colorbox:has(#contactForm) {
    position: fixed !important;
    inset: 50% auto auto 50% !important;
    transform: translate(-50%, -50%);
    width: min(570px, calc(100% - 24px)) !important;
    height: auto !important;
}

#colorbox:has(#contactForm) :is(#cboxWrapper, #cboxContent, #cboxLoadedContent) {
    width: 100% !important;
    height: auto !important;
}

#colorbox:has(#contactForm) #cboxWrapper {
    position: relative;
}

#colorbox:has(#contactForm) :is(#cboxMiddleLeft, #cboxMiddleRight) {
    display: none;
}

#colorbox:has(#contactForm) #cboxLoadedContent {
    box-sizing: border-box;
    max-height: calc(100dvh - 24px);
    padding: 28px clamp(16px, 5vw, 40px);
    overflow: auto;
    overscroll-behavior: contain;
}

#colorbox #contactForm .form {
    min-width: 0;
}

#colorbox #contactForm > .name {
    margin-top: 0;
    padding-top: 0;
}
