.r4wk {
    --r4wk-orange: #ff922e;
    --r4wk-dark: #252d32;
    width: min(100%, var(--r4wk-box-width, 390px));
    min-width: 0;
    font-family: inherit;
    line-height: 1.4;
}
.r4wk *, .r4wk *::before, .r4wk *::after { box-sizing: border-box; }
.r4wk [hidden] { display: none !important; }
.r4wk button, .r4wk input { font: inherit; }
.r4wk button { cursor: pointer; }
.r4wk :focus-visible { outline: 2px solid #a74a00; outline-offset: 3px; }
.r4wk .r4wk-form {
    display: grid;
    gap: 7px;
    padding: 12px 13px;
    background: linear-gradient(135deg, rgba(36, 45, 51, .78), rgba(26, 34, 40, .86));
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .26);
    border-radius: 10px;
    box-shadow: 0 5px 18px rgba(0, 0, 0, .12);
    font-size: 14px;
}
.r4wk .r4wk-intro { display: flex; align-items: flex-start; gap: 8px; }
.r4wk .r4wk-intro-text { display: grid; flex: 1 1 auto; min-width: 0; gap: 2px; overflow-wrap: anywhere; }
.r4wk .r4wk-logo { flex: none; margin-inline-start: auto; width: auto; height: auto; max-width: min(64px, 28%); max-height: 36px; object-fit: contain; }
.r4wk .r4wk-intro strong { font-size: 15px; font-weight: 700; }
.r4wk .r4wk-intro label { color: #e2e6e8; font-size: 13px; }
.r4wk .r4wk-input-wrap { min-width: 0; position: relative; }
.r4wk .r4wk-input-wrap input {
    height: 44px;
    width: 100%;
    min-width: 0;
    padding: 0 10px;
    color: #20272b;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    font-size: 16px;
}
.r4wk .r4wk-ticker {
    position: absolute;
    inset: 0 10px;
    display: grid;
    align-content: center;
    overflow: hidden;
    color: #414a51;
    font-size: 13px;
    line-height: 17px;
    pointer-events: none;
}
.r4wk .r4wk-ticker > span {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    overflow-wrap: anywhere;
}
.r4wk .r4wk-ticker > span::after {
    content: '';
    display: inline-block;
    height: 1em;
    margin-left: 2px;
    border-left: 2px solid #b34f00;
    vertical-align: -.1em;
    animation: r4wk-type-cursor 1s steps(1) infinite;
}
@keyframes r4wk-type-cursor {
    50% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .r4wk .r4wk-ticker > span::after { display: none; }
}
.r4wk .r4wk-form :focus-visible, .r4wk .r4wk-header :focus-visible { outline-color: #ffbd80; }
.r4wk .r4wk-providers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 126px), 1fr));
    gap: 6px;
}
.r4wk .r4wk-provider {
    min-height: 42px;
    padding: 5px 8px;
    border: 1px solid #8b989f;
    border-radius: 6px;
    background: transparent;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}
.r4wk .r4wk-provider:hover { background: #384147; }
.r4wk .r4wk-provider-primary { background: var(--r4wk-orange); color: #20272b; border-color: transparent; }
.r4wk .r4wk-provider-primary:hover { background: #ffab62; }
.r4wk .r4wk-example {
    justify-self: start;
    color: #ffd2a8;
    background: none;
    border: 0;
    padding: 0;
    min-height: 24px;
    font-size: 13px;
    text-align: left;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.r4wk .r4wk-dialog {
    inset: 0;
    margin: auto;
    padding: 0;
    width: min(690px, calc(100% - 32px));
    max-width: none;
    max-height: 88vh;
    max-height: 88dvh;
    color: #262c30;
    background: #fff;
    border: 0;
    border-radius: 12px;
    box-shadow: 0 14px 56px #0005;
    overflow: auto;
    overscroll-behavior: contain;
}
body:has(.r4wk-dialog[open]) { overflow: hidden; }
.r4wk .r4wk-dialog::backdrop { background: rgb(18 24 28 / 72%); }
.r4wk .r4wk-header {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 20px;
    background: var(--r4wk-dark);
    border-top: 4px solid var(--r4wk-orange);
    color: #fff;
}
.r4wk .r4wk-header h2 { color: #fff; margin: 0; padding: 0; font-size: 22px; }
.r4wk .r4wk-close {
    background: transparent;
    border: 0;
    color: #fff;
    width: 44px;
    height: 44px;
    font-size: 28px;
}
.r4wk .r4wk-body { padding: 20px; font-size: 16px; overflow-wrap: anywhere; }
.r4wk .r4wk-body p { margin: 0 0 12px; padding: 0; }
.r4wk .r4wk-meta, .r4wk .r4wk-copy-state { color: #515b63; font-size: 14px; }
.r4wk .r4wk-copy-state:empty, .r4wk .r4wk-status:empty { display: none; }
.r4wk .r4wk-query { margin-bottom: 16px; }
.r4wk .r4wk-query .r4wk-question { margin-bottom: 4px; font-size: clamp(18px, 4vw, 23px); font-weight: 700; line-height: 1.3; }
.r4wk .r4wk-query .r4wk-meta { margin-bottom: 0; }
.r4wk .r4wk-answer {
    background: #f5f3f0;
    border-left: 3px solid var(--r4wk-orange);
    padding: 14px;
    line-height: 1.55;
}
.r4wk .r4wk-answer > * { margin: 0; }
.r4wk .r4wk-answer > * + * { margin-top: 12px; }
.r4wk .r4wk-answer li + li { margin-top: 8px; }
.r4wk .r4wk-answer a { color: #793600; text-decoration: underline; }
.r4wk .r4wk-answer h3 { font-size: 16px; margin: 14px 0 0; padding: 0; }
.r4wk .r4wk-answer :is(ul, ol) { padding: 0 0 0 22px; }
.r4wk .r4wk-answer .r4wk-sources { margin-top: 6px; }
.r4wk .r4wk-citation { font-size: .85em; margin-left: .18em; font-weight: 700; }
.r4wk .r4wk-progress {
    height: 5px;
    margin-bottom: 10px;
    overflow: hidden;
    border-radius: 100px;
    background: #e7e3de;
}
.r4wk .r4wk-progress span {
    display: block;
    width: 35%;
    height: 100%;
    background: #b75300;
    border-radius: inherit;
    animation: r4wk-progress-slide 1.35s ease-in-out infinite;
}
@keyframes r4wk-progress-slide {
    from { transform: translateX(-100%); }
    to { transform: translateX(286%); }
}
@media (prefers-reduced-motion: reduce) {
    .r4wk .r4wk-progress span { animation: none; }
}
.r4wk .r4wk-privacy-note {
    margin: 0;
    padding: 0;
    font-size: 12px;
    color: #e0e4e6;
}
.r4wk .r4wk-body .r4wk-privacy-note { margin: 14px 0 0; }
.r4wk .r4wk-privacy {
    font-size: 12px;
    color: #515b63;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.r4wk .r4wk-form .r4wk-privacy { color: #e0e4e6; }
.r4wk .r4wk-google-return { font-size: 13px; }
.r4wk .r4wk-google-return p { margin: 3px 0 0; padding: 0; }
.r4wk .r4wk-google-return a { color: #ffd2a8; text-decoration: underline; }
.r4wk .r4wk-actions { display: flex; flex-wrap: wrap; gap: 6px 10px; margin: 16px 0 8px; padding-top: 10px; border-top: 1px solid #dedede; }
.r4wk .r4wk-actions a, .r4wk .r4wk-actions button, .r4wk .r4wk-contact a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    text-align: left;
    text-decoration: none;
    border-radius: 6px;
    padding: 7px 10px;
    border: 1px solid #748088;
    background: #fff;
    color: #252d32;
    font-size: 14px;
    font-weight: 700;
}
.r4wk .r4wk-actions a:hover, .r4wk .r4wk-actions button:hover { background: #f3f1ef; }
.r4wk .r4wk-actions .r4wk-copy {
    gap: 6px;
    background: transparent;
    border-color: transparent;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.r4wk .r4wk-contact { border-top: 1px solid #dedede; margin-top: 16px; padding-top: 14px; }
.r4wk .r4wk-contact a { border-color: transparent; background: var(--r4wk-orange); }
@media (max-width: 560px) {
    .r4wk .r4wk-dialog { width: 100%; height: 100dvh; max-height: 100%; border-radius: 0; }
    .r4wk .r4wk-header, .r4wk .r4wk-body { padding-inline: 14px; }
}

@media (max-width: 767px) {
    .et_pb_module.et_pb_code:has(> .et_pb_code_inner > .r4wk) {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0;
        padding-inline: 0 !important;
        margin-inline: auto !important;
    }

    /* Ready4Web hero: the column starts at 25px and its right edge is 10px from the viewport. */
    .inline-btns .hs-v9-column-1 > .et_pb_module.et_pb_code:has(> .et_pb_code_inner > .r4wk) {
        width: calc(100% + 15px) !important;
        max-width: none !important;
        margin-inline-start: -15px !important;
    }

    .r4wk {
        float: none;
        margin-inline: auto;
        align-self: center;
        justify-self: center;
    }
}
