/* assets/privacy.css — הודעת הפרטיות (includes/header.php + assets/privacy.js). משותף לשני האתרים.
 * ההודעה בתוך זרימת הדף, בראשו — לא position:fixed — ולכן לא מכסה סכומים, כפתורי קופה או כפתורים צפים.
 * הכללים מתחילים ב-#pvNotice כדי לגבור על כללי ערכות העיצוב (למשל .skin-gamingpc h2 / a).
 * צבעים קבועים (כרטיס לבן, מסגרת טורקיז כהה) כדי שתיראה אותו דבר בכל ערכות העיצוב, כולל הכהות. */
.pv-notice{padding:12px 12px 0;direction:rtl}
.pv-notice[hidden]{display:none}
#pvNotice .pv-card{max-width:1080px;margin:0 auto;background:#fff;color:#1d2a2a;border:2px solid #1b5e5a;border-radius:16px;padding:18px 22px;box-shadow:0 4px 18px rgba(0,0,0,.12);font:400 15px/1.6 Heebo,system-ui,-apple-system,"Segoe UI",Arial,sans-serif}
#pvNotice .pv-title{font-family:inherit;letter-spacing:0;background:none;-webkit-text-fill-color:currentColor;margin:0 0 6px;font-size:19px;font-weight:700;color:#123f3c;line-height:1.35}
#pvNotice .pv-title:focus{outline:3px solid #ffbf47;outline-offset:3px}
#pvNotice .pv-text{margin:0 0 14px;color:#2b3a3a}
#pvNotice .pv-actions{display:flex;gap:10px;flex-wrap:wrap}
#pvNotice .pv-btn{flex:1 1 0;min-width:150px;min-height:44px;padding:9px 14px;border:2px solid #1b5e5a;border-radius:10px;background:#fff;color:#123f3c;font:600 15px/1.3 inherit;font-family:inherit;cursor:pointer;text-align:center}
#pvNotice .pv-btn:hover{background:#e8f3f2}
#pvNotice .pv-btn[aria-expanded="true"]{background:#e8f3f2}
#pvNotice .pv-btn:focus-visible,#pvNotice .pv-more:focus-visible{outline:3px solid #ffbf47;outline-offset:3px;box-shadow:0 0 0 6px #0b0c0c}
#pvNotice .pv-btn[hidden]{display:none}
#pvNotice .pv-more{display:inline-block;margin-top:12px;color:#14524e;font-weight:600;text-decoration:underline;text-underline-offset:3px;min-height:24px}
#pvNotice .pv-settings{margin:14px 0 4px;padding:12px 14px;border:1px solid #b9d3d1;border-radius:10px;background:#f6fbfa}
#pvNotice .pv-settings[hidden]{display:none}
#pvNotice .pv-sub{font-family:inherit;letter-spacing:0;margin:0 0 6px;font-size:16px;font-weight:700;color:#123f3c}
#pvNotice .pv-list{margin:0 0 12px;padding-inline-start:20px}
#pvNotice .pv-list li{margin:0 0 6px}
#pvNotice .pv-list strong{color:#123f3c}
#pvNotice .pv-status{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
#pvNotice .pv-status:not(:empty){position:static;width:auto;height:auto;clip:auto;white-space:normal;margin-top:8px;font-size:14px;color:#123f3c}
/* כפתור "הגדרות פרטיות" בפוטר — נראה כמו קישור */
.pv-footer-link{background:none;border:0;padding:0;margin:0;color:inherit;font:inherit;text-decoration:underline;text-underline-offset:2px;cursor:pointer;min-height:24px}
.pv-footer-link:focus-visible{outline:3px solid #ffbf47;outline-offset:2px}
@media (max-width:600px){
  .pv-notice{padding:8px 8px 0}
  #pvNotice .pv-card{padding:14px 14px;border-radius:12px;font-size:14.5px}
  #pvNotice .pv-title{font-size:17px}
  #pvNotice .pv-btn{flex:1 1 100%;min-width:0}
}
@media print{.pv-notice{display:none}}

/* ===== תיקון פריסה 27/11 14:30: כרטיס קטן בצד שמאל במחשב, קומפקטי בראש הדף בנייד ===== */
@media (min-width:701px){
  .pv-notice{position:fixed;left:16px;bottom:150px;z-index:900;width:330px;max-width:calc(100vw - 32px);padding:0;direction:rtl}
  #pvNotice .pv-card{max-width:none;margin:0;padding:14px 16px;border-radius:14px;font-size:14px;line-height:1.5;box-shadow:0 6px 24px rgba(0,0,0,.35);max-height:calc(100vh - 190px);overflow:auto}
  #pvNotice .pv-title{font-size:16px;margin:0 0 4px}
  #pvNotice .pv-text{margin:0 0 10px;font-size:13.5px}
  #pvNotice .pv-actions{flex-direction:column;gap:8px}
  #pvNotice .pv-btn{flex:none;width:100%;min-width:0;min-height:40px;font-size:14px}
  #pvNotice .pv-more{margin-top:8px;font-size:13.5px}
}
@media (max-width:700px){
  .pv-notice{padding:6px 8px 0}
  #pvNotice .pv-card{padding:10px 12px;border-radius:10px;font-size:13px;line-height:1.45}
  #pvNotice .pv-title{font-size:15px;margin:0 0 2px}
  #pvNotice .pv-text{margin:0 0 8px;font-size:13px}
  #pvNotice .pv-actions{flex-wrap:nowrap;gap:8px}
  #pvNotice .pv-btn{flex:1 1 0;min-width:0;min-height:44px;padding:6px 8px;font-size:13.5px}
  #pvNotice .pv-more{margin-top:6px;font-size:13px}
}

/* ===== נייד (עד 700px): פס קצר. משפט אחד, קישור "הגדרות פרטיות" ו-X (הבנתי). הפירוט המלא נפתח בלחיצה. במחשב לא משתנה דבר. ===== */
.pv-short{display:none}
@media (max-width:700px){
  .pv-notice{padding:4px 6px 0}
  #pvNotice .pv-card{display:flex;flex-wrap:wrap;align-items:center;gap:0 6px;padding:4px 10px;border-radius:8px;font-size:12.5px;line-height:1.4}
  #pvNotice .pv-title{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
  #pvNotice .pv-text{display:none}
  #pvNotice .pv-short{display:block;flex:1 1 0;min-width:0;order:1;margin:0;font-size:12.5px;line-height:1.4}
  #pvNotice .pv-card>.pv-actions{flex:0 0 auto;order:2;flex-wrap:nowrap;flex-direction:row-reverse;align-items:center;gap:2px}
  /* הבנתי = X (השם הנגיש נשאר "הבנתי") */
  #pvNotice .pv-card>.pv-actions>[data-pv="ack"]{flex:none;width:40px;min-width:40px;min-height:40px;padding:0;border-radius:50%;font-size:0;line-height:0}
  #pvNotice .pv-card>.pv-actions>[data-pv="ack"]::before{content:"\2715";font-size:16px;line-height:1}
  /* הגדרות פרטיות = קישור קטן */
  #pvNotice .pv-card>.pv-actions>[data-pv="settings"]{flex:none;width:auto;min-width:0;min-height:40px;padding:0 4px;border:0;background:none;font-size:12.5px;line-height:1.2;text-decoration:underline;text-underline-offset:2px;max-width:64px}
  #pvNotice .pv-settings{flex:1 1 100%;order:3;margin-top:4px}
  #pvNotice .pv-status{flex:1 1 100%;order:5}
  #pvNotice .pv-more{display:none;flex:1 1 100%;order:4;margin:4px 0;font-size:12.5px}
  #pvNotice:has(#pvSettings:not([hidden])) .pv-more{display:inline-block}
}
/* נייד: ההודעה בסוף העמוד. רווח תחתון כדי שכפתורי WhatsApp והנגישות הצפים לא יכסו אותה כשגוללים עד הסוף. */
@media (max-width:700px){
  .pv-notice{padding:6px 6px 0;margin-bottom:150px}
}
/* מחשב, עגלה וקופה: הכרטיס צף מעל כפתור הוואטסאפ, בגרסה קצרה כדי לא לכסות את סיכום ההזמנה */
@media (min-width:701px){
  body:has(.cart-layout) #pvNotice .pv-card,body:has(.checkout-layout) #pvNotice .pv-card{display:flex;flex-wrap:wrap;align-items:center;gap:0 6px;padding:4px 10px;border-radius:8px;font-size:12.5px;line-height:1.4}
  body:has(.cart-layout) #pvNotice .pv-title,body:has(.checkout-layout) #pvNotice .pv-title{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
  body:has(.cart-layout) #pvNotice .pv-text,body:has(.checkout-layout) #pvNotice .pv-text{display:none}
  body:has(.cart-layout) #pvNotice .pv-short,body:has(.checkout-layout) #pvNotice .pv-short{display:block;flex:1 1 0;min-width:0;order:1;margin:0;font-size:12.5px;line-height:1.4}
  body:has(.cart-layout) #pvNotice .pv-card>.pv-actions,body:has(.checkout-layout) #pvNotice .pv-card>.pv-actions{flex:0 0 auto;order:2;flex-wrap:nowrap;flex-direction:row-reverse;align-items:center;gap:2px}
  body:has(.cart-layout) #pvNotice .pv-card>.pv-actions>[data-pv="ack"],body:has(.checkout-layout) #pvNotice .pv-card>.pv-actions>[data-pv="ack"]{flex:none;width:40px;min-width:40px;min-height:40px;padding:0;border-radius:50%;font-size:0;line-height:0}
  body:has(.cart-layout) #pvNotice .pv-card>.pv-actions>[data-pv="ack"]::before,body:has(.checkout-layout) #pvNotice .pv-card>.pv-actions>[data-pv="ack"]::before{content:"\2715";font-size:16px;line-height:1}
  body:has(.cart-layout) #pvNotice .pv-card>.pv-actions>[data-pv="settings"],body:has(.checkout-layout) #pvNotice .pv-card>.pv-actions>[data-pv="settings"]{flex:none;width:auto;min-width:0;min-height:40px;padding:0 4px;border:0;background:none;font-size:12.5px;line-height:1.2;text-decoration:underline;text-underline-offset:2px;max-width:64px}
  body:has(.cart-layout) #pvNotice .pv-settings,body:has(.checkout-layout) #pvNotice .pv-settings{flex:1 1 100%;order:3;margin-top:4px}
  body:has(.cart-layout) #pvNotice .pv-status,body:has(.checkout-layout) #pvNotice .pv-status{flex:1 1 100%;order:5}
  body:has(.cart-layout) #pvNotice .pv-more,body:has(.checkout-layout) #pvNotice .pv-more{display:none;flex:1 1 100%;order:4;margin:4px 0;font-size:12.5px}
  body:has(.cart-layout) #pvNotice:has(#pvSettings:not([hidden])) .pv-more,body:has(.checkout-layout) #pvNotice:has(#pvSettings:not([hidden])) .pv-more{display:inline-block}
  body:has(.cart-layout) .pv-notice,body:has(.checkout-layout) .pv-notice{width:300px}
}
@media (min-width:701px){
  body:has(.cart-layout) .pv-notice,body:has(.checkout-layout) .pv-notice{bottom:140px}
}
/* כל עוד ההודעה מוצגת: סיכום ההזמנה לא נדבק למסך, כדי שאפשר לגלול כל פקד אל מחוץ לכרטיס. אחרי "הבנתי" הוא חוזר להיות דביק. */
@media (min-width:701px){
  body:has(.cart-layout):has(#pvNotice:not([hidden])) .cart-summary,body:has(.checkout-layout):has(#pvNotice:not([hidden])) .cart-summary{position:static}
}
/* מקום שמור: במסכים רחבים, כל עוד ההודעה מוצגת, תוכן העגלה/הקופה מוזז ימינה כדי שהכרטיס שמעל כפתור הוואטסאפ לא יכסה שום פקד. אחרי "הבנתי" הפריסה חוזרת. */
@media (min-width:1100px){
  body:has(#pvNotice:not([hidden])) .checkout-layout,body:has(#pvNotice:not([hidden])) .cart-layout{margin-left:316px}
}

