/*
 * עיצוב הגיפט קארד של עטופה באהבה.
 * זה הקובץ היחיד שצריך לערוך כדי לשנות את המראה.
 * שנו את הצבעים כאן למעלה והכל יתעדכן.
 */

.atufa-gc {
	/* פלטת המותג של עטופה באהבה: ירוק מרווה לפעולה, בז' חם לרקעים, חום לכותרות */
	--atufa-pink: #5e7d6e;        /* ירוק מרווה - צבע הפעולה הראשי */
	--atufa-pink-strong: #4c6759; /* ירוק כהה יותר ל-hover */
	--atufa-pink-soft: #efe6d8;   /* בז' רך לרקעים עדינים */
	--atufa-beige: #e8d6c0;       /* בז' ראשי */
	--atufa-brown: #625028;       /* חום זית לכותרות */
	--atufa-bg: #faf6f0;          /* קרם בהיר לשדות */
	--atufa-white: #ffffff;
	--atufa-ink: #3a3228;         /* טקסט חם כהה */
	--atufa-muted: #8c8275;       /* טקסט משני חם */
	--atufa-line: #e7ddcf;        /* קו גבול חם */
	--atufa-radius: 18px;
	--atufa-font: inherit;        /* יורש את Assistant מהאתר */
}

/* מיכל וכרטיס */
.atufa-gc,
.atufa-gc-thankyou {
	box-sizing: border-box;
	font-family: var(--atufa-font);
	color: var(--atufa-ink);
	direction: rtl;
	text-align: right;
}
.atufa-gc *,
.atufa-gc *::before,
.atufa-gc *::after {
	box-sizing: border-box;
}

.atufa-gc-form {
	max-width: 540px;
	margin: 0 auto;
	background: var(--atufa-white);
	border: 1px solid var(--atufa-line);
	border-radius: var(--atufa-radius);
	padding: 26px 24px;
	box-shadow: 0 14px 40px rgba(98, 80, 40, 0.10);
}

/* כותרות */
.atufa-gc-head {
	text-align: center;
	margin-bottom: 18px;
}
.atufa-gc-title {
	margin: 0 0 6px;
	font-size: 22px;
	font-weight: 700;
	color: var(--atufa-brown);
}
.atufa-gc-sub {
	margin: 0;
	font-size: 14px;
	line-height: 1.6;
	color: var(--atufa-muted);
}

/* תוויות ושדות */
.atufa-gc-label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	margin: 14px 0 7px;
}
.atufa-gc-input {
	width: 100%;
	padding: 12px 13px;
	border: 1.5px solid var(--atufa-line);
	border-radius: 13px;
	font-size: 15px;
	font-family: inherit;
	color: var(--atufa-ink);
	background: var(--atufa-bg);
	transition: border-color 0.15s, background 0.15s;
}
.atufa-gc-input:focus {
	outline: none;
	border-color: var(--atufa-pink);
	background: var(--atufa-white);
}
textarea.atufa-gc-input {
	resize: vertical;
	min-height: 64px;
}

/* כפתורי סכום */
.atufa-gc-amounts {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 8px;
	margin-bottom: 12px;
}
.atufa-gc-amt {
	border: 1.5px solid var(--atufa-line);
	background: var(--atufa-white);
	border-radius: 13px;
	padding: 12px 4px;
	font-size: 16px;
	font-weight: 700;
	color: var(--atufa-ink);
	cursor: pointer;
	transition: all 0.15s;
}
.atufa-gc-amt:hover {
	border-color: var(--atufa-pink);
}
.atufa-gc-amt.is-active {
	background: var(--atufa-pink);
	border-color: var(--atufa-pink);
	color: var(--atufa-white);
}

/* שורה דו-עמודתית */
.atufa-gc-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

/* מתג מתנה */
.atufa-gc-toggle {
	display: flex;
	align-items: center;
	gap: 9px;
	margin: 16px 0 8px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}
.atufa-gc-toggle input {
	width: auto;
	margin: 0;
}
.atufa-gc-gift[hidden] {
	display: none;
}

/* כפתור שליחה */
.atufa-gc-submit {
	width: 100%;
	border: none;
	border-radius: 14px;
	cursor: pointer;
	background: var(--atufa-pink);
	color: var(--atufa-white);
	font-size: 17px;
	font-weight: 700;
	padding: 15px;
	margin-top: 18px;
	box-shadow: 0 8px 20px rgba(94, 125, 110, 0.30);
	transition: background 0.15s;
}
.atufa-gc-submit:hover {
	background: var(--atufa-pink-strong);
}
.atufa-gc-submit:disabled {
	opacity: 0.6;
	cursor: default;
	box-shadow: none;
}

.atufa-gc-total {
	text-align: center;
	font-size: 14px;
	color: var(--atufa-muted);
	margin-top: 12px;
}
.atufa-gc-total-val {
	color: var(--atufa-pink);
	font-size: 18px;
}

.atufa-gc-secure {
	text-align: center;
	font-size: 12px;
	color: var(--atufa-muted);
	margin: 14px 0 0;
	line-height: 1.6;
}

/* הודעות */
.atufa-gc-msg {
	display: none;
	margin-top: 12px;
	padding: 11px 13px;
	border-radius: 12px;
	font-size: 13.5px;
}
.atufa-gc-msg.is-error {
	display: block;
	background: #fdeaf0;
	color: #c0506b;
	border: 1px solid #f3c9d6;
}
.atufa-gc-msg.is-ok {
	display: block;
	background: #eaf6ef;
	color: #3f9d6d;
	border: 1px solid #c7e8d6;
}

/* מלכודת בוטים והודעות מערכת */
.atufa-gc-hp {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.atufa-gc-notice {
	max-width: 540px;
	margin: 0 auto;
	padding: 14px 16px;
	border-radius: 12px;
	background: var(--atufa-pink-soft);
	color: var(--atufa-ink);
	text-align: center;
	font-size: 14px;
}

/* דף תודה */
.atufa-gc-thankyou {
	--atufa-pink: #5e7d6e;
	--atufa-brown: #625028;
	--atufa-ink: #3a3228;
	--atufa-muted: #8c8275;
	max-width: 560px;
	margin: 0 auto;
	text-align: center;
	padding: 8px;
}
.atufa-gc-ty-title {
	font-size: 24px;
	font-weight: 700;
	margin: 0 0 10px;
	color: var(--atufa-brown);
}
.atufa-gc-ty-text {
	font-size: 16px;
	line-height: 1.7;
	color: var(--atufa-muted);
	margin: 0 0 18px;
}
.atufa-gc-ty-amount,
.atufa-gc-ty-ref {
	font-size: 16px;
	margin: 6px 0;
}
.atufa-gc-ty-amount strong,
.atufa-gc-ty-ref strong {
	color: var(--atufa-pink);
}
.atufa-gc-ty-actions {
	margin-top: 22px;
	display: flex;
	gap: 10px;
	justify-content: center;
	flex-wrap: wrap;
}
.atufa-gc-ty-btn {
	display: inline-block;
	background: var(--atufa-pink);
	color: #fff;
	text-decoration: none;
	border-radius: 13px;
	padding: 12px 22px;
	font-weight: 700;
	font-size: 15px;
}
.atufa-gc-ty-btn.is-secondary {
	background: transparent;
	color: var(--atufa-pink);
	border: 1.5px solid var(--atufa-pink);
}

/* מצב ממתין */
.atufa-gc-spinner {
	width: 38px;
	height: 38px;
	margin: 0 auto 16px;
	border: 4px solid var(--atufa-pink-soft, #f6dbe8);
	border-top-color: var(--atufa-pink);
	border-radius: 50%;
	animation: atufa-spin 0.9s linear infinite;
}
@keyframes atufa-spin {
	to {
		transform: rotate(360deg);
	}
}

@media (max-width: 480px) {
	.atufa-gc-row {
		grid-template-columns: 1fr;
	}
	.atufa-gc-amounts {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* ============================================================
 * מחלקות עזר לדף תודה שנבנה ב-Elementor (שורטקודי שדה)
 * ============================================================ */
.atufa-ty-card {
	background: #f3e9dc;
	border: 1px solid #e7ddcf;
	border-radius: 18px;
	padding: 26px 28px;
	max-width: 540px;
	margin: 8px auto;
	text-align: center;
}
.atufa-ty-row {
	font-size: 18px;
	line-height: 2;
	color: #3a3228;
	margin: 4px 0;
}
.atufa-ty-row strong {
	color: #625028;
	font-weight: 700;
}
.atufa-ty-actions {
	text-align: center;
	margin: 22px 0 4px;
}
.atufa-ty-actions a {
	display: inline-block;
	background: #5e7d6e;
	color: #ffffff;
	text-decoration: none;
	border-radius: 13px;
	padding: 13px 26px;
	font-weight: 700;
	font-size: 15px;
	margin: 6px;
	box-shadow: 0 8px 20px rgba(94, 125, 110, 0.30);
}
.atufa-ty-actions a:hover {
	background: #4c6759;
}

/* ============================================================
 * ביטול ה-hover הוורוד של אלמנטור על הכפתורים (קישורים) של דף התודה
 * ============================================================ */
.atufa-gc-thankyou .atufa-gc-ty-btn:hover,
.atufa-ty-actions a:hover,
.atufa-ty-actions a:focus {
	background: #4c6759 !important;
	color: #ffffff !important;
	border-color: #4c6759 !important;
}
.atufa-gc-thankyou .atufa-gc-ty-btn.is-secondary:hover,
.atufa-gc-thankyou .atufa-gc-ty-btn.is-secondary:focus {
	background: #5e7d6e !important;
	color: #ffffff !important;
	border-color: #5e7d6e !important;
}

/* hover על כפתורי הסכום (לבקשת הלקוח) */
.atufa-gc-amounts button:hover {
	background-color: #5e7d6e !important;
}
