/* ═══════════════════════════════════════════
   MyMuse OTP Login – עיצוב משותף למועדון
   הצבעים מוזרקים כמשתני CSS מהגדרות הפלאגין
   ═══════════════════════════════════════════ */

.mmol-card {
	max-width: var(--mmol-width, 420px);
	margin: 2rem auto;
	padding: 2rem 1.75rem;
	background: #fff;
	border: 1px solid #eee;
	border-radius: calc(var(--mmol-radius, 6px) * 2);
	box-shadow: 0 6px 24px rgba(0, 0, 0, .07);
	font-family: inherit;
	direction: rtl;
	box-sizing: border-box;
}
.mmol-card *, .mmol-card *::before, .mmol-card *::after { box-sizing: border-box; }

.mmol-card h3 {
	margin: 0 0 .3rem;
	font-size: 1.45rem;
}
.mmol-desc {
	color: #555;
	font-size: .95rem;
	margin: 0 0 1.25rem;
}

/* ── שדות ── */
.mmol-field { margin-bottom: .9rem; }
.mmol-field label {
	display: block;
	font-weight: 600;
	margin-bottom: .3rem;
	font-size: .92rem;
}
.mmol-input {
	width: 100%;
	padding: .62rem .8rem;
	font-size: 1rem;
	border: 1.5px solid #d5d5d5;
	border-radius: var(--mmol-radius, 6px);
	background: #fff;
	transition: border-color .15s;
}
.mmol-input:focus {
	border-color: var(--mmol-primary, #0073aa);
	outline: none;
}
.mmol-ltr { direction: ltr; text-align: center; }
.mmol-otp-input { letter-spacing: .3rem; font-size: 1.2rem; }

/* שניים בשורה (שם פרטי + משפחה) */
.mmol-row {
	display: flex;
	gap: .75rem;
}
.mmol-row .mmol-field { flex: 1; }
@media (max-width: 480px) {
	.mmol-row { flex-direction: column; gap: 0; }
	.mmol-card { padding: 1.5rem 1.15rem; margin: 1rem auto; }
}

/* ── בחירת ערוץ ── */
.mmol-channel-label { font-weight: 600; margin: 1rem 0 .4rem; font-size: .92rem; }
.mmol-channels { display: flex; gap: .5rem; }
.mmol-channel {
	flex: 1;
	text-align: center;
	padding: .55rem .4rem;
	border: 1.5px solid #d5d5d5;
	border-radius: var(--mmol-radius, 6px);
	cursor: pointer;
	font-weight: 500;
	transition: all .15s;
	user-select: none;
	font-size: .95rem;
}
.mmol-channel input { display: none; }
.mmol-channel.is-active {
	border-color: var(--mmol-primary, #0073aa);
	color: var(--mmol-primary, #0073aa);
	background: color-mix(in srgb, var(--mmol-primary, #0073aa) 9%, #fff);
	font-weight: 700;
}

/* ── צ'קבוקסים (תקנון, דיוור) ── */
.mmol-check {
	display: flex;
	align-items: flex-start;
	gap: .5rem;
	margin: .65rem 0;
	font-size: .9rem;
	color: #444;
	cursor: pointer;
}
.mmol-check input {
	margin-top: .2rem;
	accent-color: var(--mmol-primary, #0073aa);
	width: 1rem;
	height: 1rem;
	flex-shrink: 0;
}
.mmol-check a { color: var(--mmol-primary, #0073aa); }

/* ── כפתורים ── */
.mmol-btn {
	width: 100%;
	margin-top: .9rem;
	padding: .75rem 1rem;
	background: var(--mmol-primary, #0073aa);
	color: var(--mmol-btn-text, #fff);
	border: none;
	border-radius: var(--mmol-radius, 6px);
	font-size: 1.05rem;
	font-weight: 600;
	cursor: pointer;
	transition: opacity .2s;
	font-family: inherit;
}
.mmol-btn:hover    { background: var(--mmol-hover, #005a87); }
.mmol-btn:disabled { background: #aaa; cursor: default; }

.mmol-btn-ghost {
	width: auto;
	background: none;
	border: 1.5px solid #d5d5d5;
	color: #555;
	padding: .45rem 1rem;
	border-radius: var(--mmol-radius, 6px);
	font-size: .9rem;
	cursor: pointer;
	transition: all .15s;
	font-family: inherit;
}
.mmol-btn-ghost:hover {
	border-color: var(--mmol-primary, #0073aa);
	color: var(--mmol-primary, #0073aa);
}

.mmol-link-btn {
	background: none;
	border: none;
	padding: 0;
	color: var(--mmol-primary, #0073aa);
	font-size: .9rem;
	cursor: pointer;
	text-decoration: underline;
	font-family: inherit;
}
.mmol-link-btn:disabled { color: #999; cursor: default; text-decoration: none; }

/* ── הודעות ── */
.mmol-error   { color: #c00; margin-top: .5rem; min-height: 1.2em; font-size: .92rem; }
.mmol-success { color: #2a6e00; font-size: 1.1rem; font-weight: 600; }
.mmol-notice  { color: #2a6e00; font-size: .92rem; margin-top: .5rem; min-height: 1.2em; }
.mmol-resend  { text-align: center; margin-top: .75rem; }
.mmol-bottom-link {
	text-align: center;
	margin: 1.1rem 0 0;
	padding-top: 1rem;
	border-top: 1px solid #f0f0f0;
	font-size: .92rem;
	color: #555;
}
.mmol-bottom-link a { color: var(--mmol-primary, #0073aa); font-weight: 600; }

/* ═══════════════════════════════════════════
   פופאפ צדדי (Drawer) להתחברות/הרשמה
   ═══════════════════════════════════════════ */
.mmol-popup-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, .45);
	z-index: 99998;
	opacity: 0;
	pointer-events: none;
	transition: opacity .25s ease;
}
.mmol-popup-overlay.is-open {
	opacity: 1;
	pointer-events: auto;
}
.mmol-popup {
	position: fixed;
	top: 0;
	bottom: 0;
	right: 0;
	width: 420px;
	max-width: 94vw;
	background: #fff;
	z-index: 99999;
	transform: translateX(100%);
	transition: transform .3s ease;
	overflow-y: auto;
	box-shadow: -8px 0 30px rgba(0, 0, 0, .18);
	direction: rtl;
}
.mmol-popup.is-open { transform: translateX(0); }
body.mmol-popup-lock { overflow: hidden; }

/* פתיחה מצד שמאל (כשהתפריט של האתר בצד ימין) */
.mmol-popup.mmol-popup--left {
	right: auto;
	left: 0;
	transform: translateX(-100%);
	box-shadow: 8px 0 30px rgba(0, 0, 0, .18);
}
.mmol-popup.mmol-popup--left.is-open { transform: translateX(0); }
.mmol-popup.mmol-popup--left .mmol-popup-close {
	left: auto;
	right: .8rem;
}

.mmol-popup-close {
	position: absolute;
	top: .6rem;
	left: .8rem;
	background: none;
	border: none;
	font-size: 2rem;
	line-height: 1;
	color: #333;
	cursor: pointer;
	padding: .25rem .5rem;
	z-index: 2;
}
.mmol-popup-close:hover { color: #000; }

.mmol-popup-inner { padding: 2.5rem 0 2rem; }

/* בתוך הפופאפ – הכרטיס שטוח, בלי צל ומסגרת */
.mmol-popup .mmol-card {
	box-shadow: none;
	border: none;
	margin: 0 auto;
	max-width: 100%;
	padding: 1rem 1.75rem 1.5rem;
}

/* ═══════════════════════════════════════════
   החשבון שלי
   ═══════════════════════════════════════════ */
.mmol-account {
	max-width: 680px;
	margin: 2rem auto;
	direction: rtl;
	font-family: inherit;
}
.mmol-account-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: .75rem;
	margin-bottom: 1.25rem;
}
.mmol-account-header h2 { margin: 0; font-size: 1.6rem; }
.mmol-member-since { color: #777; font-size: .88rem; margin: .2rem 0 0; }

.mmol-panel {
	background: #fff;
	border: 1px solid #eee;
	border-radius: calc(var(--mmol-radius, 6px) * 2);
	box-shadow: 0 4px 16px rgba(0, 0, 0, .05);
	padding: 1.5rem 1.5rem 1.25rem;
	margin-bottom: 1.25rem;
	box-sizing: border-box;
}
.mmol-panel *, .mmol-panel *::before, .mmol-panel *::after { box-sizing: border-box; }
.mmol-panel > h3 {
	margin: 0 0 1rem;
	font-size: 1.15rem;
}

/* טלפון נוכחי + שינוי */
.mmol-phone-line {
	display: flex;
	align-items: center;
	gap: .75rem;
	flex-wrap: wrap;
}
.mmol-phone-current {
	direction: ltr;
	font-weight: 600;
	font-size: 1.05rem;
}
.mmol-phone-verified {
	color: #2a6e00;
	font-size: .85rem;
}
#mmol-phone-change-form { margin-top: 1rem; }

/* טבלת הזמנות */
.mmol-orders { width: 100%; border-collapse: collapse; font-size: .92rem; }
.mmol-orders th {
	text-align: right;
	color: #777;
	font-weight: 600;
	padding: .45rem .5rem;
	border-bottom: 2px solid #f0f0f0;
}
.mmol-orders td {
	padding: .55rem .5rem;
	border-bottom: 1px solid #f5f5f5;
}
.mmol-order-status {
	display: inline-block;
	padding: .15rem .6rem;
	border-radius: 99px;
	font-size: .8rem;
	background: #f2f2f2;
	color: #555;
	white-space: nowrap;
}
.mmol-order-status.is-completed  { background: #e6f4e6; color: #2a6e00; }
.mmol-order-status.is-processing { background: color-mix(in srgb, var(--mmol-primary, #0073aa) 12%, #fff); color: var(--mmol-primary, #0073aa); }
.mmol-order-status.is-cancelled,
.mmol-order-status.is-failed     { background: #fbeaea; color: #b32d2e; }
.mmol-empty { color: #777; font-size: .92rem; }

@media (max-width: 560px) {
	.mmol-orders thead { display: none; }
	.mmol-orders tr {
		display: block;
		border-bottom: 1px solid #eee;
		padding: .5rem 0;
	}
	.mmol-orders td {
		display: flex;
		justify-content: space-between;
		border: none;
		padding: .2rem .25rem;
	}
	.mmol-orders td::before {
		content: attr(data-label);
		color: #777;
		font-weight: 600;
	}
}

/* ── [otp_button] – כפתור שפותח את הפופאפ ── */
.mmol-cta { margin: 1.25rem 0; }
.mmol-cta--right  { text-align: right; }
.mmol-cta--center { text-align: center; }
.mmol-cta--left   { text-align: left; }
.mmol-cta-intro {
	margin: 0 0 .75rem;
	font-weight: 700;
}
/* ספציפיות כפולה + !important לצבע: ערכות נושא/ווקומרס צובעות קישורים בעמוד המוצר */
.mmol-cta a.mmol-cta-btn,
.mmol-cta a.mmol-cta-btn:visited {
	display: inline-block;
	padding: .55rem 1.3rem;
	background: var(--mmol-cta-bg, #000) !important;
	color: var(--mmol-cta-color, #fff) !important;
	border: none;
	border-radius: 4px;
	font-size: .9rem;
	font-weight: 700;
	line-height: 1.4;
	text-decoration: none !important;
	transition: opacity .2s;
}
.mmol-cta a.mmol-cta-btn:hover,
.mmol-cta a.mmol-cta-btn:focus {
	background: var(--mmol-cta-bg, #000) !important;
	opacity: .85;
	color: var(--mmol-cta-color, #fff) !important;
}
