/* Send to Friend — frontend styles */

.stf-wrap {
	margin: 2rem 0;
	padding: 1.25rem 0;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.stf-heading {
	margin: 0 0 0.75rem;
	font-size: 0.95rem;
	font-weight: 600;
	opacity: 0.85;
}

.stf-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.stf-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.5rem 0.85rem;
	border-radius: 999px;
	border: 1px solid rgba(0, 0, 0, 0.12);
	background: #fff;
	color: #18181b;
	font-size: 0.875rem;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.08s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.stf-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.stf-icon {
	fill: currentColor;
	flex: 0 0 auto;
}

/* Brand accents on hover */
.stf-email:hover    { background: #eef2ff; color: #4338ca; }
.stf-whatsapp:hover { background: #dcfce7; color: #128c4b; }
.stf-messenger:hover{ background: #eef2ff; color: #0084ff; }
.stf-telegram:hover { background: #e0f2fe; color: #229ed9; }
.stf-facebook:hover { background: #e7f0ff; color: #1877f2; }
.stf-x:hover        { background: #f4f4f5; color: #000; }
.stf-native:hover   { background: #f4f4f5; color: #18181b; }
.stf-copy:hover     { background: #f4f4f5; color: #18181b; }

/* Dark themes */
@media (prefers-color-scheme: dark) {
	.stf-wrap { border-color: rgba(255, 255, 255, 0.12); }
	.stf-btn {
		background: rgba(255, 255, 255, 0.06);
		border-color: rgba(255, 255, 255, 0.16);
		color: #f4f4f5;
	}
}

/* ---------- Modal ---------- */

.stf-modal[hidden] { display: none; }

.stf-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}

.stf-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
}

.stf-modal__box {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 420px;
	max-height: 90vh;
	overflow-y: auto;
	background: #fff;
	color: #18181b;
	border-radius: 14px;
	padding: 1.5rem;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.stf-modal__close {
	position: absolute;
	top: 0.5rem;
	right: 0.75rem;
	background: none;
	border: none;
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
	color: #71717a;
}

.stf-modal__title {
	margin: 0 0 1rem;
	font-size: 1.25rem;
}

.stf-field {
	margin: 0 0 0.9rem;
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
}

.stf-field label {
	font-size: 0.85rem;
	font-weight: 600;
}

.stf-field input,
.stf-field textarea {
	width: 100%;
	padding: 0.6rem 0.7rem;
	border: 1px solid #d4d4d8;
	border-radius: 8px;
	font: inherit;
	box-sizing: border-box;
}

.stf-field input:focus,
.stf-field textarea:focus {
	outline: 2px solid #2563eb;
	outline-offset: 1px;
	border-color: #2563eb;
}

.stf-hint {
	font-size: 0.75rem;
	color: #71717a;
	font-weight: 400;
}

/* Honeypot — visually + programmatically hidden */
.stf-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.stf-actions { margin: 1rem 0 0; }

.stf-submit {
	width: 100%;
	padding: 0.7rem 1rem;
	background: #2563eb;
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
}

.stf-submit:hover { background: #1d4ed8; }
.stf-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.stf-status {
	margin: 0.75rem 0 0;
	font-size: 0.9rem;
	min-height: 1.2em;
}

.stf-status.is-error { color: #dc2626; }
.stf-status.is-success { color: #16a34a; }

@media (prefers-color-scheme: dark) {
	.stf-modal__box { background: #18181b; color: #f4f4f5; }
	.stf-field input, .stf-field textarea {
		background: #27272a; border-color: #3f3f46; color: #f4f4f5;
	}
}
