/* WooCommerce Enhancements CSS
   - Geolocation autofill UI
   - Mobile Sticky Bar (total + submit)
   - UX Animations (pulse/shake)
   - Low-stock badge
   - WhatsApp confirm block (centered, responsive)
*/

/* ========== Geolocation UI ========== */
.wc-geo-section{
  background:#f0f9ff !important;
  border:1px solid #bfdbfe !important;
  border-radius:12px !important;
  padding:20px !important;
  margin-bottom:24px !important;
}

.wc-geo-heading{
  font-size:116px !important;
  font-weight:700 !important;
  margin:0 0 6px !important;
  color:#fff !important;
}

.wc-geo-description{
  font-size:113px !important;
  margin:0 0 16px !important;
  color:#64748b !important;
  line-height:1.5 !important;
}

.wc-geo-btn{
  width:100% !important;
  min-height:56px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:8px !important;
  background:#fff !important;
  color:#1e73be !important;
  border:2px solid #1e73be !important;
  border-radius:12px !important;
  font-size:16px !important;
  font-weight:700 !important;
  cursor:pointer !important;
  transition:all .2s ease !important;
}

.wc-geo-btn:hover{
  background:#1e73be !important;
  color:#fff !important;
}

.wc-geo-btn.loading{
  background:#f3f4f6 !important;
  color:#9ca3af !important;
  border-color:#e5e7eb !important;
  cursor:wait !important;
}

.wc-geo-btn.success{
  background:#10b981 !important;
  color:#fff !important;
  border-color:#10b981 !important;
}

.wc-geo-btn .dashicons{
  font-size:20px !important;
  width:20px !important;
  height:20px !important;
}

.wc-geo-preview{
  display:none;
  align-items:flex-start !important;
  gap:12px !important;
  background:#fff !important;
  border:1px solid #e5e7eb !important;
  border-radius:10px !important;
  padding:14px !important;
  margin-top:14px !important;
}

.wc-geo-icon{
  font-size:24px !important;
  line-height:1 !important;
}

.wc-geo-details strong{
  display:block !important;
  font-size:15px !important;
  margin-bottom:4px !important;
  color:#111 !important;
  font-weight:700 !important;
}

.wc-geo-details p{
  font-size:13px !important;
  margin:0 !important;
  color:#64748b !important;
  line-height:1.4 !important;
}

.wc-geo-note{
  display:flex !important;
  align-items:center !important;
  gap:6px !important;
  font-size:12px !important;
  color:#64748b !important;
  margin:12px 0 0 !important;
}

.wc-geo-note .dashicons{
  font-size:14px !important;
  width:14px !important;
  height:14px !important;
  color:#10b981 !important;
}

/* ========== Sticky Bar (mobile) ========== */
.wc-sticky-bar{
  position:fixed !important;
  bottom:0 !important;
  left:0 !important;
  right:0 !important;
  background:#fff !important;
  border-top:2px solid #e5e7eb !important;
  box-shadow:0 -4px 20px rgba(0,0,0,.1) !important;
  padding:12px 16px !important;
  z-index:9999 !important;
  display:none !important; /* يظهر فقط على الموبايل */
  align-items:center !important;
  gap:12px !important;
}

.wc-sticky-total{ flex:1 !important; }

.wc-sticky-label{
  font-size:13px !important;
  color:#64748b !important;
  display:block !important;
  margin-bottom:2px !important;
}

.wc-sticky-value{
  font-size:20px !important;
  font-weight:800 !important;
  color:#111 !important;
}

.wc-sticky-btn{
  min-height:50px !important;
  padding:0 24px !important;
  background:#1e73be !important;
  color:#fff !important;
  border:none !important;
  border-radius:10px !important;
  font-size:15px !important;
  font-weight:700 !important;
  cursor:pointer !important;
  white-space:nowrap !important;
}

.wc-sticky-btn:hover{ background:#155a94 !important; }

@media (max-width:768px){
  .wc-sticky-bar{ display:flex !important; }
}
@media (min-width:769px){
  .wc-sticky-bar{ display:none !important; }
}

/* ========== UX Animations ========== */
.wc-field-filled{
  animation:wc-field-pulse .6s ease !important;
}
@keyframes wc-field-pulse{
  0%,100%{ background:transparent; border-color:#e5e7eb; transform:scale(1); }
  50%{ background:rgba(16,185,129,.08); border-color:#10b981; transform:scale(1.02); }
}

.wc-field-shake{
  animation:wc-shake .5s ease !important;
}
@keyframes wc-shake{
  0%,100%{ transform:translateX(0); }
  25%{ transform:translateX(-8px); }
  75%{ transform:translateX(8px); }
}

/* ========== Low stock badge ========== */
.wc-low-stock{
  display:inline-block !important;
  background:#fef2f2 !important;
  color:#dc2626 !important;
  padding:4px 10px !important;
  border-radius:6px !important;
  font-size:13px !important;
  font-weight:600 !important;
  margin-top:6px !important;
}

/* ========== WhatsApp confirm (centered, responsive) ========== */
.wc-whatsapp-confirm{
  background:linear-gradient(135deg, #25d366 0%, #128c7e 100%) !important;
  color:#fff !important;
  border-radius:12px !important;
  padding:20px !important;
  text-align:center !important;
  margin-top:20px !important;

  /* تمركز وتمدد مناسب */
  width:100% !important;
  max-width:640px !important;
  margin-left:auto !important;
  margin-right:auto !important;

  box-shadow:0 10px 30px rgba(18,140,126,.18) !important;
}

.wc-whatsapp-confirm h3{
  margin:0 0 8px !important;
  color:#fff !important;
  font-size:18px !important;
}

.wc-whatsapp-confirm p{
  margin:0 0 16px !important;
  color:rgba(255,255,255,.9) !important;
}

.wc-wa-btn{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:8px !important;
  background:#fff !important;
  color:#25d366 !important;
  border:none !important;
  padding:12px 24px !important;
  border-radius:10px !important;
  font-weight:700 !important;
  text-decoration:none !important;
  min-width:220px !important;
}

.wc-wa-btn:hover{ background:#f0f0f0 !important; }

.wc-wa-btn .dashicons{
  font-size:20px !important;
  width:20px !important;
  height:20px !important;
}

/* موبايل */
@media (max-width: 768px){
  .wc-whatsapp-confirm{
    max-width: 92vw !important;
    padding:16px !important;
  }
  .wc-whatsapp-confirm h3{ font-size:17px !important; }
  .wc-wa-btn{ width:100% !important; min-width:unset !important; }
}
