/* משלוח - חלון קופץ ללקוח (שורטקוד [משלוח])
   כל הכללים כאן ממוגנים מפני עיצוב גלובלי של התבנית: איפוס ממוקד + !important
   על המאפיינים שתבניות נוטות לדרוס (רקע, צבע, מסגרת, ריפוד, גודל, פינות). */

/* ---------- איפוס מוגן ---------- */
.mshp-back,
.mshp-back *,
.mshp-open {
	box-sizing: border-box;
}

.mshp-back [hidden],
.mshp-back[hidden] {
	display: none !important;
}

.mshp-back button,
.mshp-back input,
.mshp-back a {
	font-family: inherit !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	text-shadow: none !important;
	min-width: 0 !important;
	min-height: 0 !important;
	margin: 0 !important;
	outline: none;
}

/* ---------- כפתור הפתיחה ---------- */
.mshp-open {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: auto !important;
	padding: 10px 20px !important;
	background: #efc744 !important;
	border: 0 !important;
	border-radius: 10px !important;
	color: #1a1a1a !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	line-height: 1.3 !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	text-decoration: none !important;
	box-shadow: none !important;
	cursor: pointer;
	transition: filter 0.15s, transform 0.1s;
}
.mshp-open:hover,
.mshp-open:focus {
	background: #efc744 !important;
	color: #1a1a1a !important;
	filter: brightness(0.95);
}
.mshp-open:active { transform: scale(0.97); }
.mshp-open-icon { display: inline-flex; }

/* ---------- שכבת רקע וחלון ---------- */
body.mshp-lock { overflow: hidden; }

.mshp-back {
	position: fixed;
	inset: 0;
	z-index: 100000;
	background: rgba(12, 22, 18, 0.55);
	display: none;
	align-items: center;
	justify-content: center;
	padding: 18px;
}
.mshp-back.is-open {
	display: flex;
}

.mshp-modal {
	position: relative;
	width: 100%;
	max-width: 540px;
	max-height: 92vh;
	overflow-y: auto;
	background: #fff !important;
	border-radius: 16px;
	box-shadow: 0 24px 60px rgba(10, 20, 16, 0.35);
	padding: 18px 20px;
	font-size: 15px;
	line-height: 1.5;
	color: #1c2b25;
	text-align: right;
	animation: mshp-in 0.18s ease-out;
}
@keyframes mshp-in {
	from { opacity: 0; transform: translateY(10px) scale(0.98); }
	to { opacity: 1; transform: none; }
}

/* ---------- כותרת + כפתור סגירה ---------- */
.mshp-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
}
.mshp-title {
	font-size: 18px;
	font-weight: 800;
	color: #1c2b25;
}

.mshp-x {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	flex: 0 0 auto;
	width: 30px !important;
	height: 30px !important;
	padding: 0 !important;
	background: #f0f2f0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	color: #4d5c55 !important;
	font-size: 17px !important;
	font-weight: 700 !important;
	line-height: 1 !important;
	box-shadow: none !important;
	cursor: pointer;
	transition: background 0.15s;
}
.mshp-x:hover,
.mshp-x:focus {
	background: #e2e6e3 !important;
	color: #1c2b25 !important;
}

/* ---------- שדות ---------- */
.mshp-field { margin-bottom: 15px; }
.mshp-field > label {
	display: block;
	font-size: 13px;
	font-weight: 700;
	color: #33423b;
	margin-bottom: 5px;
}

.mshp-input {
	display: block !important;
	width: 100% !important;
	height: auto !important;
	padding: 10px 13px !important;
	background: #fff !important;
	border: 1.5px solid #cfdad3 !important;
	border-radius: 9px !important;
	font-size: 15px !important;
	font-weight: 400 !important;
	line-height: 1.4 !important;
	color: #1c2b25 !important;
	box-shadow: none !important;
	transition: border-color 0.15s, box-shadow 0.15s;
}
.mshp-input:focus {
	border-color: #efc744 !important;
	box-shadow: 0 0 0 3px rgba(239, 199, 68, 0.3) !important;
}
.mshp-input::placeholder { color: #9aa8a1 !important; opacity: 1; }

.mshp-combo { position: relative; }
.mshp-addr-row { display: flex; gap: 9px; }
.mshp-combo-street { flex: 1 1 auto; }
.mshp-input-house { flex: 0 0 92px; width: 92px !important; text-align: center; }

/* ---------- רשימות בחירה ---------- */
.mshp-back .msh-combo-drop,
.mshp-drop {
	position: absolute;
	top: calc(100% + 4px);
	right: 0;
	left: 0;
	z-index: 100001;
	max-height: 220px;
	overflow-y: auto;
	background: #fff !important;
	border: 1px solid #dbe3de;
	border-radius: 10px;
	box-shadow: 0 10px 26px rgba(15, 30, 24, 0.14);
	direction: rtl;
	text-align: right;
}
.mshp-back .msh-combo-item {
	display: block !important;
	width: 100% !important;
	padding: 9px 13px !important;
	background: none !important;
	border: 0 !important;
	border-bottom: 1px solid #f0f4f1 !important;
	border-radius: 0 !important;
	font-size: 14px !important;
	font-weight: 500 !important;
	color: #1c2b25 !important;
	text-align: right !important;
	box-shadow: none !important;
	cursor: pointer;
	transition: background 0.12s;
}
.mshp-back .msh-combo-item:last-child { border-bottom: 0 !important; }
.mshp-back .msh-combo-item:hover { background: #fdf6e0 !important; color: #1a1a1a !important; }
.mshp-back .msh-combo-none {
	padding: 11px 13px;
	font-size: 13.5px;
	color: #6b7a73;
	text-align: center;
}

/* ---------- לוח המועדים ---------- */
.mshp-back .msh-days {
	display: flex;
	gap: 9px;
	overflow-x: auto;
	padding-bottom: 6px;
	scrollbar-width: thin;
}
.mshp-back .msh-day {
	flex: 0 0 120px;
	background: #f8f9f8;
	border: 1px solid #e5e8e6;
	border-radius: 11px;
	padding: 9px;
	display: flex;
	flex-direction: column;
	gap: 7px;
}
.mshp-back .msh-day-head {
	text-align: center;
	padding-bottom: 6px;
	border-bottom: 1px dashed #dde2df;
}
.mshp-back .msh-day-name { font-weight: 700; font-size: 13.5px; color: #1c2b25; }
.mshp-back .msh-day-date { font-size: 12px; color: #6b7a73; }

.mshp-back .msh-slot {
	display: block !important;
	width: 100% !important;
	padding: 8px 5px !important;
	background: #fff !important;
	border: 1.5px solid #d5dcd8 !important;
	border-radius: 8px !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	line-height: 1.3 !important;
	color: #1c2b25 !important;
	box-shadow: none !important;
	cursor: pointer;
	direction: ltr;
	transition: border-color 0.15s, background 0.15s, transform 0.1s;
}
.mshp-back .msh-slot:hover { border-color: #efc744 !important; background: #fdf6e0 !important; }
.mshp-back .msh-slot:active { transform: scale(0.97); }
.mshp-back .msh-slot.is-selected {
	background: #efc744 !important;
	border-color: #d9ae2a !important;
	color: #1a1a1a !important;
}

.mshp-back .msh-msg {
	width: 100%;
	padding: 13px;
	background: #f8f9f8;
	border: 1px dashed #d5dcd8;
	border-radius: 10px;
	font-size: 14px;
	color: #4d5c55;
	text-align: center;
}
.mshp-back .msh-msg-warn { background: #fdf6ee; border-color: #ecd4b4; color: #8a5a1e; }
.mshp-back .msh-msg-loading { color: #8a7420; }

/* ---------- שגיאה, שמירה, מסך סיום ---------- */
.mshp-error {
	margin-bottom: 12px;
	padding: 9px 13px;
	background: #fdeeee;
	border: 1px solid #f0c9c5;
	border-radius: 9px;
	color: #a8322a;
	font-size: 13.5px;
}

.mshp-foot { display: flex; align-items: center; gap: 9px; justify-content: flex-start; }

/* ---------- מחוון שלבים ---------- */
.mshp-steps {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 16px;
}
.mshp-step {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 600;
	color: #97a09b;
	white-space: nowrap;
}
.mshp-step b {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 21px;
	height: 21px;
	border-radius: 50%;
	background: #eceeed;
	color: #7d8781;
	font-size: 12px;
	font-weight: 800;
}
.mshp-step.is-on { color: #1c2b25; }
.mshp-step.is-on b { background: #efc744; color: #1a1a1a; }
#mshpTab1 { cursor: pointer; }
.mshp-step-line {
	flex: 1;
	height: 1px;
	background: #e3e6e4;
}

/* ---------- סיכום הכתובת בשלב 2 ---------- */
.mshp-summary {
	margin-bottom: 14px;
	padding: 9px 13px;
	background: #f8f9f8;
	border: 1px solid #e5e8e6;
	border-radius: 9px;
	font-size: 13.5px;
	font-weight: 600;
	color: #33423b;
}

.mshp-save {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: auto !important;
	padding: 9px 20px !important;
	background: #efc744 !important;
	border: 0 !important;
	border-radius: 9px !important;
	color: #1a1a1a !important;
	font-size: 14.5px !important;
	font-weight: 700 !important;
	line-height: 1.3 !important;
	text-decoration: none !important;
	box-shadow: none !important;
	cursor: pointer;
	transition: filter 0.15s, transform 0.1s;
}
.mshp-save:hover,
.mshp-save:focus {
	background: #efc744 !important;
	color: #1a1a1a !important;
	filter: brightness(0.95);
}
.mshp-save:active { transform: scale(0.97); }
.mshp-save:disabled {
	background: #e6e8e6 !important;
	color: #97a09b !important;
	cursor: not-allowed;
	filter: none;
	transform: none;
}

.mshp-done { text-align: center; padding: 10px 4px 4px; }
.mshp-done-icon {
	width: 50px;
	height: 50px;
	margin: 0 auto 12px;
	border-radius: 50%;
	background: #fdf3d6;
	color: #8a7420;
	font-size: 26px;
	font-weight: 800;
	display: flex;
	align-items: center;
	justify-content: center;
}
.mshp-done-title { font-size: 17px; font-weight: 800; margin-bottom: 6px; }
.mshp-done-text { font-size: 14px; color: #4d5c55; margin-bottom: 15px; }
.mshp-done-actions { display: flex; gap: 9px; justify-content: center; flex-wrap: wrap; }

.mshp-ghost {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: auto !important;
	padding: 9px 18px !important;
	background: #f0f2f0 !important;
	border: 0 !important;
	border-radius: 9px !important;
	color: #33423b !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	line-height: 1.3 !important;
	box-shadow: none !important;
	cursor: pointer;
	transition: background 0.15s;
}
.mshp-ghost:hover,
.mshp-ghost:focus { background: #e2e6e3 !important; color: #1c2b25 !important; }

@media (max-width: 520px) {
	.mshp-modal { padding: 15px; border-radius: 14px; }
	.mshp-addr-row { flex-wrap: wrap; }
	.mshp-input-house { flex: 1 1 auto; width: 100% !important; }
}

/* ---------- בלוק בעמוד המוצר (מעל כפתור הרכישה) ---------- */
.mshp-product {
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	float: none !important;
	clear: both !important;
	flex-basis: 100% !important;
	order: -1;
	margin: 0 0 16px !important;
	padding: 11px 14px !important;
	background: #fdf9ec;
	border: 1px solid #f0dfa8;
	border-radius: 11px;
	font-size: 14px;
	line-height: 1.45;
	color: #4a4335;
	text-align: right;
	box-sizing: border-box;
}
.mshp-product.is-set {
	background: #f6f9f7;
	border-color: #d9e4dd;
	color: #2c3a33;
}
.mshp-product-in {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}
.mshp-product-text { flex: 1 1 200px; }
.mshp-product-text b { font-weight: 700; }
.mshp-product-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #dff0e6;
	color: #1f7a4d;
	font-size: 13px;
	font-weight: 800;
}

/* ---------- כפתור פתיחה קומפקטי ---------- */
.mshp-open-small {
	padding: 7px 15px !important;
	font-size: 13.5px !important;
	border-radius: 8px !important;
}
