/* Ajans Site – eklentiye ait ön yüz bileşenleri (temadan bağımsız çalışır). */

/* Form: bot tuzağı ve durum mesajları ------------------------------- */
.ajans-form__hp {
	height: 1px;
	left: -10000px;
	overflow: hidden;
	position: absolute;
	width: 1px;
}

.ajans-form__status:empty {
	display: none;
}

.ajans-form__status {
	border-radius: var(--radius, 8px);
	margin-top: 16px;
	padding: 12px 16px;
}

.ajans-form__status:focus {
	outline: none;
}

.ajans-form__status.is-ok {
	background: var(--color-primary-soft, #eef5e6);
	border: 1px solid var(--color-primary, #448e00);
	color: var(--color-heading, #0f1d14);
}

.ajans-form__status.is-error {
	background: #fdf0ef;
	border: 1px solid #c4382f;
	color: #8c1d16;
}

.ajans-form__status.is-loading {
	color: var(--color-muted, #5f6d64);
}

.ajans-field__error {
	color: #b3261e;
	font-size: .875em;
	margin: 6px 0 0;
}

[aria-invalid="true"] {
	border-color: #c4382f !important;
}

/* WhatsApp butonu ---------------------------------------------------- */
.ajans-wa {
	align-items: center;
	background: #1f9e55;
	border-radius: 999px;
	bottom: max(16px, env(safe-area-inset-bottom));
	box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
	color: #fff;
	display: inline-flex;
	gap: 10px;
	height: 56px;
	justify-content: center;
	min-width: 56px;
	padding: 0 16px;
	position: fixed;
	text-decoration: none;
	z-index: 90;
}

.ajans-wa--right {
	right: 16px;
}

.ajans-wa--left {
	left: 16px;
}

.ajans-wa:hover,
.ajans-wa:focus-visible {
	background: #16804a;
	color: #fff;
}

.ajans-wa:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 2px;
	box-shadow: 0 0 0 6px #16804a;
}

.ajans-wa__label {
	display: none;
	font-weight: 600;
}

.ajans-wa__label:empty {
	display: none !important;
}

@media (min-width: 768px) {
	.ajans-wa {
		bottom: 24px;
		padding: 0 20px 0 16px;
	}

	.ajans-wa--right {
		right: 24px;
	}

	.ajans-wa--left {
		left: 24px;
	}

	.ajans-wa__label {
		display: inline;
	}
}

/* Çerez onay bandı -------------------------------------------------- */
.ajans-consent {
	background: var(--color-card, #fff);
	border: 1px solid var(--color-border, #dbe3d5);
	border-radius: var(--radius-card, 14px);
	bottom: 12px;
	box-shadow: 0 18px 50px rgba(0, 0, 0, .18);
	color: var(--color-text, #2c3830);
	display: grid;
	gap: 14px;
	left: 12px;
	max-width: 560px;
	padding: 18px 20px;
	position: fixed;
	right: 12px;
	z-index: 100;
}

.ajans-consent[hidden] {
	display: none;
}

.ajans-consent__title {
	color: var(--color-heading, #0f1d14);
	font-weight: 700;
	margin: 0 0 4px;
}

.ajans-consent__text {
	font-size: .92em;
	margin: 0;
}

.ajans-consent__text a {
	color: var(--color-primary, #448e00);
}

.ajans-consent__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: flex-end;
}

.ajans-consent__btn {
	background: transparent;
	border: 1px solid var(--color-border, #dbe3d5);
	border-radius: var(--radius-button, 8px);
	color: var(--color-heading, #0f1d14);
	cursor: pointer;
	font: inherit;
	font-weight: 600;
	min-height: 44px;
	padding: 8px 16px;
}

.ajans-consent__btn--primary {
	background: var(--color-button, #448e00);
	border-color: var(--color-button, #448e00);
	color: var(--color-button-text, #fff);
}

.ajans-consent__btn:focus-visible {
	outline: 3px solid var(--color-primary, #448e00);
	outline-offset: 2px;
}

@media (min-width: 768px) {
	.ajans-consent {
		left: 24px;
		right: auto;
		bottom: 24px;
	}
}
