/* Override the accent per site, e.g. in Avada custom CSS:
   :root { --wsec-accent: #c8102e; } */
:root { --wsec-accent: #333333; }

.wsec-open {
	display: block;
	width: 100%;
	margin-top: 12px;
	padding: 12px 16px;
	background: transparent;
	color: var(--wsec-accent);
	border: 2px solid var(--wsec-accent);
	border-radius: 4px;
	font: inherit;
	font-weight: 600;
	line-height: 1.3;
	text-align: center;
	cursor: pointer;
	transition: background .15s, color .15s;
}
.wsec-open:hover,
.wsec-open:focus-visible { background: var(--wsec-accent); color: #fff; }

html.wsec-lock { overflow: hidden; }

.wsec-modal { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.wsec-modal[hidden] { display: none; }
.wsec-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); }
.wsec-dialog {
	position: relative;
	width: 100%;
	max-width: 480px;
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	background: #fff;
	color: #222;
	border-radius: 6px;
	padding: 28px 28px 24px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, .25);
	text-align: left;
}
.wsec-dialog h3 { margin: 0 0 6px; font-size: 22px; line-height: 1.25; }
.wsec-sub { margin: 0 0 18px; font-size: 14px; color: #555; }
.wsec-x { position: absolute; top: 8px; right: 10px; background: none; border: 0; font-size: 28px; line-height: 1; color: #777; cursor: pointer; padding: 4px 8px; }
.wsec-x:hover { color: #000; }

.wsec-field { margin: 0 0 12px; }
.wsec-field label { display: block; margin: 0 0 4px; font-size: 14px; font-weight: 600; }
.wsec-req { color: #c00; }
.wsec-field input,
.wsec-field textarea,
.wsec-link {
	display: block;
	width: 100%;
	box-sizing: border-box;
	padding: 10px 12px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font: inherit;
	font-size: 15px;
	background: #fff;
	color: #222;
}
.wsec-field textarea { resize: vertical; min-height: 70px; }

.wsec-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.wsec-submit,
.wsec-copy {
	display: inline-block;
	padding: 12px 20px;
	background: var(--wsec-accent);
	color: #fff;
	border: 0;
	border-radius: 4px;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}
.wsec-submit { width: 100%; margin-top: 6px; }
.wsec-submit[disabled] { opacity: .65; cursor: wait; }
.wsec-error { margin: 10px 0 0; color: #b00020; font-size: 14px; }

.wsec-done-msg { margin: 0 0 14px; font-size: 15px; }
.wsec-linkrow { display: flex; gap: 8px; }
.wsec-linkrow .wsec-link { flex: 1; min-width: 0; }
.wsec-copy { white-space: nowrap; }

.wsec-summary { margin: -4px 0 16px; padding: 10px 12px; border-radius: 6px; background: #f6f6f6; font-weight: 600; }
.wsec-summary[hidden] { display: none; }
