/* Compass Withdrawal Button — front-end styles
 * All visual values are intentionally conservative so the form inherits the
 * Divi theme look. Override in your child theme if needed.
 */

.cwb-form {
	max-width: 640px;
	margin: 0 auto;
}

.cwb-form .cwb-heading {
	margin-top: 0;
}

.cwb-intro {
	margin-bottom: 1.25em;
	line-height: 1.5;
}

.cwb-field {
	margin: 0 0 1.1em;
}

.cwb-field label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.35em;
}

.cwb-field input[type="text"],
.cwb-field input[type="email"],
.cwb-field input[type="tel"],
.cwb-field input[type="number"],
.cwb-field input[type="search"],
.cwb-field textarea {
	width: 100%;
	max-width: 100%;
	padding: 0.7em 0.85em;
	border: 1px solid #ccc;
	border-radius: 6px;
	box-sizing: border-box;
	font-size: 1rem;
}

.cwb-req {
	color: #b32020;
}

/* Honeypot — visually + a11y hidden, still submitted by bots. */
.cwb-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.cwb-actions {
	display: flex;
	align-items: center;
	gap: 1em;
	flex-wrap: wrap;
	margin-top: 1.25em;
}

/* Neutral "ghost" buttons: transparent fill + 1px black border, inverting to
   solid black on hover. Works on any theme and ignores theme button colours. */
.cwb-button {
	display: inline-block;
	padding: 0.85em 1.6em;
	border: 1px solid #000;
	border-radius: 6px;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
	text-decoration: none;
	background: transparent;
	color: #000;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.cwb-button-primary,
.cwb-button-confirm {
	background: transparent;
	color: #000;
	border: 1px solid #000;
}

.cwb-button-primary:hover,
.cwb-button-confirm:hover {
	background: #000;
	color: #fff;
}

.cwb-button[disabled] {
	opacity: 0.5;
	cursor: progress;
}

/* The "back" link is a plain text link, not an outlined button. */
.cwb-button-link {
	background: transparent;
	color: inherit;
	border: 0;
	text-decoration: underline;
	padding-left: 0;
	padding-right: 0;
}

.cwb-button-link:hover {
	background: transparent;
	color: inherit;
}

/* Order summary table on step 2. */
.cwb-order-summary table,
.cwb-receipt {
	width: 100%;
	border-collapse: collapse;
	margin: 1em 0 1.5em;
}

.cwb-order-summary th,
.cwb-order-summary td,
.cwb-receipt th,
.cwb-receipt td {
	text-align: left;
	padding: 0.55em 0.7em;
	border-bottom: 1px solid #eee;
	vertical-align: top;
}

.cwb-order-summary th,
.cwb-receipt th {
	width: 40%;
	color: #555;
	font-weight: 600;
}

/* Notices. */
.cwb-notice {
	padding: 1em 1.25em;
	border-radius: 6px;
	margin: 0 0 1.25em;
	line-height: 1.5;
}

.cwb-notice-error {
	background: #fdecea;
	border: 1px solid #f5c2c0;
	color: #8a1f1b;
}

.cwb-notice-success {
	background: #ecf8f0;
	border: 1px solid #b9e3c6;
	color: #1a5c33;
}

.cwb-notice-success .cwb-heading {
	color: #1a5c33;
}

/* Always-visible floating button. Solid white (not transparent) because it
   overlays scrolling page content — same neutral black border + hover invert. */
.cwb-floating-button {
	position: fixed;
	bottom: 18px;
	z-index: 9990;
	padding: 0.7em 1.15em;
	background: #fff;
	color: #000 !important;
	border: 1px solid #000;
	font-weight: 700;
	font-size: 0.9rem;
	line-height: 1.2;
	border-radius: 999px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	text-decoration: none !important;
}

.cwb-floating-button.cwb-pos-bottom-right {
	right: 18px;
}

.cwb-floating-button.cwb-pos-bottom-left {
	left: 18px;
}

.cwb-floating-button:hover {
	background: #000;
	color: #fff !important;
	opacity: 1;
}

.cwb-thankyou-link {
	margin-top: 1em;
	font-weight: 600;
}

@media (max-width: 480px) {
	.cwb-floating-button {
		bottom: 12px;
		font-size: 0.82rem;
	}
}
