/**
 * Admin styles for AWeber integration
 *
 * @package   integrate-contact-form-7-and-aweber
 * @author    renzo.johnson@gmail.com
 * @copyright 2014-2026 https://renzojohnson.com
 * @license   GPL-3.0+
 */
.vcawb-lite {
	#contact-form-editor-tabs {
		border-color: #b5bec7;
	}
	section#Aweber {
		.metabox-holder {
			padding: 0;
		}
	}
}

#contact-form-editor-tabs {
	#Aweber-tab[aria-selected="true"] {
		background-color: #fff;
	}
}

.vcawb-lite {
	section#Aweber {
		border-color: #b5bec7;
		padding: 0;
		background-color: #f2f4f6;
	}
}

.vcawb-field-group {
	background-color: rgba(255, 255, 255, 0.95);
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	margin-bottom: 20px;
	padding: 12px 20px 20px;
}

.vcawb-field-group .description {
	display: block;
	color: #777;
	padding-left: 0.7em;
}

a.helping-field {
	font-size: 13px;
	line-height: 1.2em;
	font-weight: bold;
	padding-left: 4px;
	padding-right: 20px;
	text-decoration: none;
}

a.helping-field:hover,
a.helping-field:hover .red-icon:before {
	color: #444;
}

.red-icon {
	color: #dd3d36;
}

.a-support {
	color: #222;
	background: #f7f7f7;
	box-shadow: inset 0 1px 0 #fff, 0 1px 0 rgba(0, 0, 0, 0.08);
	vertical-align: top;
	display: inline-block;
	text-decoration: none;
	font-size: 13px;
	line-height: 26px;
	height: 28px;
	margin: 0;
	padding: 0 10px 1px;
	cursor: pointer;
	border: 1px solid #ccc;
	-webkit-appearance: none;
	border-radius: 3px;
	white-space: nowrap;
	box-sizing: border-box;
}

ul#contact-form-editor-tabs > li a:focus,
.a-support:focus {
	outline: none;
	box-shadow: none;
}

.a-support:focus {
	color: #0073aa;
}

.a-support:after {
	right: 0;
	content: "\f333";
	font: 400 20px/1 dashicons;
	speak: none;
	display: inline-block;
	padding: 3px 0 0 5px;
	bottom: 2px;
	position: relative;
	vertical-align: bottom;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-decoration: none !important;
	color: #0073aa;
}

li#Aweber-tab,
#Aweber-tab {
	border-top: 1px solid #01b7ff;
}

.dbl {
	display: block;
}

span.valid {
	background-color: #7ad03a;
	color: #fff;
}

span.invalid {
	background-color: #dd3d36;
	color: #fff;
}

.vcawb-select {
	width: 95%;
	margin-bottom: 7px;
}

.spt-response-out > * {
	transition: all 0.8s ease-in-out;
}

.spt-response-out {
	height: 0;
	transition: all 0.8s ease-in-out;
	opacity: 0;
}

.spt-response-out:after {
	content: "";
	display: table;
	clear: both;
}

.spt-valid {
	height: auto;
	margin-bottom: 20px;
	opacity: 1;
}

.vcawb-type {
	color: #8c8f94 !important;
	font-weight: 400;
	font-size: 11px;
	text-transform: uppercase;
	margin-left: 8px;
}

.vcawb-required {
	color: #d63638;
	font-weight: 600;
	font-size: 11px;
	text-transform: uppercase;
	margin-left: 8px;
}

.vcawb-optional {
	color: #646970;
	font-weight: 400;
	font-size: 11px;
	text-transform: uppercase;
	margin-left: 8px;
}

.vcawb-active {
	display: block;
	height: auto;
}

.vcawb-inactive {
	display: none;
	height: 0;
	width: 100%;
}

.vcawb-inactive:before .vcawb-inactive:after {
	content: "";
	display: table;
	clear: both;
}

.vcawb-loading {
	position: relative;
	pointer-events: none;
}

.vcawb-loading::after {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(255, 255, 255, 0.7);
	z-index: 10;
}

.vcawb-auto-matched {
	border-color: #46b450 !important;
	background-color: rgba(70, 180, 80, 0.05);
}

.vcawb-auto-matched:focus {
	border-color: #46b450 !important;
	box-shadow: 0 0 0 1px #46b450;
}

#selgetcampos {
	margin-left: 8px;
}

.aw-lite {
	color: #121212;
	font-size: 0.87em;
	background-color: rgba(255, 255, 255, 0.85);
	border-radius: 3px;
	padding: 3px 8px;
	box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.15);
}

.aw-code {
	font-size: 11px;
	color: #999;
	display: block;
}

#wpcf7-Aweber-list {
	width: 45%;
}

#wpcf7-Aweber-code,
#wpcf7-Aweber-access-token {
	width: 70%;
	max-width: 500px;
}

.vcawb-hidden-metadata {
	display: none !important;
}

.vcawb-collapsible-panel {
	margin-top: 0;
	margin-bottom: 0;
	background-color: rgba(255, 255, 255, 0.95);
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	padding: 12px 20px 20px;
}

.vcawb-collapsible-panel.active {
	margin-top: 1em;
	margin-bottom: 1em;
}

.vcawb-collapsible-panel h3 {
	margin: 0 0 15px 0;
	font-size: 14px;
	font-weight: 600;
	color: #1d2327;
}

#vcawb-panel-settings .vcawb-settings-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

#vcawb-panel-settings .vcawb-setting-row {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
}

#vcawb-panel-settings .vcawb-setting-row input[type="checkbox"] {
	margin: 0;
}

#vcawb-panel-system {
	color: #999;
	background-color: #fafafc;
	border: 1px solid #e1e1e8;
}

#vcawb-panel-system pre code {
	font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
	padding: 2px 4px;
	font-size: 90%;
	color: #c7254e;
	background-color: #f9f2f4;
	word-break: normal;
	white-space: pre-wrap;
	line-height: 1.42857143;
}

#vcawb-panel-log.vcawb-collapsible-panel {
	background: transparent;
	border: none;
	padding: 0;
	border-radius: 0;
}

#vcawb-panel-log .vcawb-no-logs {
	color: #646970;
	font-style: italic;
	padding: 12px 20px;
	background: rgba(255, 255, 255, 0.95);
	border: 1px solid #e5e5e5;
	border-radius: 8px;
}

#vcawb-panel-log .vcawb-log-actions {
	margin-top: 15px;
}

.vcawb-log-container {
	background: #0d1b2a;
	border-radius: 8px;
	overflow: hidden;
}

.vcawb-log-header {
	background: #1b263b;
	color: #778da9;
	padding: 12px 16px;
	font-weight: 600;
	font-size: 13px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-bottom: 1px solid #415a77;
}

.vcawb-clear-link {
	color: #f87171;
	text-decoration: none;
	font-weight: 400;
	margin-left: 12px;
}

.vcawb-clear-link:hover {
	color: #fca5a5;
	text-decoration: underline;
}

.vcawb-log-body {
	max-height: 320px;
	overflow-y: auto;
}

.vcawb-log-container .vcawb-log-entry {
	padding: 14px 16px;
	font-family: 'JetBrains Mono', 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Mono', 'Droid Sans Mono', 'Source Code Pro', monospace;
	font-size: 12px;
	color: #e0e1dd !important;
	background: #0d1b2a !important;
	border-bottom: 1px solid #1b263b;
	transition: background-color 0.15s ease;
	margin: 0 !important;
	border-radius: 0 !important;
	border-left: none !important;
}

.vcawb-log-container .vcawb-log-entry:hover {
	background: rgba(65, 90, 119, 0.3) !important;
}

.vcawb-log-entry:last-child {
	border-bottom: none;
}

.vcawb-log-status {
	font-weight: 600;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.vcawb-log-time {
	opacity: 0.5;
	margin-left: 12px;
}

.vcawb-log-message {
	display: block;
	margin-top: 6px;
	opacity: 0.85;
}

.vcawb-log-detail {
	display: block;
	margin-top: 2px;
	opacity: 0.7;
	font-size: 11px;
}

.vcawb-log-container .vcawb-log-entry.ok .vcawb-log-status {
	color: #10b981 !important;
}

.vcawb-log-container .vcawb-log-entry.error .vcawb-log-status,
.vcawb-log-container .vcawb-log-entry.error .vcawb-log-message,
.vcawb-log-container .vcawb-log-entry.error .vcawb-log-detail {
	color: #f87171 !important;
}

.vcawb-log-container .vcawb-log-entry.warn .vcawb-log-status,
.vcawb-log-container .vcawb-log-entry.warn .vcawb-log-message {
	color: #fbbf24 !important;
}

.vcawb-log-body::-webkit-scrollbar {
	width: 6px;
}

.vcawb-log-body::-webkit-scrollbar-track {
	background: rgba(0, 0, 0, 0.2);
}

.vcawb-log-body::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.15);
	border-radius: 3px;
}

.vcawb-log-body::-webkit-scrollbar-thumb:hover {
	background: rgba(255, 255, 255, 0.25);
}

.wpcf7-form p + p > a {
	display: none !important;
}

#vcawb-panel-settings,
#vcawb-panel-system,
#vcawb-panel-log {
	display: none;
	max-height: 0;
	overflow: hidden;
	opacity: 0;
}

#vcawb-panel-settings.active,
#vcawb-panel-system.active,
#vcawb-panel-log.active {
	display: block;
	max-height: 5000px;
	opacity: 1;
}

#vcawb_review_box .inside {
	background-color: #1a212b;
	color: #fff;
	margin: 0;
	padding: 20px 15px;
}

#vcawb_review_box .inside h2 {
	color: #fff;
	text-align: center;
	font-size: 22px;
	font-weight: 900;
}

.vcawb-auth-code-disabled {
	background-color: #f5f5f5;
	cursor: not-allowed;
}

.vcawb-button-disabled,
.vcawb-button-disabled:hover,
.vcawb-button-disabled:focus,
#activalist[disabled],
#activalist[disabled]:hover,
#activalist[disabled]:focus {
	cursor: not-allowed;
	opacity: 0.6;
	pointer-events: none;
	background: #f0f0f1 !important;
	border-color: #c3c4c7 !important;
	color: #a7aaad !important;
	box-shadow: none !important;
}

.vcawb-access-token-container {
	margin-top: 15px;
}

.vcawb-access-token-label {
	display: block;
}

.vcawb-access-token-input {
	font-family: monospace;
	cursor: text;
}

.vcawb-description-text {
	display: block;
	margin-top: 10px;
}

.vcawb-review-hidden {
	display: none;
}

.vcawb-heart-red {
	color: #ee3455;
}

.vcawb-field-mapping {
	background-color: rgba(255, 255, 255, 0.95);
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	padding: 12px 20px 20px;
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
	margin-bottom: 20px;
}

.vcawb-field-mapping h3 {
	margin: 0 0 15px 0;
	font-size: 14px;
	font-weight: 600;
	color: #1d2327;
}

.vcawb-field-row {
	display: block;
	margin-bottom: 1.25rem;
}

.vcawb-field-row label {
	display: block;
	margin-bottom: 5px;
	font-weight: 500;
	color: #1d2327;
}

.vcawb-field-row select {
	margin-left: 0;
	max-width: 400px;
}

.vcawb-description {
	display: block;
	margin-top: 5px;
	color: #646970;
	font-size: 12px;
	font-style: italic;
}

@media only screen and (min-width: 768px) {
	.vcawb-field-row {
		display: inline-block;
		width: 49.5%;
		box-sizing: border-box;
		vertical-align: top;
		padding-right: 2rem;
	}
	.vcawb-field-row select {
		margin-top: 3px;
		margin-bottom: 0;
		width: 100%;
		max-width: none;
	}
}

.vcawb-audiences {
	background-color: rgba(255, 255, 255, 0.95);
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	padding: 12px 20px 20px;
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
	margin-bottom: 20px;
}

.vcawb-audiences label {
	font-weight: 500;
	color: #1d2327;
}

.vcawb-audiences select {
	width: 364px;
	max-width: 100%;
}

.vcawb-audiences .button {
	min-width: 120px;
}

.vcawb-audiences .spinner {
	float: none;
	margin-top: 0;
}

.vcawb-audiences .description {
	display: block;
	margin-top: 8px;
	color: #646970;
	font-size: 12px;
}

.vcawb-content {
	padding: 0 20px;
}

.vcawb-header {
	background: #fff;
	border-bottom: 1px solid #c5d1d9;
	margin: 0 0 20px 0;
}

.vcawb-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 20px;
}

.vcawb-header__brand {
	display: flex;
	align-items: center;
	gap: 10px;
}

.vcawb-header__title {
	font-size: 18px;
	font-weight: 600;
	color: #1d2327;
	letter-spacing: -0.3px;
}

.vcawb-header__badge {
	font-size: 10px;
	font-weight: 700;
	padding: 3px 8px;
	border-radius: 4px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.vcawb-header__badge--pro,
.vcawb-header__badge--lite {
	background: #4d5d6d;
	color: #fff;
}

.vcawb-header__version {
	font-size: 12px;
	color: #646970;
	font-weight: 400;
}

.vcawb-header__actions {
	display: flex;
	align-items: center;
}

.vcawb-header__review {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #646970;
	text-decoration: none;
	font-size: 13px;
	transition: color 0.2s;
}

.vcawb-header__review:hover {
	color: #1d2327;
}

.vcawb-sparkles {
	display: inline-block;
	vertical-align: middle;
	margin-left: 6px;
	width: 80px;
	height: 16px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 16'%3E%3Cpath fill='%23EFBF04' d='M8 0l2.5 5 5.5.8-4 3.9.9 5.3L8 12.5 3.1 15l.9-5.3-4-3.9L5.5 5zM24 0l2.5 5 5.5.8-4 3.9.9 5.3-4.9-2.5-4.9 2.5.9-5.3-4-3.9 5.5-.8zM40 0l2.5 5 5.5.8-4 3.9.9 5.3-4.9-2.5-4.9 2.5.9-5.3-4-3.9 5.5-.8zM56 0l2.5 5 5.5.8-4 3.9.9 5.3-4.9-2.5-4.9 2.5.9-5.3-4-3.9 5.5-.8zM72 0l2.5 5 5.5.8-4 3.9.9 5.3-4.9-2.5-4.9 2.5.9-5.3-4-3.9 5.5-.8z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-size: contain;
}

.vcawb-header__status {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-left: 12px;
	padding-left: 12px;
	border-left: 1px solid #c5d1d9;
}

.vcawb-header__status-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
}

.vcawb-header__status-dot--connected {
	background: #00a32a;
}

.vcawb-header__status-dot--disconnected {
	background: #d63638;
}

.vcawb-header__status-text {
	font-size: 12px;
	color: #646970;
}

.vcawb-disconnect-link {
	color: #d63638;
	text-decoration: none;
	font-weight: 500;
	margin-left: 8px;
	cursor: pointer;
}

.vcawb-disconnect-link:hover {
	color: #a00;
	text-decoration: underline;
}

/* OAuth 2.0 connect button */
.icf7a-btn-connect {
  display: inline-block;
  background: #1e8e3e;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  padding: 12px 32px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}
.icf7a-btn-connect:hover { background: #1a7a35; }
.icf7a-btn-connect:disabled { opacity: 0.5; cursor: not-allowed; }
.icf7a-connect-help { margin-top: 10px; font-size: 13px; color: #646970; }
.icf7a-connect-spinner {
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: icf7a-spin 0.6s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}
@keyframes icf7a-spin { to { transform: rotate(360deg); } }

/* Fuzzy match glow — ultra subtle border fade */
.vcawb-fuzzy-matched {
  animation: vcawbFuzzySubtle 2s ease-out forwards;
}
@keyframes vcawbFuzzySubtle {
  0% { border-color: #68b36b; }
  100% { border-color: #c3c4c7; }
}
