/* בעלות סוחר - ראו static/js/owner-display.js */
.owner-display {
    display: inline-block;
    line-height: 1.3;
    text-align: right;
}

.owner-dealer-note {
    display: block;
    margin-top: 2px;
    color: #555;
    font-size: 0.8em !important;
    font-weight: normal;
    white-space: nowrap;
    padding-right: 0 !important;
}

/* אייקון ה-i מהעיצוב (SVG). אותו אייקון בדסקטופ ובמובייל - בפיגמה המובייל
   הוא אותה צורה בדיוק בגודל כפול - רק הגודל שונה (המובייל ב-@media למטה) */
.owner-info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 3px;
    line-height: 1;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
}

.owner-info:focus {
    outline: none;
}

.owner-info-svg {
    display: block;
    width: 18px;
    height: 18px;
}

.owner-tip-overlay {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 99999; /* מתחת ל-.owner-tip */
    background: rgba(0, 0, 0, 0.35);
    pointer-events: none;
}

.owner-tip {
    display: none;
    position: fixed;
    z-index: 100000;
    box-sizing: border-box;
    /* דסקטופ - לפי הפיגמה 1:1 (346px, רדיוס 40) */
    width: 346px;
    max-width: calc(100vw - 16px);
    padding: 20px 28px;
    background: #fff;
    color: #373737;
    border: 1px solid #000;
    border-radius: 40px;
    direction: rtl;
    text-align: center;
    font-size: 15px;
    font-weight: normal;
    line-height: 1.6;
}

/* הזנב לפי הפיגמה: נוטה, והחוד ב-~81% מהרוחב - נופל על --arrow-left.
   יש זנב לדסקטופ ולמובייל (צורות שונות בפיגמה), וה-CSS מציג אחד מהם. */
.owner-tip-tail {
    position: absolute;
    top: 100%; /* מתחיל על הקו התחתון של הבועה - המילוי מכסה אותו */
    overflow: visible;
}

.owner-tip-tail.tail-desktop {
    left: calc(var(--arrow-left, 50%) - 23.4px);
    width: 29px;
    height: 17px;
}

.owner-tip-tail.tail-mobile {
    display: none;
    left: calc(var(--arrow-left, 50%) - 19.5px);
    width: 24px;
    height: 14px;
}

.owner-tip-tail path {
    fill: #fff;
    stroke: #000;
    stroke-width: 1px;
    vector-effect: non-scaling-stroke;
}

/* הבועה מתחת לאייקון (אין מקום למעלה) - הזנב מצביע למעלה */
.owner-tip.below .owner-tip-tail {
    top: auto;
    bottom: 100%;
    transform: scaleY(-1);
}

/* מובייל / טאץ' - לפי עיצוב המובייל. ה-overlay קולט את הטאפ שסוגר, כי ב-iOS
   טאפ על אזור לא לחיץ לא מגיע כ-click ל-document. בטאץ' אין hover ולכן אין הבהוב. */
@media (hover: none) {
    .owner-tip-overlay {
        pointer-events: auto;
        cursor: pointer;
    }

    .owner-tip {
        width: calc(100vw - 100px);
        max-width: 340px;
        padding: 18px 22px;
        border-radius: 29px;
        font-size: 16px;
        line-height: 1.55;
    }

    /* 40px בפיגמה של המובייל, בקנה המידה של העיצוב (~0.65) */
    .owner-info-svg {
        width: 26px;
        height: 26px;
    }

    .owner-tip-tail.tail-desktop {
        display: none;
    }

    .owner-tip-tail.tail-mobile {
        display: block;
    }
}
