html.request-modal-open {
    overflow: hidden;
}
.request-modal {
    width: min(580px, calc(100% - 2rem));
    max-height: calc(100dvh - 2rem);
    padding: 2rem;
    border: 1px solid #d2e2ed;
    border-radius: 22px;
    background: #f8fbfd;
    color: var(--korst-navy-900);
    box-shadow: 0 24px 90px #0a182650;
    overflow-y: auto;
}
.request-modal::backdrop {
    background: #0a1826a6;
    backdrop-filter: blur(4px);
}
.request-close {
    position: absolute;
    top: 0.6rem;
    right: 0.8rem;
    padding: 0;
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    color: #647180;
    font-size: 1.9rem;
    line-height: 1;
}
.request-close:hover {
    color: var(--korst-blue);
}
.request-heading {
    padding-right: 1rem;
}
.request-heading .eyebrow {
    font-size: 0.68rem;
    margin-bottom: 0.8rem;
}
.request-heading h2 {
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
}
.request-heading p {
    color: #647180;
    font-size: 0.9rem;
    line-height: 1.65;
    margin-bottom: 1.5rem;
}
.request-model {
    margin-bottom: 1.25rem;
    border-left: 3px solid var(--korst-blue);
    padding: 0.65rem 0.9rem;
    background: #eaf3f9;
    font-size: 0.85rem;
    font-weight: 600;
}
.request-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}
.request-fields label {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
}
.request-fields label > span {
    display: contents;
}
.request-fields input,
.request-fields textarea {
    width: 100%;
    border: 1px solid #cedde7;
    border-radius: 8px;
    padding: 0.75rem 0.85rem;
    background: #fff;
    color: var(--korst-navy-900);
    font: inherit;
    font-weight: 400;
}
.request-fields textarea {
    resize: vertical;
    min-height: 100px;
}
.request-fields input:focus,
.request-fields textarea:focus {
    outline: 2px solid #0070b130;
    border-color: var(--korst-blue);
}
.request-wide {
    grid-column: 1 / -1;
}
.request-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin: 1.25rem 0;
    color: #647180;
    font-size: 0.75rem;
    line-height: 1.6;
    cursor: pointer;
}
.request-consent input {
    flex: none;
    width: 17px;
    height: 17px;
    margin-top: 0.15rem;
    accent-color: var(--korst-blue);
}
.request-submit {
    width: 100%;
}
.request-demo {
    margin: 0.8rem 0 0;
    font-size: 0.7rem;
    color: #7a8793;
    text-align: center;
}
.request-success {
    text-align: center;
    padding: 1rem 0;
}
.request-success-icon {
    display: inline-grid;
    place-items: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #e2f0fa;
    color: var(--korst-blue);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}
.request-success h3 {
    font-size: 1.3rem;
}
.request-success p {
    color: #647180;
    line-height: 1.7;
    font-size: 0.9rem;
}
.request-modal [hidden] {
    display: none !important;
}
@media (min-width: 768px) {
    .request-modal {
        max-height: calc(100dvh / 1.1 - 2rem);
    }
}
@media (max-width: 575.98px) {
    .request-modal {
        padding: 1.5rem;
    }
    .request-fields {
        grid-template-columns: 1fr;
    }
    .request-heading h2 {
        font-size: 1.35rem;
    }
}

.request-modal--order {
    width: min(650px, calc(100% - 2rem));
}
.request-order-summary {
    padding-bottom: 1.25rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid #d2e2ed;
}
.request-order-summary h3 {
    font-size: 1.2rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}
.request-order-summary p,
.request-order-summary ul {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 0.7rem;
    color: #52606d;
}
.request-order-summary ul {
    padding-left: 1.25rem;
}
.request-order-summary li + li {
    margin-top: 0.25rem;
}
.request-order-summary .request-order-total {
    color: var(--korst-navy-900);
    font-size: 1.15rem;
}
.request-order-summary small {
    color: #647180;
}
.request-promo {
    margin-top: 1rem;
}
.request-promo > label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}
.request-promo > div {
    display: flex;
    gap: 0.65rem;
}
.request-promo input {
    min-width: 0;
    flex: 1;
    border: 1px solid #cedde7;
    border-radius: 8px;
    padding: 0.75rem 0.85rem;
    background: #fff;
    font-size: 0.9rem;
}
.request-promo .btn {
    font-size: 0.85rem;
}
.request-promo > p {
    margin: 0.6rem 0 0;
    color: #647180;
    font-size: 0.75rem;
    line-height: 1.5;
}
@media (max-width: 400px) {
    .request-promo > div {
        flex-direction: column;
    }
}

.request-order-price-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.25rem;
}
.request-order-price-row .request-order-total {
    margin: 0;
}
.request-order-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #52606d;
    font-size: 0.85rem;
}
.request-order-quantity input {
    width: 5rem;
    padding: 0.45rem 0.6rem;
    border: 1px solid #cedde7;
    border-radius: 8px;
    background: #fff;
    color: var(--korst-navy-900);
    font: inherit;
}
.request-order-quantity input:focus {
    outline: 2px solid #0070b130;
    border-color: var(--korst-blue);
}

.request-order-summary .request-order-options-title {
    margin-bottom: 0.35rem;
    font-weight: 600;
}
.request-promo .request-promo-heading {
    flex-direction: row;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
}
.request-promo-help {
    flex: none;
    margin-left: 0;
    font-size: 0.7rem;
}
.request-promo-help .pdp-opt-tooltip {
    left: -5rem;
    width: min(280px, calc(100vw - 6rem));
    max-width: none;
    transform: translateY(-4px);
}
.request-promo-help:hover .pdp-opt-tooltip,
.request-promo-help:focus-visible .pdp-opt-tooltip,
.request-promo-help .pdp-opt-tooltip.is-open {
    transform: translateY(0);
}

.request-modal .request-submit:disabled {
    background: var(--korst-orange);
    border-color: var(--korst-orange);
    color: #fff;
    opacity: 0.65;
    box-shadow: none;
}
.request-promo > p:empty,
.korst-order-error:empty {
    display: none;
}
.request-modal .korst-order-error:not(:empty) {
    margin: 0 0 0.75rem;
    color: #b42318;
    font-size: 0.8rem;
    line-height: 1.5;
}

.request-order-quantity .request-order-unit {
    font-size: 0.85rem;
    font-weight: 400;
    color: #647180;
}

dialog[data-contact-form] .request-model {
    white-space: pre-line;
}
dialog[data-contact-form] .wpcf7-list-item {
    margin: 0;
}
dialog[data-contact-form] .request-consent label {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
}
dialog[data-contact-form] .request-fields .wpcf7-form-control-wrap {
    display: block;
}
dialog[data-contact-form] .request-fields > p {
    display: contents;
}
dialog[data-contact-form] .request-consent > p {
    margin: 0;
}

/* Confirmation replaces the contact form after CF7 confirms delivery. */
.contact-is-sent > .request-heading,
.contact-is-sent > .request-model,
.contact-is-sent > .wpcf7 {
    display: none;
}
.contact-success {
    text-align: center;
    padding: 2rem 0;
}
.contact-success[hidden] {
    display: none;
}
.contact-success-icon {
    display: block;
    color: #159b58;
    font-size: 5rem;
    line-height: 1;
    margin-bottom: 1.5rem;
}
.contact-success h2 {
    font-size: var(--fs-h3);
    margin-bottom: 1rem;
}
.contact-success-message {
    color: #647180;
    margin: 0;
}

/* Keep CF7's progress indicator inside the submit row. */
dialog[data-contact-form] .wpcf7-form > p:has(.request-submit) {
    position: relative;
    margin-bottom: 0;
}
dialog[data-contact-form] .wpcf7-spinner {
    position: absolute;
    top: 50%;
    right: 0.75rem;
    margin: 0;
    transform: translateY(-50%);
    pointer-events: none;
}
dialog[data-contact-form] .wpcf7-form.submitting .request-submit {
    padding-inline: 3rem;
}
dialog[data-contact-form] .wpcf7-response-output {
    margin: 1rem 0 0;
}

.request-modal .korst-field-error {
    display: block;
    color: #b42318;
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.4;
    margin-top: 0.3rem;
}
.request-modal .korst-field-error:empty {
    display: none;
}
