/* Popup trigger link */
.oatcf-cta { margin: 24px 0; text-align: center; }
.oatcf-trigger {
	display: inline-block;
	padding: 12px 22px;
	border: 1px solid #1A1A1A;
	border-radius: 9px;
	color: #1A1A1A;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}
.oatcf-trigger:hover,
.oatcf-trigger:focus-visible { background: #F0F0F0; color: #1A1A1A; }

/* Inline form */
.oatcf-inline { max-width: 560px; margin: 24px auto; color: #1A1A1A; text-align: left; }
.oatcf-inline .oatcf-title { margin-top: 0; }

/* Modal */
html.oatcf-locked { overflow: hidden; }
.oatcf-overlay[hidden] { display: none; }
.oatcf-overlay {
	position: fixed; inset: 0; z-index: 100000;
	display: flex; align-items: center; justify-content: center;
	padding: 16px; background: rgba(0, 0, 0, 0.55);
}
.oatcf-dialog {
	position: relative; box-sizing: border-box;
	width: 100%; max-width: 480px; max-height: 92vh; overflow-y: auto;
	padding: 28px 26px 26px; background: #FFFFFF; color: #1A1A1A;
	border: 1px solid #E5E5E5; border-radius: 12px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
	text-align: left;
}
.oatcf-dialog .oatcf-close {
	position: absolute !important;
	top: 10px !important;
	right: 10px !important;
	width: 32px !important;
	height: 32px !important;
	margin: 0 !important;
	padding: 0 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	background: transparent !important;
	border: none !important;
	border-radius: 50% !important;
	box-shadow: none !important;
	color: #424242 !important;
	font-size: 24px !important;
	line-height: 1 !important;
	cursor: pointer;
}
.oatcf-dialog .oatcf-close:hover,
.oatcf-dialog .oatcf-close:focus-visible {
	background: #F0F0F0 !important;
	color: #1A1A1A !important;
}
.oatcf-title { margin: 0 0 6px; padding-right: 36px; font-size: 24px; line-height: 1.3; font-weight: 400; }
.oatcf-intro { margin: 0 0 8px; color: #424242; }

/* Fields */
.oatcf-form label { display: block; margin: 14px 0 4px; font-weight: 500; }
.oatcf-form input[type="text"],
.oatcf-form input[type="email"],
.oatcf-form textarea {
	width: 100%; box-sizing: border-box; padding: 10px;
	border: 1px solid #BDBDBD; border-radius: 6px; font: inherit;
}
.oatcf-form textarea { min-height: 130px; resize: vertical; }
.oatcf-form input:focus-visible,
.oatcf-form textarea:focus-visible,
.oatcf-close:focus-visible,
.oatcf-submit:focus-visible { outline: 2px solid #1A1A1A; outline-offset: 2px; }

/* Tick-box list */
.oatcf-topics { margin: 16px 0 0; padding: 0; border: none; }
.oatcf-topics legend { padding: 0; font-weight: 500; }
.oatcf-topic { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0 0; }
.oatcf-topic input { margin-top: 4px; flex: 0 0 auto; }
.oatcf-form .oatcf-topic label { margin: 0; font-weight: 400; line-height: 1.5; }

/* Honeypot: off-screen rather than display:none, which some bots skip. */
.oatcf-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.oatcf-consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; }
.oatcf-consent input { margin-top: 4px; flex: 0 0 auto; }
.oatcf-form .oatcf-consent label { margin: 0; font-weight: 400; font-size: 14px; line-height: 1.5; color: #424242; }

.oatcf-error { margin: 12px 0 0; color: #B00020; }
.oatcf-error[hidden],
.oatcf-success[hidden],
.oatcf-intro[hidden],
.oatcf-form[hidden],
.oatcf-done[hidden] { display: none; }
.oatcf-success { margin: 12px 0 0; color: #1B5E20; font-weight: 500; }

.oatcf-submit {
	display: block; width: 100%; margin-top: 18px; padding: 12px;
	background: #1A1A1A; color: #FFFFFF; border: none; border-radius: 8px;
	font: inherit; cursor: pointer;
}
.oatcf-submit:hover,
.oatcf-submit:focus-visible { background: #F0F0F0; color: #1A1A1A; }
.oatcf-submit:disabled { opacity: 0.6; cursor: default; }

.oatcf-req { color: #B00020; }
