/* OR WC Terms Modal — styled to match ortalraisman.co.il
 *
 * Site color tokens:
 *   #272c6d  deep navy    — header, headings, primary action
 *   #4a80ec  royal blue   — links, accent, checkbox
 *   #f1653c  orange       — secondary accent, warning border
 *   #ed3237  red          — penalty text, alerts
 *   #3a3a3a  charcoal     — primary body text
 *   #4B4F58  medium gray  — secondary text
 *   #e7e7e7  light gray   — borders
 */

/* ── Overlay ───────────────────────────────────────────────────── */
.or-wctm-overlay {
	position: fixed;
	inset: 0;
	background: rgba(39, 44, 109, 0.65);
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	direction: rtl;
}

body.or-wctm-open {
	overflow: hidden;
}

/* ── Dialog ────────────────────────────────────────────────────── */
.or-wctm-dialog {
	background: #fff;
	border-radius: 6px;
	max-width: 520px;
	width: 92%;
	max-height: 90vh;
	overflow-y: auto;
	box-shadow: 0 8px 40px rgba(39, 44, 109, 0.22), 0 2px 10px rgba(0, 0, 0, 0.08);
	font-family: Lato, Roboto, sans-serif;
}

/* ── Header — navy matching the site navigation bar ───────────── */
.or-wctm-dialog .modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 13px 20px;
	background: #272c6d;
	border-radius: 6px 6px 0 0;
}

.or-wctm-dialog .modal-title {
	font-size: 1rem;
	font-weight: 700;
	margin: 0;
	color: #fff;
	font-family: Lato, Roboto, sans-serif;
	letter-spacing: 0.02em;
}

.or-wctm-dialog .btn-close {
	background: none;
	border: none;
	cursor: pointer;
	color: rgba(255, 255, 255, 0.75);
	font-size: 1.6rem;
	line-height: 1;
	padding: 0 4px;
	transition: color 0.15s;
	font-family: Arial, sans-serif;
}

.or-wctm-dialog .btn-close::before {
	content: '\00D7';
}

.or-wctm-dialog .btn-close:hover {
	color: #fff;
}

/* ── Body ──────────────────────────────────────────────────────── */
.or-wctm-dialog .modal-body {
	padding: 20px 24px 26px;
}

/* ── Scoped spacing utilities ──────────────────────────────────── */
.or-wctm-dialog .mb-1 { margin-bottom: 6px; }
.or-wctm-dialog .mb-2 { margin-bottom: 14px; }
.or-wctm-dialog .mt-1 { margin-top: 12px; }

/* ── Icon / image area ─────────────────────────────────────────── */
.or-wctm-dialog .w-h {
	text-align: center;
	font-size: 2.4rem;
	color: #4a80ec;
}

/* ── Privacy section title ─────────────────────────────────────── */
.or-wctm-dialog .w-h-title {
	text-align: center;
	font-size: 1.05rem;
	font-weight: 700;
	color: #272c6d;
	letter-spacing: 0.01em;
}

/* ── Content area ──────────────────────────────────────────────── */
.or-wctm-dialog .w-h-content {
	font-size: 0.92rem;
	line-height: 1.75;
	color: #3a3a3a;
}

/* ── Checkbox + agreement row ──────────────────────────────────── */
.or-wctm-dialog .d-flex { display: flex; }

.or-wctm-dialog .wh-flex {
	gap: 10px;
	align-items: flex-start;
	margin-bottom: 14px;
	padding: 11px 13px;
	background: #f8fafc;
	border: 1px solid #e7e7e7;
	border-radius: 4px;
}

.or-wctm-dialog .wh-flex input[type="checkbox"] {
	flex-shrink: 0;
	margin-top: 4px;
	width: 15px;
	height: 15px;
	accent-color: #4a80ec;
	cursor: default;
}

/* ── Penalty text (red) ────────────────────────────────────────── */
.or-wctm-dialog .w-red {
	color: #ed3237;
	font-weight: 700;
}

/* ── Warning box — orange accent matching site's secondary color ─ */
.or-wctm-dialog .w-yellow {
	background: #fff8f3;
	border: 1px solid #f1d0c2;
	border-right: 4px solid #f1653c;
	border-radius: 4px;
	padding: 12px 14px 12px 12px;
	margin-top: 4px;
	font-size: 0.88rem;
	color: #3a3a3a;
}

.or-wctm-dialog .w-ul {
	margin: 6px 0 0;
	padding-right: 18px;
	list-style-type: disc;
	color: #4B4F58;
}

.or-wctm-dialog .w-ul li {
	margin-bottom: 5px;
}

/* ── Signature box — navy palette ──────────────────────────────── */
.or-wctm-dialog .w-blue {
	background: #eef3fd;
	border: 1px solid #c3d4f8;
	border-radius: 4px;
	padding: 12px 16px;
	margin-top: 12px;
	font-size: 0.9rem;
	font-weight: 700;
	color: #272c6d;
	text-align: center;
	line-height: 1.55;
}

/* ── Agree button — navy, matching site header/nav ─────────────── */
.or-wctm-dialog .w-btn {
	margin-top: 16px;
}

.or-wctm-dialog .wctm-agree-btn {
	display: block;
	width: 100%;
	background: #272c6d;
	color: #fff;
	border: none;
	border-radius: 4px;
	padding: 12px 24px;
	font-size: 0.95rem;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.2s, transform 0.1s;
	text-align: center;
	font-family: Lato, Roboto, sans-serif;
	letter-spacing: 0.02em;
}

.or-wctm-dialog .wctm-agree-btn:hover {
	background: #1e2255;
}

.or-wctm-dialog .wctm-agree-btn:active {
	transform: scale(0.985);
}

/* ── Links ─────────────────────────────────────────────────────── */
.or-wctm-dialog .modal-body a {
	color: #4a80ec;
	text-decoration: underline;
}

.or-wctm-dialog .modal-body a:hover {
	color: #004de5;
}

/* ── Custom icon image ─────────────────────────────────────────── */
.or-wctm-dialog .or-wctm-icon-img {
	max-width: 60px;
	max-height: 60px;
	object-fit: contain;
}

/* ── Login modal: close button hidden, dismiss locked ──────────── */
.or-wctm-no-close .btn-close {
	display: none;
}

/* ── Checkbox validation error ─────────────────────────────────── */
.or-wctm-dialog .wh-flex.or-wctm-error {
	border-color: #ed3237;
	background: #fff5f5;
}

.or-wctm-dialog .or-wctm-error-msg {
	color: #ed3237;
	font-size: 0.82rem;
	font-weight: 600;
	margin: -8px 0 10px;
	text-align: right;
}
