/* Pagamentos Offline — checkout (clássico + blocos) */

.wcop-description {
	margin: 0 0 4px;
}

.wcop-description p:last-child {
	margin-bottom: 0;
}

.wcop-fields {
	display: grid;
	gap: 12px;
	margin: 12px 0 4px;
	text-align: left;
}

.wcop-fields__label {
	margin: 0;
	font-weight: 600;
	font-size: 0.95em;
}

.wcop-fields__label .required,
.wcop-contact .required {
	color: #d63638;
	text-decoration: none;
}

/* Seletor de canal em "pills" */
.wcop-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.wcop-pill {
	position: relative;
	margin: 0;
	cursor: pointer;
}

.wcop-pill input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.wcop-pill__inner {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 18px;
	border: 1.5px solid rgba(140, 140, 140, 0.55);
	border-radius: 999px;
	font-weight: 500;
	line-height: 1;
	transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.wcop-pill__inner svg {
	flex: 0 0 auto;
	opacity: 0.75;
	transition: opacity 0.15s ease;
}

.wcop-pill:hover .wcop-pill__inner {
	border-color: currentColor;
}

.wcop-pill input:focus-visible + .wcop-pill__inner {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.wcop-pill input:checked + .wcop-pill__inner {
	font-weight: 600;
}

.wcop-pill input:checked + .wcop-pill__inner svg {
	opacity: 1;
}

.wcop-pill--whatsapp input:checked + .wcop-pill__inner {
	background: rgba(37, 211, 102, 0.12);
	border-color: #1fa855;
	color: #0c7a3e;
	box-shadow: 0 0 0 1px #1fa855 inset;
}

.wcop-pill--email input:checked + .wcop-pill__inner {
	background: rgba(37, 99, 235, 0.1);
	border-color: #2563eb;
	color: #1d4ed8;
	box-shadow: 0 0 0 1px #2563eb inset;
}

/* Campo de contato */
.wcop-contact {
	margin: 0;
}

.wcop-contact label {
	display: block;
	margin-bottom: 4px;
	font-size: 0.9em;
	font-weight: 500;
}

.wcop-input,
input.wcop-input {
	width: 100%;
	max-width: 340px;
	padding: 10px 14px;
	border: 1px solid rgba(140, 140, 140, 0.6);
	border-radius: 10px;
	font-size: 16px;
	line-height: 1.3;
	background: transparent;
	color: inherit;
	box-sizing: border-box;
}

.wcop-input:focus {
	border-color: currentColor;
	outline: none;
	box-shadow: 0 0 0 1px currentColor;
}

.wcop-input--invalid,
input.wcop-input--invalid {
	border-color: #d63638;
	box-shadow: 0 0 0 1px #d63638;
}

.wcop-inline-error {
	display: block;
	margin-top: 4px;
	color: #d63638;
	font-size: 0.85em;
}

.wcop-gateway-icon {
	max-height: 24px;
	width: auto;
	vertical-align: middle;
	margin-left: 6px;
}

/* Página de obrigado */
.wcop-thankyou {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	margin: 0 0 28px;
	padding: 18px 20px;
	border: 1px solid rgba(140, 140, 140, 0.35);
	border-left: 4px solid #1fa855;
	border-radius: 12px;
	background: rgba(37, 211, 102, 0.06);
}

.wcop-thankyou--email {
	border-left-color: #2563eb;
	background: rgba(37, 99, 235, 0.05);
}

.wcop-thankyou__icon {
	display: inline-flex;
	flex: 0 0 auto;
	padding: 10px;
	border-radius: 999px;
	background: rgba(37, 211, 102, 0.15);
	color: #0c7a3e;
}

.wcop-thankyou--email .wcop-thankyou__icon {
	background: rgba(37, 99, 235, 0.12);
	color: #1d4ed8;
}

.wcop-thankyou__title {
	margin: 0 0 6px;
	font-size: 1.1em;
}

.wcop-thankyou__body p {
	margin: 0 0 6px;
}

.wcop-thankyou__instructions {
	margin-top: 8px;
	font-size: 0.92em;
	opacity: 0.85;
}

.wcop-thankyou__instructions p:last-child {
	margin-bottom: 0;
}

/* Ajustes dentro do bloco de pagamento (checkout em blocos) */
.wc-block-components-radio-control-accordion-content .wcop-fields {
	margin-top: 4px;
}
