/* Promotop – מתנה על הרשמה לדיוור */
.pto-overlay {
	--pto-main: #2f4a2b;      /* צבע ראשי – לשנות לצבע המותג */
	--pto-main-hover: #243a21;
	--pto-accent: #d4a017;
	position: fixed; inset: 0; z-index: 999999;
	background: rgba(0, 0, 0, .55);
	display: flex; align-items: center; justify-content: center;
	padding: 16px; direction: rtl; font-family: inherit;
	opacity: 0; transition: opacity .2s;
}
.pto-overlay.pto-in { opacity: 1; }
body.pto-lock { overflow: hidden; }

.pto-box {
	position: relative; background: #fff; border-radius: 16px;
	width: 100%; max-width: 460px; max-height: 92vh; overflow-y: auto;
	padding: 28px 22px 22px; box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
	text-align: center; color: #222;
	transform: translateY(12px); transition: transform .2s;
}
.pto-in .pto-box { transform: none; }
.pto-x {
	position: absolute; top: 8px; left: 10px; background: none; border: 0;
	font-size: 28px; line-height: 1; color: #888; cursor: pointer; padding: 4px 8px;
}
.pto-x:hover { color: #222; }

.pto-gift { font-size: 46px; line-height: 1; margin-bottom: 8px; }
.pto-title { margin: 0 0 6px; font-size: 21px; font-weight: 800; color: #111; }
.pto-sub { margin: 0 0 16px; font-size: 15px; color: #555; line-height: 1.5; }
.pto-big { font-size: 17px; color: #222; }
.pto-ok { color: #1a7f37; font-weight: 700; margin-bottom: 8px; }

.pto-form { display: flex; flex-direction: column; gap: 10px; text-align: right; }
.pto-in {
	width: 100%; box-sizing: border-box; padding: 12px 14px; font-size: 16px;
	border: 1px solid #ccc; border-radius: 10px; background: #fafafa;
}
.pto-in[dir="ltr"] { text-align: right; }
.pto-in:focus { outline: none; border-color: var(--pto-main); background: #fff; }
.pto-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.pto-consent { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: #444; line-height: 1.45; cursor: pointer; }
.pto-consent input { margin-top: 3px; flex: none; width: 18px; height: 18px; accent-color: var(--pto-main); }
.pto-err { color: #c62828; font-size: 14px; min-height: 1em; text-align: center; }

.pto-btn {
	display: block; width: 100%; padding: 14px; border: 0; border-radius: 10px;
	background: var(--pto-main); color: #fff; font-size: 17px; font-weight: 700;
	cursor: pointer; transition: background .15s; margin-top: 4px;
}
.pto-btn:hover { background: var(--pto-main-hover); }
.pto-btn:disabled { opacity: .7; cursor: default; }
.pto-link {
	background: none; border: 0; color: #777; text-decoration: underline;
	font-size: 14px; margin-top: 12px; cursor: pointer; padding: 4px;
}
.pto-back {
	display: block; background: none; border: 0; color: var(--pto-main);
	font-size: 14px; cursor: pointer; padding: 0 0 8px; font-weight: 600;
}

.pto-types { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0 4px; }
.pto-type {
	display: flex; flex-direction: column; align-items: center; gap: 8px;
	padding: 22px 10px; border: 2px solid #e3e3e3; border-radius: 14px;
	background: #fff; cursor: pointer; transition: border-color .15s, transform .15s;
}
.pto-type:hover { border-color: var(--pto-main); transform: translateY(-2px); }
.pto-type-ico { font-size: 40px; line-height: 1; }
.pto-type-lbl { font-size: 17px; font-weight: 700; color: #222; }

.pto-search { margin-bottom: 10px; }
.pto-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pto-hdr { grid-column: 1 / -1; text-align: right; font-weight: 700; font-size: 14px; color: var(--pto-main); margin-top: 6px; }
.pto-item {
	display: flex; flex-direction: column; align-items: center; gap: 6px;
	padding: 6px; border: 2px solid #eee; border-radius: 12px; background: #fff; cursor: pointer;
}
.pto-item:hover { border-color: var(--pto-main); }
.pto-item img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 8px; background: #f6f6f6; }
.pto-item-name { font-size: 12px; line-height: 1.3; color: #333; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.pto-big-img { width: 100%; max-width: 260px; aspect-ratio: 1; object-fit: contain; border-radius: 12px; background: #f6f6f6; margin: 0 auto 12px; display: block; }
.pto-price { display: flex; gap: 10px; justify-content: center; align-items: baseline; margin-bottom: 14px; }
.pto-price s { color: #999; font-size: 16px; }
.pto-price b { color: #c62828; font-size: 26px; font-weight: 800; }

.pto-spin {
	width: 34px; height: 34px; margin: 24px auto; border-radius: 50%;
	border: 4px solid #eee; border-top-color: var(--pto-main); animation: pto-spin .8s linear infinite;
}
@keyframes pto-spin { to { transform: rotate(360deg); } }

@media (max-width: 480px) {
	.pto-overlay { align-items: flex-end; padding: 0; }
	.pto-box { border-radius: 16px 16px 0 0; max-height: 90vh; }
	.pto-grid { grid-template-columns: repeat(2, 1fr); }
}
