[data-order-form] [hidden] {
    display: none !important;
}

[data-order-form] .pherrormsg,
[data-order-form] .nanerrormsg,
[data-order-form] .auerrormsg {
    color: #a60000;
}

[data-order-form] .order-status {
    display: block !important;
}

[data-order-form] .order-status.invalid {
    border-color: #ffb900;
}

.order-layout {
    --order-line: #d7e1ed;
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    grid-template-areas: "config summary" "account summary" "finish summary";
    gap: clamp(30px, 5vw, 84px);
    align-items: start;
    color: #172f50;
}
.order-layout *, .order-layout { box-sizing: border-box; }
.order-panel {
    min-width: 0;
}
.order-panel h2 { font-size: clamp(24px, 2.2vw, 34px); letter-spacing: -.035em; margin: 0 0 20px; }
.order-panel h3 { font-size: 20px; margin: 26px 0 12px; padding-top: 16px; border-top: 1px solid var(--order-line); }
.order-panel p { margin: 0 0 13px; }
.order-panel p:last-child { margin-bottom: 0; }
.order-panel label { line-height: 1.5; }
.order-config { grid-area: config; }
.order-account { grid-area: account; }
.order-finish { grid-area: finish; }
.order-step { display: flex; align-items: center; gap: 12px; }
.order-step > span {
    display: grid; place-items: center; flex: none; width: 1.85em; height: 1.85em;
    border-radius: 50%; background: #e5eef9; color: #234b80; font-size: .68em;
}
.order-receipt { margin: 0 0 22px; }
.order-receipt div {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 12px; padding: 9px 0; border-bottom: 1px solid #d2deed;
}
.order-receipt dd { margin: 0; text-align: right; font-weight: 650; }
.order-receipt dt { color: #435973; }
.order-account, .order-finish { padding-top: 24px; border-top: 1px solid var(--order-line); }
@media (min-width: 901px) and (min-height: 700px) {
    .order-summary { position: sticky; top: 100px; }
}
.order-summary { grid-area: summary; background: #eff4fa; padding: clamp(18px, 2.3vw, 32px); border-radius: 12px; }
.order-summary h6 { color: #173c70; font-size: 21px; margin: 12px 0 20px; }
.order-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px 16px; }
.order-fields p { margin: 0; }
.order-fields p:has([data-name="country"]) { grid-column: 1 / -1; }
.order-panel label[for] { display: block; font-size: 15px; font-weight: 600; }
.order-panel input:is([type=text],[type=tel],[type=date],[type=email],[type=number]) {
    display: block; width: 100%; min-width: 0; min-height: 44px; margin-block: 4px 8px;
    background: #f4f6f9; border: 0; border-bottom: 1px solid #8394a9; border-radius: 5px 5px 0 0; padding: 8px 11px; color: #172f50;
}
.order-panel input[type=number] { max-width: 10em; }
.order-panel input:focus-visible { outline: 2px solid #285394; outline-offset: 2px; }
.order-panel input[aria-invalid=true] { border-color: #ad2935; }
.order-panel input[type=checkbox] { accent-color: #254f93; }
.order-panel .wpcf7-checkbox { display: flex; flex-wrap: wrap; gap: 6px; }
.order-panel .wpcf7-list-item { display: block; margin: 0; }
.order-panel .wpcf7-checkbox label { display: flex; align-items: baseline; gap: 6px; padding: 6px 10px; border-radius: 6px; cursor: pointer; }
.order-panel .wpcf7-checkbox label:hover { background: #f1f4f8; }
.order-panel .wpcf7-checkbox label:has(:checked) { background: #e6effc; color: #193e72; }
.order-panel [data-name^=product] .wpcf7-checkbox { display: grid; }
.order-finish .wpcf7-acceptance { display: block; margin-bottom: 10px; }
.order-panel input[type=submit] { white-space: normal; border-radius: 7px; padding: 12px 22px; background: #264f92; color: white; }
.order-panel input[type=submit]:disabled { opacity: .6; }
.order-panel .order-price-note:empty { display: none; }
@media (max-width: 900px) { .order-layout { grid-template-columns: 1fr; grid-template-areas: "config" "account" "summary" "finish"; } }
@media (max-width: 560px) { .order-fields { grid-template-columns: 1fr; } }
