.sdbc-wrap{max-width:760px;margin:24px auto;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Ubuntu,Cantarell,Helvetica,Arial,sans-serif;color:#111827}
.sdbc-calendar{border:1px solid #e5e7eb;border-radius:14px;padding:12px;background:#fff}
.sdbc-cal-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
.sdbc-cal-header .sdbc-prev,.sdbc-cal-header .sdbc-next{border:0;background:#f3f4f6;padding:6px 10px;border-radius:8px;cursor:pointer}
.sdbc-weekdays{display:grid;grid-template-columns:repeat(7,1fr);gap:4px;margin:8px 0 4px 0;font-weight:600;font-size:12px;color:#6b7280}
.sdbc-days{display:grid;grid-template-columns:repeat(7,1fr);gap:6px}
.sdbc-cell{height:44px;border-radius:10px;display:flex;align-items:center;justify-content:center;background:#f9fafb;color:#111827}

/* حالات اليوم */
.sdbc-cell.open{background:#0e9f6e33;border:1px solid #0e9f6e66;color:#065f46;cursor:pointer}
.sdbc-cell.open:hover{background:#0e9f6e55}
.sdbc-cell.full{background:#fef3c7;border:1px solid #f59e0b55;color:#92400e}
.sdbc-cell.closed{background:#f3f4f6;color:#9ca3af}

/* اليوم المُختار — نفس لون الساعة المختارة تمامًا */
.sdbc-cell.open.selected,
.sdbc-days .sdbc-day.open.selected{
  background:#0e9f6e;
  color:#fff;
  border-color:#0e9f6e;
}

/* زرار الوقت والاختيار */
.sdbc-form{margin-top:16px}
.sdbc-field{margin-bottom:10px}
.sdbc-field input{width:100%;border:1px solid #e5e7eb;border-radius:10px;padding:10px 12px}
.sdbc-submit{border:0;border-radius:10px;padding:10px 14px;background:#0e9f6e;color:#fff;cursor:pointer;opacity:.6}
.sdbc-submit:disabled{cursor:not-allowed;opacity:.5}
.sdbc-picked-time{margin:8px 0 12px 0}
.sdbc-msg{margin-top:10px;font-weight:600}
.sdbc-msg.ok{color:#065f46}
.sdbc-msg.err{color:#991b1b}

/* بوب-أب */
.sdbc-modal{position:fixed;left:0;top:0;width:100%;height:100%}
.sdbc-modal-backdrop{position:absolute;left:0;top:0;width:100%;height:100%;background:rgba(0,0,0,.25)}
.sdbc-modal-content{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);background:#fff;border-radius:16px;min-width:320px;max-width:90vw;box-shadow:0 20px 50px rgba(0,0,0,.2)}
.sdbc-modal-header{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;border-bottom:1px solid #e5e7eb}
.sdbc-modal-body{padding:12px 16px}
.sdbc-times-list{display:flex;flex-wrap:wrap;gap:8px}
.sdbc-time{border:1px solid #e5e7eb;background:#f9fafb;border-radius:10px;padding:8px 10px;cursor:pointer}
.sdbc-time.selected{background:#0e9f6e;color:#fff;border-color:#0e9f6e}

/* تنبيه داخل البوب-أب عند نسيان الساعة */
.sdbc-alert{background:#fef3c7;border:1px solid #f59e0b55;color:#92400e;padding:8px 10px;border-radius:8px;margin-bottom:10px}

.sdbc-modal-footer{padding:12px 16px;border-top:1px solid #e5e7eb;text-align:right}

/* في حال تغلب ستايل خارجي، قوّي الأولوية */
.sdbc-wrap .sdbc-days .sdbc-day.open.selected,
.sdbc-wrap .sdbc-days div.sdbc-cell.sdbc-day.open.selected{
  background:#0e9f6e !important;
  color:#fff !important;
  border-color:#0e9f6e !important;
}
