.vol-tariff-link {
    display: flex;
    align-items: center;
    width: fit-content;
    min-height: 28px;
    margin-top: .15rem;
    font-size: .875rem;
    text-decoration: underline;
    text-underline-offset: .15em;
}

@media (max-width: 600px) {
    .vol-tariff-link { min-height: 44px; }
}

.vol-request {
    box-sizing: border-box;
    color: var(--wp--preset--color--ink, #263238);
}

section.vol-request {
    max-width: 36rem;
    margin-block: 2rem;
    scroll-margin-block-start: 1.5rem;
}

.vol-dialog {
    width: min(calc(100% - 2rem), 32rem);
    max-height: calc(100% - 2rem);
    padding: clamp(1.1rem, 4vw, 2rem);
    border: 1px solid var(--wp--preset--color--line, #ccd8dc);
    border-radius: 12px;
    background: #fff;
    overflow: auto;
}

.vol-dialog:not([open]) { display: none; }
.vol-dialog::backdrop { background: rgb(21 41 50 / .55); }
.vol-dialog h2 { margin: 0 2.7rem .65rem 0; overflow-wrap: anywhere; }

.vol-dialog__close {
    position: absolute;
    inset: .5rem .5rem auto auto;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    color: inherit;
    background: transparent;
    font-size: 1.6rem;
    cursor: pointer;
}

.vol-form {
    display: grid;
    gap: .55rem;
}

.vol-form label { font-weight: 650; }
.vol-form label:not(:first-child) { margin-top: .35rem; }

.vol-form input:not([type="hidden"]), .vol-form select {
    box-sizing: border-box;
    width: 100%;
    min-height: 44px;
    padding: .6rem .75rem;
    color: inherit;
    background: #fff;
    border: 1px solid #78919d;
    border-radius: 6px;
    font: inherit;
}

.vol-form__tariff {
    padding: .55rem .75rem;
    overflow-wrap: anywhere;
    border-radius: 6px;
    background: var(--wp--preset--color--surface, #f3f7f8);
}

.vol-form__privacy { margin: 0; font-size: .9rem; }
.vol-form--sent > :not(.vol-toast) { display: none; }

.vol-form__submit {
    justify-self: start;
    width: fit-content;
    margin-top: .35rem;
    padding: .62rem 1rem;
    min-height: 44px;
    border: 0;
    border-radius: 6px;
    color: #fff;
    background: var(--wp--preset--color--primary, #245f78);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.vol-form__submit:disabled { opacity: .65; cursor: wait; }
.vol-request :is(a, button, input, select):focus-visible { outline: 2px solid #245f78; outline-offset: 3px; }
