/* مولّد رابط واتساب — تصميم مدمج مستوحى من Tailwind */

.wag-page {
	max-width: 960px;
}

.wag-hero {
	text-align: center;
	padding: 16px 12px 12px;
	margin: 0 0 12px;
}

.wag-hero__badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #dcfce7;
	color: #15803d;
	font-size: 0.72rem;
	font-weight: 800;
	padding: 4px 10px;
	border-radius: 9999px;
	margin-bottom: 10px;
	border: 1px solid #bbf7d0;
}

.wag-hero__title {
	margin: 0 0 8px;
	font-size: 1.45rem;
	font-weight: 800;
	color: #15803d;
	line-height: 1.35;
}

.wag-hero__lead {
	margin: 0 auto;
	max-width: 520px;
	font-size: 0.9rem;
	line-height: 1.65;
	color: #4b5563;
}

.wag-hero__geo {
	margin: 8px 0 0;
	font-size: 0.78rem;
	color: #6b7280;
}

.wag-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
	margin-bottom: 12px;
}

@media (min-width: 768px) {
	.wag-grid {
		grid-template-columns: 1fr 1fr;
		align-items: start;
	}
}

.wag-card {
	overflow: visible;
}

.wag-card__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 12px 14px;
	border-bottom: 1px solid #f3f4f6;
	background: #fafafa;
}

.wag-card__title {
	margin: 0;
	font-size: 0.92rem;
	font-weight: 800;
	color: #111827;
}

.wag-card__body {
	padding: 14px;
}

.wag-badge {
	font-size: 0.7rem;
	font-weight: 700;
	padding: 3px 8px;
	border-radius: 9999px;
	background: #ecfdf5;
	color: #15803d;
	border: 1px solid #bbf7d0;
	white-space: nowrap;
}

.wag-badge--plain {
	background: #f3f4f6;
	color: #4b5563;
	border-color: #e5e7eb;
}

.wag-form {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.wag-form__field {
	margin-bottom: 14px;
}

.wag-form__field:last-of-type {
	margin-bottom: 0;
}

.wag-form__label {
	display: block;
	font-size: 0.82rem;
	font-weight: 700;
	color: #374151;
	margin-bottom: 6px;
}

.wag-form__label-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 6px;
}

.wag-form__label-row .wag-form__label {
	margin-bottom: 0;
}

.wag-form__optional {
	font-size: 0.72rem;
	font-weight: 600;
	color: #9ca3af;
	background: #f3f4f6;
	padding: 2px 8px;
	border-radius: 9999px;
}

.wag-form__hint {
	margin: 5px 0 0;
	font-size: 0.75rem;
	color: #9ca3af;
	line-height: 1.5;
}

.wag-form__error {
	margin: 6px 0 0;
	font-size: 0.78rem;
	color: #dc2626;
	font-weight: 600;
}

.wag-form__textarea {
	width: 100%;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 10px 12px;
	font-size: 0.88rem;
	color: #111827;
	background: #fff;
	font-family: inherit;
	resize: vertical;
	min-height: 72px;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.wag-form__textarea:focus {
	outline: none;
	border-color: #16a34a;
	box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.12);
}

.wag-form__actions {
	margin-top: 14px;
}

.wag-form__phone {
	width: 100%;
}
input#wag-phone {
    padding-left: 85px;
}
.wag-phone-wrap,
.wag-phone-wrap .iti {
	direction: ltr;
	text-align: left;
}

.wag-phone-wrap .iti__country-container {
	left: 0 !important;
	right: auto !important;
}

.wag-phone-wrap .iti__arrow {
	margin-left: var(--iti-arrow-padding, 6px);
	margin-right: 0;
}

.wag-phone-wrap .iti .iti__selected-dial-code {
	margin-left: 4px;
	margin-right: 0;
}

.wag-phone-wrap .iti__country-list .iti__flag,
.wag-phone-wrap .iti__country-name {
	margin-right: var(--iti-spacer-horizontal, 8px);
	margin-left: 0;
}

.wag-phone-wrap .iti__dropdown-content:has(.iti__search-input:placeholder-shown) .iti__country[data-iso2="km"] {
	border-bottom: 1px solid var(--iti-border-color, #ccc);
}

/* intl-tel-input overrides */
.wag-form .iti {
	width: 100%;
	display: block;
}

.wag-form .iti__tel-input {
	width: 100%;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 10px 12px 10px 52px;
	font-size: 0.9rem;
	color: #111827;
	background: #fff;
	font-family: inherit;
	direction: ltr;
	text-align: left;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.wag-form .iti__tel-input:focus {
	outline: none;
	border-color: #16a34a;
	box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.12);
}

.wag-phone-wrap .iti--separate-dial-code .iti__tel-input {
	padding-left: 88px;
	padding-right: 12px;
}

.wag-form .iti__country-container {
	border-radius: 8px 0 0 8px;
}

.wag-form .iti--allow-dropdown .iti__country-container:hover {
	background: #f9fafb;
}

.wag-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 38px;
	padding: 8px 14px;
	border: 0;
	border-radius: 8px;
	font-size: 0.86rem;
	font-weight: 700;
	font-family: inherit;
	cursor: pointer;
	transition: background 0.2s, opacity 0.2s, border-color 0.2s;
	text-decoration: none;
}

.wag-btn--primary {
	width: 100%;
	background: #16a34a;
	color: #fff;
}

.wag-btn--primary:hover {
	background: #15803d;
}

.wag-btn--whatsapp {
	flex: 1;
	background: #25d366;
	color: #fff;
}

.wag-btn--whatsapp:hover {
	background: #1da851;
}

.wag-btn--outline {
	flex: 1;
	background: #fff;
	color: #374151;
	border: 1px solid #e5e7eb;
}

.wag-btn--outline:hover {
	background: #f9fafb;
	border-color: #d1d5db;
}

.wag-btn--icon {
	flex-shrink: 0;
	width: 38px;
	padding: 0;
	background: #f3f4f6;
	color: #374151;
	border: 1px solid #e5e7eb;
}

.wag-btn--icon:hover {
	background: #e5e7eb;
}

.wag-result-empty {
	text-align: center;
	padding: 20px 12px;
	color: #9ca3af;
}

.wag-result-empty__icon {
	font-size: 1.6rem;
	margin-bottom: 8px;
	opacity: 0.7;
}

.wag-result-empty p {
	margin: 0;
	font-size: 0.84rem;
	line-height: 1.6;
}

.wag-result__row {
	display: flex;
	gap: 6px;
	align-items: stretch;
	margin-bottom: 10px;
}

.wag-result__input {
	flex: 1;
	min-width: 0;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 9px 10px;
	font-size: 0.78rem;
	color: #111827;
	background: #f9fafb;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.wag-result__actions {
	display: flex;
	gap: 8px;
}

.wag-toast {
	margin: 8px 0 0;
	font-size: 0.78rem;
	font-weight: 700;
	color: #15803d;
	text-align: center;
}

.wag-tips {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
}

@media (min-width: 640px) {
	.wag-tips {
		grid-template-columns: repeat(3, 1fr);
	}
}

.wag-tip {
	padding: 12px;
	text-align: center;
}

.wag-tip__icon {
	display: block;
	font-size: 1.2rem;
	margin-bottom: 6px;
}

.wag-tip__title {
	margin: 0 0 4px;
	font-size: 0.82rem;
	font-weight: 800;
	color: #111827;
}

.wag-tip__desc {
	margin: 0;
	font-size: 0.74rem;
	line-height: 1.55;
	color: #6b7280;
}

@media (prefers-color-scheme: dark) {
	.wag-hero__badge {
		background: rgba(22, 163, 74, 0.15);
		border-color: rgba(22, 163, 74, 0.3);
		color: #34d399;
	}

	.wag-hero__title {
		color: #34d399;
	}

	.wag-hero__lead,
	.wag-hero__geo {
		color: #9ca3af;
	}

	.wag-card__head {
		background: #1f2937;
		border-color: #374151;
	}

	.wag-card__title,
	.wag-tip__title {
		color: #f3f4f6;
	}

	.wag-form__label {
		color: #d1d5db;
	}

	.wag-form__textarea,
	.wag-form .iti__tel-input,
	.wag-result__input {
		background: #111827;
		border-color: #374151;
		color: #f3f4f6;
	}

	.wag-btn--outline {
		background: #1f2937;
		border-color: #374151;
		color: #d1d5db;
	}

	.wag-btn--icon {
		background: #374151;
		border-color: #4b5563;
		color: #e5e7eb;
	}

	.wag-tip__desc {
		color: #9ca3af;
	}
}
