/*
 * «Задать вопрос»: emerald pill button bottom-right (moved above the phone cart bar by the script),
 * a centred window on wide screens and a bottom sheet on phones. Large type for older buyers.
 */
.dienai-ask-button {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 9990;
    min-height: 48px;
    padding: 12px 20px;
    border: 0;
    border-radius: 24px;
    background: linear-gradient(#008390, #00474e);
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
    cursor: pointer;
}
.dienai-ask-button:hover {
    background: linear-gradient(#009aa8, #005a63);
}
.dienai-ask-button:focus-visible,
.dienai-ask-overlay button:focus-visible {
    outline: 3px solid #f5b400;
    outline-offset: 2px;
}
html.dienai-ask-open {
    overflow: hidden;
}
.dienai-ask-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, .45);
}
.dienai-ask-overlay[hidden] {
    display: none;
}
.dienai-ask-box {
    width: 100%;
    max-width: 480px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    border-radius: 8px;
    background: #fff;
    color: #222;
    font-size: 16px;
    line-height: 1.45;
    box-sizing: border-box;
}
.dienai-ask-box *,
.dienai-ask-box *::before,
.dienai-ask-box *::after {
    box-sizing: border-box;
}
.dienai-ask-head {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #e5e5e5;
    background: #fff;
}
.dienai-ask-title {
    margin: 0;
    font-size: 20px;
    line-height: 1.3;
}
.dienai-ask-close {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border: 0;
    background: none;
    color: #444;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}
.dienai-ask-body {
    padding: 16px;
}
.dienai-ask-lead {
    margin: 0 0 10px;
    font-weight: 600;
}
.dienai-ask-topic {
    display: block;
    width: 100%;
    min-height: 52px;
    margin: 0 0 10px;
    padding: 12px 16px;
    border: 2px solid #008390;
    border-radius: 6px;
    background: #fff;
    color: #00566f;
    font: inherit;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}
.dienai-ask-topic:hover {
    background: #e8f4f4;
}
.dienai-ask-back {
    margin: 0 0 12px;
    padding: 8px 0;
    border: 0;
    background: none;
    color: #00566f;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}
.dienai-ask-track {
    min-height: 120px;
    margin-bottom: 14px;
}
.dienai-ask-field {
    margin-bottom: 12px;
}
.dienai-ask-label {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
}
.dienai-ask-input {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 10px 12px;
    border: 1px solid #767676;
    border-radius: 4px;
    background: #fff;
    color: #111;
    font: inherit;
    font-size: 17px;
}
textarea.dienai-ask-input {
    min-height: 110px;
    resize: vertical;
}
.dienai-ask-input:focus {
    outline: 3px solid rgba(0, 131, 144, .35);
    border-color: #008390;
}
.dienai-ask-hint {
    margin-top: 4px;
    color: #555;
    font-size: 14px;
}
.dienai-ask-trap {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.dienai-ask-error {
    margin: 0 0 10px;
    color: #b00020;
    font-weight: 600;
}
.dienai-ask-error:empty {
    display: none;
}
.dienai-ask-submit {
    display: block;
    width: 100%;
    min-height: 50px;
    padding: 12px 18px;
    border: 0;
    border-radius: 6px;
    background: linear-gradient(#008390, #00474e);
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}
.dienai-ask-submit[disabled] {
    opacity: .6;
    cursor: wait;
}
.dienai-ask-secondary {
    background: #fff;
    border: 2px solid #008390;
    color: #00566f;
}
.dienai-ask-thanks {
    margin: 8px 0 16px;
    font-size: 18px;
    font-weight: 600;
}
@media (max-width: 600px) {
    .dienai-ask-button {
        right: 12px;
        padding: 10px 16px;
        font-size: 15px;
    }
    .dienai-ask-overlay {
        align-items: flex-end;
        padding: 0;
    }
    .dienai-ask-box {
        max-width: none;
        max-height: 92vh;
        border-radius: 12px 12px 0 0;
    }
}
