@import "../main/dashb1-main.css";
/* =========================================================
   EBDASHB1 MODAL
   Schema Help Modal
========================================================= */


/* =========================================================
   ROOT VARIABLES
========================================================= */

:root {

    /* =====================================================
       Modal Overlay
    ===================================================== */

    --ebdashb1-modal-overlay-bg:
        color-mix(in srgb,
            var(--ebdashb1-secondary-color) 58%,
            transparent);

    --ebdashb1-modal-overlay-blur:
        6px;


    /* =====================================================
       Modal Dialog
    ===================================================== */

    --ebdashb1-modal-dialog-bg:
        var(--ebdashb1-primary-color);

    --ebdashb1-modal-dialog-radius:
        20px;

    --ebdashb1-modal-dialog-shadow:
        0 25px 70px color-mix(in srgb,
            var(--ebdashb1-secondary-color) 20%,
            transparent);


    /* =====================================================
       Modal Header
    ===================================================== */

    --ebdashb1-modal-header-border:
        color-mix(in srgb,
            var(--ebdashb1-secondary-color) 12%,
            transparent);


    /* =====================================================
       Modal Heading Icon
    ===================================================== */

    --ebdashb1-modal-icon-bg-start:
        color-mix(in srgb,
            var(--ebdashb1-primary-color) 12%,
            white);

    --ebdashb1-modal-icon-bg-end:
        color-mix(in srgb,
            var(--ebdashb1-primary-color) 7%,
            white);

    --ebdashb1-modal-icon-color:
        var(--ebdashb1-primary-color);


    /* =====================================================
       Modal Heading
    ===================================================== */

    --ebdashb1-modal-heading-color:
        var(--ebdashb1-secondary-color);

    --ebdashb1-modal-heading-size:
        18px;

    --ebdashb1-modal-heading-weight:
        700;

    --ebdashb1-modal-heading-line-height:
        1.5;


    /* =====================================================
       Modal Subtitle
    ===================================================== */

    --ebdashb1-modal-subtitle-color:
        color-mix(in srgb,
            var(--ebdashb1-secondary-color) 70%,
            white);

    --ebdashb1-modal-subtitle-size:
        12px;

    --ebdashb1-modal-subtitle-line-height:
        1.5;


    /* =====================================================
       Modal Close Button
    ===================================================== */

    --ebdashb1-modal-close-bg:
        color-mix(in srgb,
            var(--ebdashb1-secondary-color) 6%,
            white);

    --ebdashb1-modal-close-color:
        color-mix(in srgb,
            var(--ebdashb1-secondary-color) 55%,
            white);

    --ebdashb1-modal-close-hover-bg:
        color-mix(in srgb,
            var(--ebdashb1-primary-color) 12%,
            white);

    --ebdashb1-modal-close-hover-color:
        var(--ebdashb1-primary-color);

    --ebdashb1-modal-close-focus-color:
        var(--ebdashb1-primary-color);

    --ebdashb1-modal-close-radius:
        10px;


    /* =====================================================
       Modal Content
    ===================================================== */

    --ebdashb1-modal-content-color:
        var(--ebdashb1-secondary-color);


    /* =====================================================
       Modal Intro
    ===================================================== */

    --ebdashb1-modal-intro-bg:
        color-mix(in srgb,
            var(--ebdashb1-primary-color) 5%,
            white);

    --ebdashb1-modal-intro-color:
        color-mix(in srgb,
            var(--ebdashb1-secondary-color) 72%,
            white);

    --ebdashb1-modal-intro-radius:
        13px;


    /* =====================================================
       Modal Examples - General
    ===================================================== */

    --ebdashb1-modal-example-border-width:
        1px;

    --ebdashb1-modal-example-radius:
        14px;

    --ebdashb1-modal-example-text-color:
        color-mix(in srgb,
            var(--ebdashb1-secondary-color) 82%,
            white);


    /* =====================================================
       Good Example
    ===================================================== */

    --ebdashb1-modal-example-good-bg:
        color-mix(in srgb,
            var(--ebdashb1-primary-color) 7%,
            white);

    --ebdashb1-modal-example-good-border:
        color-mix(in srgb,
            var(--ebdashb1-primary-color) 30%,
            white);

    --ebdashb1-modal-example-good-title:
        color-mix(in srgb,
            var(--ebdashb1-primary-color) 85%,
            var(--ebdashb1-secondary-color));


    /* =====================================================
       Bad Example
    ===================================================== */

    --ebdashb1-modal-example-bad-bg:
        color-mix(in srgb,
            var(--ebdashb1-secondary-color) 4%,
            white);

    --ebdashb1-modal-example-bad-border:
        color-mix(in srgb,
            var(--ebdashb1-secondary-color) 22%,
            white);

    --ebdashb1-modal-example-bad-title:
        var(--ebdashb1-secondary-color);


    /* =====================================================
       Rules
    ===================================================== */

    --ebdashb1-modal-rules-title-color:
        color-mix(in srgb,
            var(--ebdashb1-secondary-color) 82%,
            white);

    --ebdashb1-modal-rules-icon-color:
        var(--ebdashb1-primary-color);

    --ebdashb1-modal-rules-item-color:
        color-mix(in srgb,
            var(--ebdashb1-secondary-color) 80%,
            white);

    --ebdashb1-modal-rules-bullet-color:
        var(--ebdashb1-primary-color);


    /* =====================================================
       Footer
    ===================================================== */

    --ebdashb1-modal-footer-border:
        color-mix(in srgb,
            var(--ebdashb1-secondary-color) 12%,
            transparent);

    --ebdashb1-modal-footer-bg:
        color-mix(in srgb,
            var(--ebdashb1-primary-color) 3%,
            white);


    /* =====================================================
       OK Button
    ===================================================== */

    --ebdashb1-modal-ok-bg:
        var(--ebdashb1-primary-color);

    --ebdashb1-modal-ok-color:
        #ffffff;

    --ebdashb1-modal-ok-hover-bg:
        var(--ebdashb1-secondary-color);

    --ebdashb1-modal-ok-radius:
        10px;


    /* =====================================================
       Schema Help Icon
    ===================================================== */

    --ebdashb1-modal-help-bg:
        color-mix(in srgb,
            var(--ebdashb1-primary-color) 10%,
            white);

    --ebdashb1-modal-help-border:
        color-mix(in srgb,
            var(--ebdashb1-primary-color) 28%,
            white);

    --ebdashb1-modal-help-color:
        color-mix(in srgb,
            var(--ebdashb1-secondary-color) 45%,
            white);

    --ebdashb1-modal-help-hover-color:
        var(--ebdashb1-primary-color);

    --ebdashb1-modal-help-focus-color:
        var(--ebdashb1-primary-color);


    /* =====================================================
       Animation
    ===================================================== */

    --ebdashb1-modal-transition-speed:
        0.25s;

    --ebdashb1-modal-dialog-transition-speed:
        0.28s;

    --ebdashb1-modal-transition-easing:
        cubic-bezier(0.22, 1, 0.36, 1);
}


/* =========================================================
   DARK THEME
========================================================= */

body.ebdashb1-dark-theme {

    /* =====================================================
       Dialog
    ===================================================== */

    --ebdashb1-modal-dialog-bg:
        var(--ebdashb1-secondary-color);

    --ebdashb1-modal-dialog-shadow:
        0 25px 70px color-mix(in srgb,
            var(--ebdashb1-secondary-color) 55%,
            transparent);


    /* =====================================================
       Header
    ===================================================== */

    --ebdashb1-modal-header-border:
        color-mix(in srgb,
            var(--ebdashb1-primary-color) 20%,
            transparent);


    /* =====================================================
       Icon
    ===================================================== */

    --ebdashb1-modal-icon-bg-start:
        color-mix(in srgb,
            var(--ebdashb1-primary-color) 20%,
            var(--ebdashb1-secondary-color));

    --ebdashb1-modal-icon-bg-end:
        color-mix(in srgb,
            var(--ebdashb1-primary-color) 10%,
            var(--ebdashb1-secondary-color));

    --ebdashb1-modal-icon-color:
        var(--ebdashb1-primary-color);


    /* =====================================================
       Heading
    ===================================================== */

    --ebdashb1-modal-heading-color:
        var(--ebdashb1-primary-color);


    /* =====================================================
       Subtitle
    ===================================================== */

    --ebdashb1-modal-subtitle-color:
        color-mix(in srgb,
            var(--ebdashb1-primary-color) 42%,
            white);


    /* =====================================================
       Close Button
    ===================================================== */

    --ebdashb1-modal-close-bg:
        color-mix(in srgb,
            var(--ebdashb1-primary-color) 9%,
            var(--ebdashb1-secondary-color));

    --ebdashb1-modal-close-color:
        color-mix(in srgb,
            var(--ebdashb1-primary-color) 55%,
            white);

    --ebdashb1-modal-close-hover-bg:
        color-mix(in srgb,
            var(--ebdashb1-primary-color) 18%,
            var(--ebdashb1-secondary-color));

    --ebdashb1-modal-close-hover-color:
        var(--ebdashb1-primary-color);


    /* =====================================================
       Intro
    ===================================================== */

    --ebdashb1-modal-intro-bg:
        color-mix(in srgb,
            var(--ebdashb1-primary-color) 7%,
            var(--ebdashb1-secondary-color));

    --ebdashb1-modal-intro-color:
        color-mix(in srgb,
            var(--ebdashb1-primary-color) 58%,
            white);


    /* =====================================================
       Examples
    ===================================================== */

    --ebdashb1-modal-example-text-color:
        color-mix(in srgb,
            var(--ebdashb1-primary-color) 48%,
            white);


    /* =====================================================
       Good Example
    ===================================================== */

    --ebdashb1-modal-example-good-bg:
        color-mix(in srgb,
            var(--ebdashb1-primary-color) 9%,
            var(--ebdashb1-secondary-color));

    --ebdashb1-modal-example-good-border:
        color-mix(in srgb,
            var(--ebdashb1-primary-color) 35%,
            var(--ebdashb1-secondary-color));

    --ebdashb1-modal-example-good-title:
        var(--ebdashb1-primary-color);


    /* =====================================================
       Bad Example
    ===================================================== */

    --ebdashb1-modal-example-bad-bg:
        color-mix(in srgb,
            var(--ebdashb1-secondary-color) 92%,
            black);

    --ebdashb1-modal-example-bad-border:
        color-mix(in srgb,
            var(--ebdashb1-secondary-color) 70%,
            var(--ebdashb1-primary-color));

    --ebdashb1-modal-example-bad-title:
        color-mix(in srgb,
            var(--ebdashb1-primary-color) 65%,
            white);


    /* =====================================================
       Rules
    ===================================================== */

    --ebdashb1-modal-rules-title-color:
        color-mix(in srgb,
            var(--ebdashb1-primary-color) 65%,
            white);

    --ebdashb1-modal-rules-icon-color:
        var(--ebdashb1-primary-color);

    --ebdashb1-modal-rules-item-color:
        color-mix(in srgb,
            var(--ebdashb1-primary-color) 45%,
            white);

    --ebdashb1-modal-rules-bullet-color:
        var(--ebdashb1-primary-color);


    /* =====================================================
       Footer
    ===================================================== */

    --ebdashb1-modal-footer-border:
        color-mix(in srgb,
            var(--ebdashb1-primary-color) 18%,
            transparent);

    --ebdashb1-modal-footer-bg:
        color-mix(in srgb,
            var(--ebdashb1-primary-color) 5%,
            var(--ebdashb1-secondary-color));


    /* =====================================================
       OK Button
    ===================================================== */

    --ebdashb1-modal-ok-bg:
        var(--ebdashb1-primary-color);

    --ebdashb1-modal-ok-color:
        var(--ebdashb1-secondary-color);

    --ebdashb1-modal-ok-hover-bg:
        color-mix(in srgb,
            var(--ebdashb1-primary-color) 78%,
            var(--ebdashb1-secondary-color));


    /* =====================================================
       Schema Help Icon
    ===================================================== */

    --ebdashb1-modal-help-bg:
        color-mix(in srgb,
            var(--ebdashb1-primary-color) 15%,
            var(--ebdashb1-secondary-color));

    --ebdashb1-modal-help-border:
        color-mix(in srgb,
            var(--ebdashb1-primary-color) 35%,
            var(--ebdashb1-secondary-color));

    --ebdashb1-modal-help-color:
        color-mix(in srgb,
            var(--ebdashb1-primary-color) 45%,
            white);

    --ebdashb1-modal-help-hover-color:
        var(--ebdashb1-primary-color);

    --ebdashb1-modal-help-focus-color:
        var(--ebdashb1-primary-color);
}


/* =========================================================
   MODAL
========================================================= */

.ebdashb1-modal-help-modal {

    position: fixed;

    inset: 0;

    z-index: 99999;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 20px;

    visibility: hidden;

    opacity: 0;

    pointer-events: none;

    transition:
        opacity var(--ebdashb1-modal-transition-speed) ease,
        visibility var(--ebdashb1-modal-transition-speed) ease;
}


/* =========================================================
   OPEN STATE
========================================================= */

.ebdashb1-modal-help-modal.is-open {

    visibility: visible;

    opacity: 1;

    pointer-events: auto;
}


/* =========================================================
   BACKDROP
========================================================= */

.ebdashb1-modal-backdrop {

    position: absolute;

    inset: 0;

    /* hide by default to avoid backdrop-filter affecting underlying content
       on some mobile browsers even when parent has opacity: 0 */
    display: none;

    background:
        var(--ebdashb1-modal-overlay-bg);

    backdrop-filter:
        blur(var(--ebdashb1-modal-overlay-blur));

    -webkit-backdrop-filter:
        blur(var(--ebdashb1-modal-overlay-blur));
}

.ebdashb1-modal-help-modal.is-open .ebdashb1-modal-backdrop {
    display: block;
}


/* =========================================================
   DIALOG
========================================================= */

.ebdashb1-modal-dialog {

    position: relative;

    z-index: 2;

    width:
        min(620px, 100%);

    max-height:
        min(760px, calc(100vh - 40px));

    display: flex;

    flex-direction: column;

    overflow: hidden;

    background:
        var(--ebdashb1-modal-dialog-bg);

    border-radius:
        var(--ebdashb1-modal-dialog-radius);

    box-shadow:
        var(--ebdashb1-modal-dialog-shadow);

    transform:
        translateY(18px) scale(0.97);

    transition:
        transform var(--ebdashb1-modal-dialog-transition-speed) var(--ebdashb1-modal-transition-easing);
}


/* =========================================================
   DIALOG OPEN ANIMATION
========================================================= */

.ebdashb1-modal-help-modal.is-open .ebdashb1-modal-dialog {

    transform:
        translateY(0) scale(1);
}


/* =========================================================
   HEADER
========================================================= */

.ebdashb1-modal-header {

    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 16px;

    padding: 20px 22px;

    border-bottom:
        1px solid var(--ebdashb1-modal-header-border);
}


/* =========================================================
   HEADING
========================================================= */

.ebdashb1-modal-heading {

    display: flex;

    align-items: center;

    gap: 12px;

    min-width: 0;
}


/* =========================================================
   ICON
========================================================= */

.ebdashb1-modal-icon {

    width: 44px;

    height: 44px;

    flex: 0 0 44px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 13px;

    background:
        linear-gradient(135deg,
            var(--ebdashb1-modal-icon-bg-start),
            var(--ebdashb1-modal-icon-bg-end));

    color:
        var(--ebdashb1-modal-icon-color);

    font-size: 19px;
}


/* =========================================================
   HEADING TITLE
========================================================= */

.ebdashb1-modal-heading h3 {

    margin: 0;

    color:
        var(--ebdashb1-modal-heading-color);

    font-size:
        var(--ebdashb1-modal-heading-size);

    font-weight:
        var(--ebdashb1-modal-heading-weight);

    line-height:
        var(--ebdashb1-modal-heading-line-height);
}


/* =========================================================
   SUBTITLE
========================================================= */

.ebdashb1-modal-subtitle {

    display: block;

    margin-top: 3px;

    color:
        var(--ebdashb1-modal-subtitle-color);

    font-size:
        var(--ebdashb1-modal-subtitle-size);

    line-height:
        var(--ebdashb1-modal-subtitle-line-height);
}


/* =========================================================
   CLOSE BUTTON
========================================================= */

.ebdashb1-modal-close {

    width: 38px;

    height: 38px;

    flex: 0 0 38px;

    display: flex;

    align-items: center;

    justify-content: center;

    border: none;

    border-radius:
        var(--ebdashb1-modal-close-radius);

    background:
        var(--ebdashb1-modal-close-bg);

    color:
        var(--ebdashb1-modal-close-color);

    cursor: pointer;

    font-size: 16px;

    transition:
        background var(--ebdashb1-modal-transition-speed) ease,
        color var(--ebdashb1-modal-transition-speed) ease,
        transform var(--ebdashb1-modal-transition-speed) ease;
}


/* =========================================================
   CLOSE HOVER
========================================================= */

.ebdashb1-modal-close:hover {

    background:
        var(--ebdashb1-modal-close-hover-bg);

    color:
        var(--ebdashb1-modal-close-hover-color);

    transform:
        rotate(3deg);
}


/* =========================================================
   CLOSE FOCUS
========================================================= */

.ebdashb1-modal-close:focus-visible {

    outline:
        3px solid color-mix(in srgb,
            var(--ebdashb1-modal-close-focus-color) 20%,
            transparent);

    outline-offset: 2px;
}


/* =========================================================
   CONTENT
========================================================= */

.ebdashb1-modal-content {

    padding: 22px;

    overflow-y: auto;

    color:
        var(--ebdashb1-modal-content-color);
}


/* =========================================================
   INTRO
========================================================= */

.ebdashb1-modal-intro {

    margin-bottom: 18px;

    padding: 15px 16px;

    border-radius:
        var(--ebdashb1-modal-intro-radius);

    background:
        var(--ebdashb1-modal-intro-bg);

    color:
        var(--ebdashb1-modal-intro-color);

    font-size: 14px;

    line-height: 1.9;
}


/* =========================================================
   EXAMPLE
========================================================= */

.ebdashb1-modal-example {

    margin-bottom: 14px;

    padding: 15px;

    border:
        var(--ebdashb1-modal-example-border-width) solid;

    border-radius:
        var(--ebdashb1-modal-example-radius);

    color:
        var(--ebdashb1-modal-example-text-color);
}


/* =========================================================
   GOOD EXAMPLE
========================================================= */

.ebdashb1-modal-example-good {

    background:
        var(--ebdashb1-modal-example-good-bg);

    border-color:
        var(--ebdashb1-modal-example-good-border);
}


/* =========================================================
   BAD EXAMPLE
========================================================= */

.ebdashb1-modal-example-bad {

    background:
        var(--ebdashb1-modal-example-bad-bg);

    border-color:
        var(--ebdashb1-modal-example-bad-border);
}


/* =========================================================
   EXAMPLE HEADER
========================================================= */

.ebdashb1-modal-example-header {

    margin-bottom: 8px;

    font-size: 13px;

    font-weight: 700;
}


/* =========================================================
   GOOD EXAMPLE HEADER
========================================================= */

.ebdashb1-modal-example-good .ebdashb1-modal-example-header {

    color:
        var(--ebdashb1-modal-example-good-title);
}


/* =========================================================
   BAD EXAMPLE HEADER
========================================================= */

.ebdashb1-modal-example-bad .ebdashb1-modal-example-header {

    color:
        var(--ebdashb1-modal-example-bad-title);
}


/* =========================================================
   EXAMPLE HEADER ICON
========================================================= */

.ebdashb1-modal-example-header i {

    margin-left: 5px;
}


/* =========================================================
   EXAMPLE TEXT
========================================================= */

.ebdashb1-modal-example-text {

    color:
        var(--ebdashb1-modal-example-text-color);

    font-size: 14px;

    line-height: 1.9;
}


/* =========================================================
   RULES
========================================================= */

.ebdashb1-modal-rules {

    margin-top: 20px;
}


/* =========================================================
   SECTION TITLE
========================================================= */

.ebdashb1-modal-section-title {

    display: flex;

    align-items: center;

    gap: 7px;

    margin-bottom: 10px;

    color:
        var(--ebdashb1-modal-rules-title-color);

    font-size: 14px;

    font-weight: 700;
}


/* =========================================================
   SECTION TITLE ICON
========================================================= */

.ebdashb1-modal-section-title i {

    color:
        var(--ebdashb1-modal-rules-icon-color);
}


/* =========================================================
   RULES LIST
========================================================= */

.ebdashb1-modal-rules ul {

    margin: 0;

    padding: 0;

    list-style: none;
}


/* =========================================================
   RULE ITEM
========================================================= */

.ebdashb1-modal-rules li {

    position: relative;

    margin-bottom: 9px;

    padding-right: 24px;

    color:
        var(--ebdashb1-modal-rules-item-color);

    font-size: 13px;

    line-height: 1.8;
}


/* =========================================================
   RULE BULLET
========================================================= */

.ebdashb1-modal-rules li::before {

    content: "";

    position: absolute;

    top: 10px;

    right: 0;

    width: 7px;

    height: 7px;

    border-radius: 50%;

    background:
        var(--ebdashb1-modal-rules-bullet-color);
}


/* =========================================================
   FOOTER
========================================================= */

.ebdashb1-modal-footer {

    display: flex;

    justify-content: flex-start;

    padding: 15px 22px;

    border-top:
        1px solid var(--ebdashb1-modal-footer-border);

    background:
        var(--ebdashb1-modal-footer-bg);
}


/* =========================================================
   OK BUTTON
========================================================= */

.ebdashb1-modal-ok {

    min-width: 100px;

    padding: 10px 20px;

    border: none;

    border-radius:
        var(--ebdashb1-modal-ok-radius);

    background:
        var(--ebdashb1-modal-ok-bg);

    color:
        var(--ebdashb1-modal-ok-color);

    font-family: inherit;

    font-size: 13px;

    font-weight: 700;

    cursor: pointer;

    transition:
        background var(--ebdashb1-modal-transition-speed) ease,
        transform var(--ebdashb1-modal-transition-speed) ease;
}


/* =========================================================
   OK BUTTON HOVER
========================================================= */

.ebdashb1-modal-ok:hover {

    background:
        var(--ebdashb1-modal-ok-hover-bg);

    transform:
        translateY(-1px);
}


/* =========================================================
   SCHEMA HELP LABEL ROW
========================================================= */

.ebdashb1-modal-label-row {

    display: flex;

    align-items: center;

    gap: 7px;

    margin-bottom: 7px;
}


/* =========================================================
   EXISTING FORM LABEL
========================================================= */

.ebdashb1-modal-label-row .ebform1-label {

    margin-bottom: 0;
}


/* =========================================================
   SCHEMA HELP ICON
========================================================= */

.ebdashb1-modal-help {

    width: 22px;

    height: 22px;

    padding: 0;

    background:
        var(--ebdashb1-modal-help-bg) !important;

    border:
        1px solid var(--ebdashb1-modal-help-border) !important;

    border-radius: 50%;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    color:
        var(--ebdashb1-modal-help-color);

    cursor: pointer;

    font-size: 14px;

    transition:
        color var(--ebdashb1-modal-transition-speed) ease,
        transform var(--ebdashb1-modal-transition-speed) ease;
}


/* =========================================================
   SCHEMA HELP HOVER
========================================================= */

.ebdashb1-modal-help:hover {

    color:
        var(--ebdashb1-modal-help-hover-color);

    transform:
        scale(1.12);
}


/* =========================================================
   SCHEMA HELP FOCUS
========================================================= */

.ebdashb1-modal-help:focus-visible {

    outline:
        2px solid color-mix(in srgb,
            var(--ebdashb1-modal-help-focus-color) 35%,
            transparent);

    outline-offset: 2px;

    border-radius: 5px;
}


/* =========================================================
   PREVENT BACKGROUND SCROLL
========================================================= */

body.ebdashb1-modal-open {

    overflow: hidden;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .ebdashb1-modal-help-modal {

        padding: 10px;
    }


    .ebdashb1-modal-dialog {

        max-height:
            calc(100vh - 20px);

        border-radius: 16px;
    }


    .ebdashb1-modal-header {

        padding: 16px;
    }


    .ebdashb1-modal-content {

        padding: 16px;
    }


    .ebdashb1-modal-footer {

        padding: 12px 16px;
    }


    .ebdashb1-modal-heading h3 {

        font-size: 16px;
    }


    .ebdashb1-modal-icon {

        width: 40px;

        height: 40px;

        flex-basis: 40px;
    }
}