/* =========================
   CARD WRAPPER
========================= */
.sig-card-tem{
  max-width: 550px;
  width: 100%;
  height: auto;
  padding: 5px;
  background: #FFF;
  font-family: Arial, Helvetica, sans-serif !important;
  direction: rtl;
  box-sizing: border-box;
  margin: 0;
  /* 👈 זה הסוד: */
  display: flex;
  flex-direction: column;
  gap: 25px;
}
.tem-card{
  width: 100%;
  height: auto;
  padding: 0 10px 0 10px;
  background: var(--tem-soft);
  gap: 10px;
  border-radius: 12px;
  border: 1px solid var(--tem-border)!important;
     box-shadow:
    0 6px 14px rgba(0,0,0,.08),
    inset 0 1px 0 rgba(255,255,255,.9);
}

/* =========================
   TOP BAR
========================= */
.sig-tem-top{
  display: flex;              /* לא inline-flex */
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--tem-border);
font-family: Arial, Helvetica, sans-serif !important;
 margin-bottom: 25px;
  direction: rtl;             /* חשוב */
  box-sizing: border-box;
}

/* =========================
   QR BUTTON – PREMIUM
========================= */
.sig-qr-wrap{
  position: relative;
  display: flex;                 /* ❗ לא inline-flex */
  align-items: center;
  justify-content: space-between;/* ❗ פיזור לצדדים */
  width: 100%;
  background: var(--tem-soft);
  color: var(--tem-contrast);
  padding: 7px 0 7px 0;
  border-radius: 12px;
}

/* =========================
   QR BUTTON – PREMIUM
========================= */
.sig-qr-wrap .sig-qr-btn{
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--tem-soft)!important;

  background: var(--tem-soft);

  display: grid;
  place-items: center;

  cursor: pointer;
  appearance: none;
  outline: none;
  padding: 0;
  box-shadow: 0 8px 22px rgba(0,0,0,.08);

  transition:
    background-color .22s ease,
    border-color .22s ease,
    box-shadow .22s ease,
    transform .15s ease;
}

/* ICON */
.sig-qr-wrap .sig-qr-btn i{
  width: 20px;
  height: 20px;
  color: var(--tem-contrast);
  transition: transform .2s ease, fill .2s ease;
}

/* HOVER */
.sig-qr-wrap .sig-qr-btn:hover{
  background: var(--tem-soft);
  border-color: var(--tem-strong);
  transform: scale(.95);
  box-shadow: 0 3px 8px rgba(0,0,0,.18) inset;
}

.sig-qr-wrap .sig-qr-btn:hover svg{
  transform: scale(1.06);
}

/* ACTIVE */
.sig-qr-wrap .sig-qr-btn:active{
     background: var(--tem-soft);
  border-color: var(--tem-strong);
  transform: scale(.95);
  box-shadow: 0 3px 8px rgba(0,0,0,.18) inset;
}
.sig-qr-wrap .sig-qr-btn i:active{
  color: var(--tem-strong)!important;
  transition: transform .2s ease, fill .2s ease;
  border-color: var(--tem-strong);
}


/* FOCUS (נגישות) */
.sig-qr-wrap .sig-qr-btn:focus{
    background: var(--tem-soft);
  border-color: var(--tem-strong);
  box-shadow:
    0 0 0 2px #fff,
    0 0 0 4px var(--tem-strong);
}


/* -------------------------
   OPEN STATE (QR VISIBLE)
-------------------------- */
.sig-qr-wrap.is-open .sig-qr-btn{
  background: var(--tem-soft);
  border-color: var(--tem-strong);
  box-shadow: 0 8px 22px rgba(0,0,0,.18);
}

.sig-qr-wrap.is-open .sig-qr-btn svg{
  transform: rotate(90deg);
}

/* -------------------------
   DISABLED (OPTIONAL)
-------------------------- */
.sig-qr-btn:disabled{
  opacity: .45;
  cursor: not-allowed;
  box-shadow: none;
}

/* =========================
   QR POPUP (מוכן לפתיחה)
========================= */
.sig-qr-pop{
  position: absolute;
  top: calc(100% + 10px);
  right: 0;

  background: #fff;
  border: 1px solid var(--tem-border);
  border-radius: 14px;
  padding: 10px;

  box-shadow: 0 18px 40px rgba(0,0,0,.18);

  opacity: 0;
  transform: translateY(-6px) scale(.96);
  pointer-events: none;

  transition:
    opacity .22s ease,
    transform .22s ease;
}

/* תמונת QR */
.sig-qr-pop img{
  width: 140px;
  height: 140px;
  display: block;
}

/* מצב פתוח (JS/hover בהמשך) */
.sig-qr-wrap.is-open .sig-qr-pop{
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}


/* =========================
   QR PANEL (HIDDEN)
========================= */
.sig-qr-panel{
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 250px;
  padding: 10px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--tem-border);
  box-shadow: 0 20px 50px rgba(0,0,0,.18);

  opacity: 0;
  transform: translateY(-8px) scale(.96);
  pointer-events: none;

  transition:
    opacity .25s ease,
    transform .25s ease;
  z-index: 5;
}

.sig-qr-panel img{
  width: 100%;
  height: auto;
  display: block;
}

/* =========================
   OPEN STATE – CLICK ONLY
========================= */
.sig-qr-wrap.is-open .sig-qr-panel{
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/*********/
.sig-logo-box{
  width: 200px;
  height: 50px;          /* ✅ יותר גבוה כדי שהעיגול לא ייחתך */
  display: flex;
  align-items: center;   /* ✅ מרכז אנכי */
  justify-content: flex-start;
  padding: 0;        /* ✅ מרווח מלמעלה/למטה */
  box-sizing: border-box;
  overflow: visible;     /* ✅ שלא ייחתך בתוך הקופסה */
  line-height: 0;        /* ✅ מונע קפיצות/יישור מוזר */
}

.sig-logo{
  max-width: 180px!important;
  max-height: 50px!important;
  width: auto;
  height: auto;          /* ✅ בלי height קשיח */
  object-fit: contain;
  display: block;
  margin: 0;
  transform: none !important; /* ✅ אם יש transform שדוחף למעלה */
  align-self: right!important;
}


/* =========================
   BODY (PHOTO + TEXT)
========================= */
.sig-header{
  display: flex;
  align-items: stretch;
  margin-bottom: 25px;
}
/* טקסט */
.sig-header-right{
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding-right: 15px;
  font-family: Arial, Helvetica, sans-serif !important;
  
    align-items: right !important;
    text-align: right !important;
    gap: 6px;
}


/* תמונת משתמש */
.sig-photo{
  flex: 0 0 40%;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--tem-border);
}

.sig-photo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


.tem-company{
  font-size: 18px;
  font-weight: 400;
  opacity: .7;
  color: var(--tem-contrast)!important;
}

.tem-name{
  font-size: 24px;
  font-weight: 600;
  color: var(--tem-contrast)!important;
}

.tem-title{
font-size: 18px;
  font-weight: 400;
  opacity: .7;
  color: var(--tem-contrast)!important;
}

.tem-phone{
  padding: 5px 0 5px 0;    
  font-size: 24px;
  font-weight: 600;
  text-align: right;
  color: var(--tem-strong)!important;
}

.tem-email{
font-size: 18px;
  font-weight: 400;
  opacity: .7;
  color: var(--tem-contrast)!important;
}

/* =========================
   FOOTER – SOCIALS
========================= */
.sig-footer{
  padding: 0;
  direction: rtl;
}

/************עבור שורט של הרשתות לטמפלט************/
/* ===============================
   Signature Social Icons – ACF Colors
================================ */

.signature-socials {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 25px;
}

/* ===============================
   Button
================================ */

.sig-social {
  position: relative;
  width: 46px;
  height: 46px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: var(--tem-soft);            /* soft */
  border: 1px solid var(--tem-border);  /* border */
  border-radius: 6px;

  transition:
    background-color .18s ease,
    transform .18s ease,
    box-shadow .18s ease;
}

/* ===============================
   Icon
================================ */

.sig-social img {
  width: 28px;
  height: 28px;

  /* מאפשר שליטה דרך contrast */
  filter: brightness(0) saturate(100%);
  opacity: .9;

  transition:
    opacity .18s ease,
    transform .18s ease;
}

/* ===============================
   Hover
================================ */

.sig-social:hover {
  background: var(--sig-bg-hover);     /* hover */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.sig-social:hover img {
  opacity: 1;
  transform: scale(1.06);
}

/* ===============================
   Tooltip
================================ */

.sig-social::after {
  content: attr(data-label);

  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);

  background: #0A1A2F;
  color: #fff;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;

  padding: 6px 10px;
  border-radius: 6px;

  opacity: 0;
  pointer-events: none;

  transition:
    opacity .18s ease,
    transform .18s ease;
}

/* חץ קטן */
.sig-social::before {
  content: "";
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);

  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #0A1A2F;

  opacity: 0;
  transition: opacity .18s ease;
}

/* הצגת tooltip */
.sig-social:hover::after,
.sig-social:hover::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===============================
   התאמות לחתימת אימייל
================================ */

.signature-email .sig-social {
  width: 30px;
  height: 30px;
  border-radius: 6px;
}

.signature-email .sig-social img {
  width: 16px;
  height: 16px;
}

.signature-email .sig-social::after,
.signature-email .sig-social::before {
  display: none; /* אין tooltip במייל */
}



/* =========================
   MOBILE IMAGE FIX – NO WHITE GAP
========================= */
@media (max-width: 600px){
  .sig-card-tem{
    max-width: 100%;
    padding: 10px;
  width: 100%;
  height: auto;
  }
.tem-card{
  max-width: 100%;
  padding: 10px;
  width: 100%;
  height: auto;
}
  /* הקונטיינר של התמונה */
  .sig-photo{
    width: 100%;
    height: 220px;              /* ← זה המפתח */
    min-height: 175px;
    max-height: 175px;

    overflow: hidden;
    border-radius: 16px;

    display: block;
  }

  /* התמונה עצמה */
  .sig-photo img{
    width: 100%;
    height: 100% !important;    /* ← חובה */
    object-fit: cover;          /* ← לא contain */
    display: block;
  }
  
}


/* =========================
   MOBILE FIX – IMAGE NEVER DISAPPEARS
========================= */
@media (max-width: 420px){

  /* CARD */
  .sig-card-tem{
    max-width: 100%;
    padding: 5px;
  }
.tem-card{
        max-width: 100%;
    padding: 10px;
  width: 100%;
  height: auto;
}
  /* HEADER STACK */
  .sig-header{
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 12px;
  }

  /* PHOTO – FORCE VISIBILITY */
  .sig-photo{
    display: block !important;
    width: 140px;
    height: 140px;
    min-height: 140px;
    border-radius: 16px;
    overflow: hidden;
    flex-shrink: 0;
  }

  .sig-photo img{
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }



  /* FOOTER */
  .sig-footer{
    margin-top: 14px;
  }

}

.sig-card a{
  text-decoration: none!important;
  color: inherit!important;
}





/*********בר שיתוף*********/
/* =========================
   ACTION BAR
========================= */
.tem-action-bar{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;

  padding: 12px;
  margin-top: 14px;

  background: rgba(255,255,255,.7);
  border: 1px solid var(--tem-border, #dcdcdc);
  border-radius: 18px;

  backdrop-filter: blur(6px);
  box-sizing: border-box;
}

/* =========================
   ACTION BUTTON – BASE
========================= */
.tem-action-bar .tem-act{
  all: unset; /* מנקה Elementor / theme */
  box-sizing: border-box;

  width: 48px;
  height: 48px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 14px;
  border: 1px solid var(--tem-border)!important;

  background: var(--tem-soft)!important;
  color: var(--tem-contrast)!important;

  box-shadow:
    0 6px 14px rgba(0,0,0,.08),
    inset 0 1px 0 rgba(255,255,255,.9);

  cursor: pointer;
  text-decoration: none;

  transition:
    transform .18s ease,
    box-shadow .18s ease,
    background-color .18s ease;
}

/* =========================
   ICON (Font Awesome)
========================= */
.tem-action-bar .tem-act i{
  font-size: 22px;
  line-height: 1;
  display: block;

  color: currentColor;
}

/* =========================
   HOVER / ACTIVE
========================= */
.tem-action-bar .tem-act:hover{
  background: var(--tem-soft);
  color: var(--tem-contrast);
  transform: translateY(-2px);
  box-shadow:
    0 10px 26px rgba(0,0,0,.18),
    inset 0 1px 0 rgba(255,255,255,1);
}

.tem-action-bar .tem-act:active{
  transform: scale(.94);
  box-shadow:
    inset 0 3px 8px rgba(0,0,0,.25);
}
.tem-action-bar .tem-act:focus{
  transform: scale(.94);
  box-shadow:
    inset 0 3px 8px rgba(0,0,0,.25);
}

/* =========================
   PRIMARY (SHARE)
========================= */
.tem-action-bar .tem-act-primary{
  background: var(--tem-contrast, #0A1A2F);
  color: #fff;
  border-color: transparent;

  box-shadow:
    0 10px 28px rgba(0,0,0,.25);
}

/* =========================
   MOBILE
========================= */
@media (max-width: 520px){
  .tem-action-bar{
    gap: 12px;
    padding: 10px;
  }

  .tem-action-bar .tem-act{
    width: 46px;
    height: 46px;
  }
}




/* =========================
   SHARE SHEET – WRAPPER
========================= */
.tem-share-sheet{
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: none;
}

.tem-share-sheet[aria-hidden="false"]{
  display: block;
}

/* BACKDROP */
.tem-share-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(10,26,47,.35);
  backdrop-filter: blur(4px);
}

/* SHARE BOX */
.tem-share-box{
  position: absolute;
  left: 50%;
  bottom: 90px;
  transform: translateX(-50%);

  background: #fff;
  border-radius: 18px;
  padding: 16px;

  min-width: 260px;

  box-shadow: 0 30px 70px rgba(0,0,0,.28);
}

/* SHARE ROW */
.tem-share-row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* SHARE ITEM */
.tem-share-item{
  all: unset;
  box-sizing: border-box;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 12px;
  border-radius: 12px;

  background: var(--tem-soft, #f5f6f7);
  border: 1px solid var(--tem-border, #dcdcdc);

  font-size: 14px;
  font-weight: 600;
  color: var(--tem-contrast, #0A1A2F);

  cursor: pointer;
  text-align: center;

  transition:
    background-color .18s ease,
    transform .15s ease,
    box-shadow .18s ease;
}

.tem-share-item:hover{
  background: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0,0,0,.12);
}

/* =========================
   MOBILE SHARE
========================= */
@media (max-width: 520px){
  .tem-share-box{
    left: 0;
    right: 0;
    bottom: 0;
    transform: none;

    border-radius: 22px 22px 0 0;
    padding: 20px 16px 26px;
  }

  .tem-share-row{
    grid-template-columns: 1fr;
  }

  .tem-share-item{
    font-size: 16px;
    padding: 14px;
  }
}
.tem-share-wrap{
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* הסליידר */
.tem-share-slider{
  position: absolute;
  right: 0;
  top: calc(100% + 10px);

  display: flex;
  gap: 10px;

  padding: 10px 12px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0,0,0,.2);

  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;

  transition: opacity .25s ease, transform .25s ease;
}

/* פתוח */
.tem-share-wrap.is-open .tem-share-slider{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}


/* כפתורי רשת */
/* =========================
   SHARE SLIDER – BASE
========================= */

.tem-share-wrap{
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* הקונטיינר של הסליידר */
.tem-share-slider{
  position: absolute;
  right: 0;
  top: calc(100% + 12px);

  display: flex;
  gap: 10px;

  padding: 10px 12px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--tem-soft);
  box-shadow: 0 18px 40px rgba(0,0,0,.18);

  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;

  transition: opacity .22s ease, transform .22s ease;
}

/* פתיחה */
.tem-share-wrap.is-open .tem-share-slider{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* =========================
   SHARE ITEM (a + button)
========================= */

.tem-share-slider a,
.tem-share-slider button{
  all: unset;
  box-sizing: border-box;

  width: 40px;
  height: 40px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 10px;
  border: 1px solid var(--tem-border);
  background: var(--tem-soft);

  color: var(--tem-contrast);
  cursor: pointer;

  transition:
    transform .18s ease,
    box-shadow .18s ease,
    background-color .18s ease,
    color .18s ease;
}

/* האייקון עצמו */
.tem-share-slider i{
  font-size: 18px;
  line-height: 1;
  pointer-events: none; /* חשוב! */
  color: var(--tem-contrast);
}

/* =========================
   HOVER / ACTIVE
========================= */

.tem-share-slider a:hover,
.tem-share-slider button:hover{
  background: #fff;
  color: var(--tem-strong);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,.16);
}

.tem-share-slider a:active,
.tem-share-slider button:active{
  transform: scale(.94);
  box-shadow: inset 0 3px 8px rgba(0,0,0,.22);
}
