

@import url('https://fonts.googleapis.com/css2?family=El+Messiri:wght@400..700&display=swap');

/* 1. Variables & Colors */
.ebnote1 {

   
    --ebnote1-blue:   #0a5bd6;
    --ebnote1-white:  #ffffff;

  
    --ebnote1-trigger-bg:     var(--ebnote1-white);
    --ebnote1-trigger-icon:   var(--ebnote1-blue);
    --ebnote1-trigger-border: var(--ebnote1-blue);

    
    /* --ebnote1-padding-top:    0.5rem;
    --ebnote1-padding-bottom: 0.5rem; */
}

/* 2. Reset داخل الـ namespace */
.ebnote1,
.ebnote1 *,
.ebnote1 *::before,
.ebnote1 *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* 3. Base Styles — Mobile */
.ebnote1 {
    /* padding: var(--ebnote1-padding-top) clamp(0.5rem, 3vw, 1rem) var(--ebnote1-padding-bottom); */
    font-family: "El Messiri", sans-serif;
    direction: rtl;
    margin-top: auto;

}

.ebnote1__container {
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

.ebnote1__trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(1.5rem, 6vw, 1.8rem);
    height: clamp(1.5rem, 6vw, 1.8rem);
    border-radius: 50%;
    background-color: var(--ebnote1-trigger-bg);
    border: clamp(0.08rem, 0.3vw, 0.1rem) solid var(--ebnote1-trigger-border);
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    font-family: "El Messiri", sans-serif;
}

.ebnote1__trigger:hover {
    transform: scale(1.08);
    box-shadow: 0 0.1rem 0.5rem rgba(10, 91, 214, 0.35);
}

.ebnote1__trigger i {
    font-size: clamp(0.65rem, 2.8vw, 0.8rem);
    color: var(--ebnote1-trigger-icon);
}



/* Small Desktop — 1025px+ */
@media (min-width: 1025px) {
    .ebnote1__trigger:hover {
        box-shadow: 0 0.15rem 0.6rem rgba(10, 91, 214, 0.4);
    }
}


/* ============================================================
   ebnote1-overlay — Popup Dialog
   Namespace  : ebnote1-overlay
============================================================ */

/* 1. Variables & Colors */
.ebnote1-overlay {

    /* عام */
    --ebnote1-overlay-blue:  #0a5bd6;
    --ebnote1-overlay-white: #ffffff;

   
    --ebnote1-overlay-bg: rgba(10, 20, 40, 0.55);

 
    --ebnote1-overlay-close-bg:     var(--ebnote1-overlay-white);
    --ebnote1-overlay-close-icon:   var(--ebnote1-overlay-blue);
    --ebnote1-overlay-close-border: var(--ebnote1-overlay-blue);

  
    --ebnote1-overlay-head-bg:    var(--ebnote1-overlay-blue);
    --ebnote1-overlay-head-text:  var(--ebnote1-overlay-white);

  
    --ebnote1-overlay-body-bg:    var(--ebnote1-overlay-white);
    --ebnote1-overlay-body-text:  var(--ebnote1-overlay-blue);
}

/* 2. Reset داخل الـ namespace */
.ebnote1-overlay,
.ebnote1-overlay *,
.ebnote1-overlay *::before,
.ebnote1-overlay *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* 3. Base Styles — Mobile */
.ebnote1-overlay {
    position: fixed;
    inset: 0;
    background-color: var(--ebnote1-overlay-bg);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(1rem, 4vw, 2rem) clamp(1rem, 4vw, 2rem) 0;
    font-family: "El Messiri", sans-serif;
    direction: rtl;

}

.ebnote1-overlay.ebnote1-overlay--open {
    opacity: 1;
    visibility: visible;
}


.ebnote1-overlay__dialog {
    width: min(90vw, 28rem);
    height: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 0;
    margin-top: 3rem;
}


.ebnote1-overlay__close {
    align-self: flex-end;
    width: clamp(1.7rem, 6vw, 2rem);
    height: clamp(1.7rem, 6vw, 2rem);
    border-radius: 50%;
    background-color: var(--ebnote1-overlay-close-bg);
    border: clamp(0.08rem, 0.3vw, 0.1rem) solid var(--ebnote1-overlay-close-border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-bottom: clamp(0.5rem, 2vw, 0.7rem);
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.ebnote1-overlay__close:hover {
    transform: scale(1.08);
}

.ebnote1-overlay__close i {
    font-size: clamp(0.75rem, 3vw, 0.9rem);
    color: var(--ebnote1-overlay-close-icon);
}


.ebnote1-overlay__popup {
    position: relative;
    width: 100%;
    flex-grow: 1;
    min-height: 0;
    background-color: var(--ebnote1-overlay-body-bg);
    border-radius: 0.5rem 0.5rem 0 0;
    overflow-y: auto;
    transform: translateY(-1rem);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.ebnote1-overlay.ebnote1-overlay--open .ebnote1-overlay__popup {
    transform: translateY(0);
}


.ebnote1-overlay__head {
    /* position: sticky; */
    top: 0;
    margin: 0.2rem;
    z-index: 2;
    background-color: var(--ebnote1-overlay-head-bg);
    color: var(--ebnote1-overlay-head-text);
    border-radius: 0.5rem;
    padding: clamp(1.5rem, 6vw, 2rem) clamp(1rem, 4vw, 1.5rem) clamp(1rem, 4vw, 1.3rem);
    text-align: right;
    flex-shrink: 0;
    filter: drop-shadow(0 0.3rem 0.6rem rgba(10, 20, 40, 0.25));
}

.ebnote1-overlay__title {
    font-size: clamp(1rem, 4vw, 1.25rem);
    font-weight: 700;
    margin-bottom: clamp(0.4rem, 2vw, 0.6rem);
}

.ebnote1-overlay__head-text {
    font-size: clamp(0.8rem, 3vw, 0.9rem);
    line-height: 1.6;
    opacity: 0.95;
}


.ebnote1-overlay__body {
    background-color: var(--ebnote1-overlay-body-bg);
    color: var(--ebnote1-overlay-body-text);
    padding: clamp(1.2rem, 4vw, 1.6rem) clamp(1rem, 4vw, 1.5rem) clamp(1.5rem, 5vw, 2rem);
    text-align: right;
    flex-grow: 1;
}

.ebnote1-overlay__paragraph {
    font-size: clamp(0.8rem, 3vw, 0.9rem);
    line-height: 1.7;
    margin-bottom: clamp(0.8rem, 3vw, 1rem);
}

.ebnote1-overlay__paragraph:last-child {
    margin-bottom: 0;
}

.ebnote1-overlay__link {
    color: var(--ebnote1-overlay-body-text);
    text-decoration: underline;
    text-decoration-color: var(--ebnote1-overlay-body-text);
    text-underline-offset: 0.15rem;
}
.ebnote1__link-w {
    color: var(--ebnote1-overlay-white);
    text-decoration: underline;
    text-decoration-color: var(--ebnote1-overlay-white);
    text-underline-offset: 0.15rem;
}


.ebnote1-overlay__popup::-webkit-scrollbar {
    width: 0.4rem;
}

.ebnote1-overlay__popup::-webkit-scrollbar-thumb {
    background-color: var(--ebnote1-overlay-blue);
    border-radius: 1rem;
    opacity: 0.5;
}

/* 4. Breakpoints بالترتيب */

/* Small Tablet — 481px+ */
@media (min-width: 481px) {
    .ebnote1-overlay__dialog {
        width: min(85vw, 30rem);
    }
}

/* Medium Tablet — 601px+ */
@media (min-width: 601px) {
    .ebnote1-overlay__dialog {
        width: min(75vw, 32rem);
    }
}

/* Large Tablet — 769px+ */
@media (min-width: 769px) {
    .ebnote1-overlay__dialog {
        width: min(60vw, 34rem);
    }
}

/* Small Desktop — 1025px+ */
@media (min-width: 1025px) {
    .ebnote1-overlay__dialog {
        width: min(40vw, 36rem);
    }
}

/* Medium Desktop — 1281px+ */
@media (min-width: 1281px) {
    .ebnote1-overlay__dialog {
        width: min(32vw, 38rem);
    }
}

/* Large Desktop — 1441px+ */
@media (min-width: 1441px) {
    .ebnote1-overlay__dialog {
        width: min(28vw, 40rem);
    }
}

/* Extra Large — 1921px+ */
@media (min-width: 1921px) {
    .ebnote1-overlay__dialog {
        width: min(24vw, 44rem);
    }
}


body.ebnote1-lock {
    overflow: hidden;
}