.pdvt {
    box-sizing: border-box;
    max-width: 680px;
    margin: 24px auto;
    padding: 24px;
    border-radius: 20px;
    background: #101b2d;
    color: #f6f8fc;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    text-align: left;
    direction: ltr;
    scroll-margin-top: 96px;
}

.pdvt *,
.pdvt-install-overlay * {
    box-sizing: border-box;
}

.pdvt h3 {
    color: #fff !important;
    margin: 0 0 8px;
    font-size: 27px;
}

.pdvt p {
    margin: 10px 0;
}

.pdvt ol.pdvt-steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    width: 100%;
    max-width: none;
    margin: 18px 0 22px !important;
    padding: 0 !important;
    list-style: none !important;
}

.pdvt-steps li {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-width: 0;
    padding: 10px 11px;
    border: 1px solid #344a67;
    border-radius: 11px;
    background: #17263a;
    color: #edf2f9;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.3;
}

.pdvt-steps li > span:first-child {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border: 2px solid #ffc75b;
    border-radius: 50%;
    color: #ffc75b;
    font-size: 17px;
    font-weight: 800;
    line-height: 1;
}

.pdvt-step-text {
    min-width: 0;
    text-align: left;
}

.pdvt-languages {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.pdvt label {
    display: block;
    font-size: 14px;
    font-weight: 600;
}

.pdvt select,
.pdvt textarea {
    display: block;
    width: 100%;
    margin: 7px 0 12px;
    border: 1px solid #53637a;
    border-radius: 10px;
    background: #fff;
    color: #162235;
    padding: 12px;
    font: 16px system-ui, sans-serif;
    min-height: 48px;
}

.pdvt textarea {
    resize: vertical;
}

.pdvt button,
.pdvt-install-overlay button {
    cursor: pointer;
    border: 0;
    border-radius: 10px;
    padding: 12px 18px;
    min-height: 48px;
    font: 600 16px system-ui, sans-serif;
    white-space: normal;
}

.pdvt button:disabled {
    opacity: .5;
    cursor: wait;
}

.pdvt button:focus-visible,
.pdvt select:focus-visible,
.pdvt textarea:focus-visible,
.pdvt-install-overlay button:focus-visible {
    outline: 3px solid #ffc75b;
    outline-offset: 3px;
}

.pdvt-primary,
.pdvt-install-button {
    width: 100%;
    background: linear-gradient(110deg, #ffd365, #f6a72b);
    color: #1d2430;
}

.pdvt-secondary,
.pdvt-install-later {
    background: #293950;
    color: #fff;
}

.pdvt [data-role="swap"],
.pdvt [data-role="translate"],
.pdvt [data-role="speak"] {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.pdvt .pdvt-notice {
    font-size: 12px;
    color: #c0cbda;
    margin: 20px 0 16px;
}

.pdvt-webview-notice {
    margin: 0 0 18px;
    padding: 14px;
    border: 1px solid #557294;
    border-radius: 12px;
    background: #1b3048;
}

.pdvt-webview-notice p {
    margin: 0 0 12px;
    color: #eef4fb;
    font-size: 14px;
}

.pdvt-webview-actions,
.pdvt-external-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.pdvt-external-actions [data-later] {
    grid-column: 1 / -1;
}

.pdvt-result {
    padding: 16px;
    margin-top: 18px;
    background: #1d2c42;
    border-radius: 12px;
}

.pdvt-result p {
    font-size: 20px;
    overflow-wrap: anywhere;
}

.pdvt-text-entry {
    margin-top: 18px;
}

.pdvt [data-role="status"] {
    color: #ffda88;
    font-size: 14px;
    margin: 12px 0;
}

.pdvt [data-role="status"]:empty {
    display: none;
}

.pdvt-install {
    margin-top: 28px;
    padding: 18px;
    border: 1px solid #3e526f;
    border-radius: 14px;
    background: #17263a;
    text-align: center;
}

.pdvt-install strong {
    display: block;
    font-size: 18px;
}

.pdvt-install p {
    color: #ccd5e3;
    font-size: 14px;
}

.pdvt-ad {
    display: grid;
    place-items: center;
    position: relative;
    width: 100%;
    max-width: 100%;
    min-height: 250px;
    margin: 28px auto;
    text-align: center;
    overflow: hidden;
    clear: both;
}

.pdvt-ad > ins.adsbygoogle,
.pdvt-ad > iframe,
.pdvt-ad > div {
    max-width: 100%;
    margin-right: auto;
    margin-left: auto;
}

.pdvt-ad > ins.adsbygoogle {
    display: block !important;
    width: 100% !important;
    min-width: 250px;
    min-height: 250px;
}

.pdvt .pdvt-ad--middle {
    margin: 32px 0;
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, .08);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.pdvt .pdvt-ad--intro {
    margin: 24px 0 30px;
    padding: 14px 0;
}

.pdvt-install-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 16px;
    background: rgba(5, 10, 20, .68);
}

.pdvt-install-modal {
    width: min(100%, 440px);
    padding: 22px;
    border-radius: 18px;
    background: #101b2d;
    color: #fff;
    box-shadow: 0 18px 60px rgba(0, 0, 0, .42);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
    text-align: left;
}

.pdvt-install-modal strong {
    display: block;
    font-size: 21px;
}

.pdvt-install-modal p {
    color: #d4dce8;
}

.pdvt-install-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

@media (max-width: 600px) {
    .pdvt ol.pdvt-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .pdvt-steps li {
        min-height: 72px;
        gap: 7px;
        padding: 9px 7px;
    }
    .pdvt-step-text {
        max-width: 102px;
    }
}

@media (max-width: 420px) {
    .pdvt {
        padding: 18px 14px;
    }
    .pdvt-languages {
        gap: 8px;
    }
    .pdvt ol.pdvt-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }
    .pdvt-steps li {
        min-height: 62px;
        padding: 9px 8px;
        font-size: 13px;
    }
    .pdvt-steps li > span:first-child {
        flex-basis: 30px;
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
    .pdvt h3 {
        font-size: 24px;
    }
    .pdvt-install-actions {
        grid-template-columns: 1fr;
    }
    .pdvt-webview-actions,
    .pdvt-external-actions {
        grid-template-columns: 1fr;
    }
    .pdvt-external-actions [data-later] {
        grid-column: auto;
    }
}

@media (min-width: 700px) {
    .pdvt-install-overlay {
        align-items: center;
    }
}
