/* Two click loader for the embedded Scribe guides.
 *
 * The placeholder borrows the card look of the site: card blue on the page
 * navy, the same rim colour as the reference blocks, and the orange gradient
 * pill for the button. Written so it also reads correctly when the page
 * stylesheet has not loaded yet.
 */

.ccx-scribe {
    position: relative;
    display: block;
    width: 100%;
    box-sizing: border-box;
}

/* Placeholder card */
.ccx-scribe .ccx-scribe-inner {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 320px;
    padding: 40px 28px;
    text-align: center;
    background: #181f32;
    border: 1px solid rgb(44, 51, 76);
    border-radius: 15px;
}

/* Small label above the notice */
.ccx-scribe .ccx-scribe-eyebrow {
    margin: 0;
    padding: 5px 14px;
    border: 1px solid rgba(255, 142, 43, .38);
    border-radius: 999px;
    background: rgba(255, 142, 43, .08);
    color: #ff8e2b;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    line-height: 1.4;
}

.ccx-scribe .ccx-scribe-note {
    margin: 0;
    max-width: 46em;
    color: #d7dce8;
    font-size: 16px;
    line-height: 1.6;
}

.ccx-scribe .ccx-scribe-action {
    margin: 6px 0 0;
}

/* Button. A real link, so it still works without the script. */
.ccx-scribe a.ccx-scribe-load,
.ccx-scribe a.ccx-scribe-load:visited {
    display: inline-block;
    padding: 13px 30px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(180deg, #ff8e2b 0%, #ce5904 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: filter .2s ease, transform .2s ease;
}

.ccx-scribe a.ccx-scribe-load:hover,
.ccx-scribe a.ccx-scribe-load:focus-visible {
    filter: brightness(1.08);
    transform: translateY(-1px);
    color: #fff;
    text-decoration: none;
}

.ccx-scribe a.ccx-scribe-load:focus-visible {
    outline: 2px solid #ffb765;
    outline-offset: 3px;
}

.ccx-scribe .ccx-scribe-hint {
    margin: 0;
    max-width: 46em;
    color: rgba(215, 220, 232, .62);
    font-size: 13px;
    line-height: 1.55;
}

.ccx-scribe .ccx-scribe-hint a {
    color: rgba(215, 220, 232, .82);
    text-decoration: underline;
}

/* Loaded state */
.ccx-scribe.is-loaded .ccx-scribe-inner {
    display: none;
}

.ccx-scribe .ccx-scribe-frame {
    display: block;
    width: 100%;
    border: 0;
    border-radius: 15px;
    background: #181f32;
}

/* On /price-app/ the guide already sits inside a card of the page, and the
 * widget below it carries a white background that was there to back the old
 * frame. The placeholder drops its own frame and clears that white, so the
 * card of the page stays the only one and the text keeps its contrast. The
 * frame brings its own background once it is loaded. */
/* !important, because Elementor writes the white background into the per page
 * stylesheet with a selector this file cannot outweigh by specificity alone. */
.elementor-element.elementor-element-320fe0e > .elementor-widget-container {
    background-color: transparent !important;
    background-image: none !important;
}

.elementor-element-320fe0e .ccx-scribe .ccx-scribe-inner {
    background: transparent;
    border-color: transparent;
    min-height: 240px;
    padding: 10px 0;
}

@media (max-width: 767px) {
    .ccx-scribe .ccx-scribe-inner {
        min-height: 260px;
        padding: 30px 18px;
        gap: 12px;
    }
    .ccx-scribe .ccx-scribe-note {
        font-size: 15px;
    }
    .ccx-scribe a.ccx-scribe-load {
        padding: 12px 24px;
        font-size: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ccx-scribe a.ccx-scribe-load {
        transition: none;
    }
    .ccx-scribe a.ccx-scribe-load:hover,
    .ccx-scribe a.ccx-scribe-load:focus-visible {
        transform: none;
    }
}
