.an-order-trigger:focus,
.an-order-trigger:focus-visible,
.an-order-dialog :focus,
.an-order-dialog :focus-visible {
    outline: 3px solid #f4c84a;
    outline-offset: 3px;
}

.an-order-dialog {
    box-sizing: border-box;
    width: 520px;
    max-width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    margin: auto;
    padding: 0;
    overflow: auto;
    overscroll-behavior: contain;
    border: 0;
    border-radius: 8px;
    background: #173a60;
    color: #fff;
}

.an-order-dialog::backdrop {
    background: rgba(5, 13, 29, .76);
}

.an-order-dialog__panel {
    padding: clamp(20px, 4vw, 32px);
}

.an-order-dialog__header {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 12px;
    background: #173a60;
}

.an-order-dialog__title {
    margin: 0;
    color: inherit;
    font-size: 24px;
    line-height: 1.25;
}

.an-order-dialog__close {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 50%;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font: inherit;
    font-size: 27px;
    line-height: 1;
}

.an-order-dialog__intro,
.an-order-dialog .please {
    display: block;
    margin: 0 0 14px;
    line-height: 1.5;
}

.an-order-dialog__field {
    display: block;
    margin: 14px 0;
    color: inherit;
    font-size: 15px;
    line-height: 1.4;
}

.an-order-dialog input:not([type="hidden"]):not([type="checkbox"]):not([type="submit"]),
.an-order-dialog textarea {
    box-sizing: border-box;
    display: block;
    width: 100%;
    min-height: 48px;
    margin-top: 6px;
    padding: 11px 13px;
    border: 1px solid #c3ccd5;
    border-radius: 4px;
    background: #fff;
    color: #182431;
    font: inherit;
}

.an-order-dialog textarea {
    min-height: 110px;
    resize: vertical;
}

.an-order-dialog .pd-consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    box-sizing: border-box;
    width: 100%;
    margin: 18px 0;
    color: #fff;
    font-size: 14px;
    line-height: 1.45;
}

.an-order-dialog .pd-consent input {
    appearance: auto;
    accent-color: #f4c84a;
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin: 2px 0 0;
}

.an-order-dialog .pd-consent a {
    color: #f4c84a;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.an-order-dialog__status:empty {
    display: none;
}

.an-order-dialog__status {
    margin: 14px 0 0;
    line-height: 1.45;
}

.an-order-dialog input[type="submit"] {
    box-sizing: border-box;
    width: 100%;
    min-height: 48px;
    margin-top: 12px;
    border: 0;
    border-radius: 4px;
    background: #f4c84a;
    color: #17283b;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}

.an-order-contact {
    margin: 12px 0 0;
    font-size: 14px;
    line-height: 1.5;
}

.an-order-contact a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

@media (max-width: 480px) {
    .an-order-dialog__title {
        font-size: 21px;
    }
}
