/* O shortcode [giveo_campaign_buttons] não recebe estilos visuais do plugin.
   Ele entrega apenas HTML, classes e estados para personalização no tema/Elementor. */
.giveo-modal-form {
	--giveo-border: #e5e7eb;
	--giveo-muted: #6b7280;
	--giveo-soft: #f8fafc;
	--giveo-strong: #111827;
	--giveo-focus: #2563eb;
	--giveo-success: #ecfdf5;
	--giveo-success-text: #047857;
	--giveo-error: #fef2f2;
	--giveo-error-text: #b91c1c;
	--giveo-radius: 16px;
	box-sizing: border-box;
}

.giveo-modal-form * {
	box-sizing: border-box;
}

.giveo-amount-picker {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.giveo-amount-choice {
	appearance: none;
	border: 1px solid var(--giveo-border);
	border-radius: 999px;
	background: #fff;
	color: var(--giveo-strong);
	cursor: pointer;
	font-weight: 700;
	line-height: 1;
	padding: 13px 18px;
	transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.giveo-amount-choice:hover,
.giveo-amount-choice.is-selected {
	border-color: var(--giveo-focus);
	box-shadow: 0 10px 26px rgba(37, 99, 235, .12);
	transform: translateY(-1px);
}

.giveo-amount-choice.is-selected {
	background: #eff6ff;
	color: #1d4ed8;
}

.giveo-modal-form {
	display: grid;
	gap: 18px;
	width: 100%;
	color: var(--giveo-strong);
}

.giveo-modal-form__title {
	font-size: 24px;
	line-height: 1.15;
	margin: 0;
}

.giveo-summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 13px 15px;
	border: 1px solid var(--giveo-border);
	border-radius: var(--giveo-radius);
	background: var(--giveo-soft);
}

.giveo-summary span {
	color: var(--giveo-muted);
	font-size: 14px;
}

.giveo-summary strong {
	font-size: 20px;
}

.giveo-custom-amount[hidden],
.giveo-card-fields[hidden],
.giveo-billing-details[hidden],
.giveo-pix-result[hidden],
.giveo-boleto-result[hidden],
.giveo-response[hidden] {
	display: none !important;
}

.giveo-modal-form.is-giveo-monthly [data-giveo-single-only],
.giveo-modal-form.is-giveo-single [data-giveo-monthly-only] {
	display: none !important;
}

.giveo-modal-form label {
	display: grid;
	gap: 7px;
	font-size: 13px;
	font-weight: 700;
	color: #374151;
}

.giveo-modal-form input,
.giveo-modal-form textarea {
	width: 100%;
	min-height: 46px;
	padding: 11px 13px;
	border: 1px solid var(--giveo-border);
	border-radius: 12px;
	background: #fff;
	color: var(--giveo-strong);
	font-size: 15px;
	outline: 0;
	transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.giveo-modal-form textarea {
	min-height: auto;
	line-height: 1.45;
	resize: vertical;
}

.giveo-modal-form input:focus,
.giveo-modal-form textarea:focus {
	border-color: var(--giveo-focus);
	box-shadow: 0 0 0 4px rgba(37, 99, 235, .10);
}

.giveo-modal-form input[disabled] {
	background: #f3f4f6;
}

.giveo-form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.giveo-field--wide {
	grid-column: 1 / -1;
}

.giveo-monthly-toggle,
.giveo-terms-field {
	display: flex !important;
	align-items: flex-start;
	gap: 10px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	padding: 13px 14px;
	border: 1px solid var(--giveo-border);
	border-radius: var(--giveo-radius);
	background: #fff;
}

.giveo-monthly-toggle input,
.giveo-terms-field input,
.giveo-payment-methods input {
	width: auto !important;
	min-height: 0;
	margin-top: 2px;
	accent-color: var(--giveo-focus);
	flex: 0 0 auto;
}

.giveo-terms-field a {
	text-decoration: underline;
}

.giveo-payment-methods {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
}

.giveo-payment-methods label {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 10px 12px;
	border: 1px solid var(--giveo-border);
	border-radius: 14px;
	background: #fff;
	cursor: pointer;
	text-align: center;
	font-size: 14px;
	font-weight: 700;
}

.giveo-payment-methods label:has(input:checked) {
	border-color: var(--giveo-focus);
	background: #eff6ff;
	color: #1d4ed8;
	box-shadow: 0 10px 26px rgba(37, 99, 235, .10);
}

.giveo-card-fields,
.giveo-pix-result,
.giveo-boleto-result {
	padding: 16px;
	border: 1px solid var(--giveo-border);
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 12px 35px rgba(15, 23, 42, .05);
}

.giveo-card-notice {
	padding: 12px 14px;
	margin-bottom: 14px;
	border-radius: 14px;
	background: #fff7ed;
	color: #9a3412;
	font-size: 14px;
	line-height: 1.45;
}

.giveo-card-fields__title {
	margin: 16px 0 10px;
	font-size: 15px;
	line-height: 1.3;
}

.giveo-card-fields__title:first-of-type {
	margin-top: 0;
}

.giveo-billing-block {
	display: grid;
	gap: 12px;
}

.giveo-billing-cep {
	max-width: 220px;
}

.giveo-form-grid--billing {
	grid-template-columns: 120px 1fr;
	gap: 10px;
}

.giveo-cep-status {
	display: block;
	min-height: 16px;
	margin-top: 4px;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.35;
	color: var(--giveo-muted);
}

.giveo-submit-button,
.giveo-secondary-button {
	appearance: none;
	border: 0;
	border-radius: 14px;
	padding: 13px 18px;
	cursor: pointer;
	font-weight: 800;
	line-height: 1;
	text-align: center;
	text-decoration: none;
	transition: transform .15s ease, opacity .15s ease, box-shadow .15s ease;
}

.giveo-submit-button {
	min-height: 50px;
	background: var(--giveo-focus);
	color: #fff;
	box-shadow: 0 14px 28px rgba(37, 99, 235, .18);
}

.giveo-submit-button:hover,
.giveo-secondary-button:hover {
	transform: translateY(-1px);
}

.giveo-submit-button[disabled] {
	opacity: .62;
	cursor: not-allowed;
	transform: none;
}

.giveo-secondary-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--giveo-border);
	background: #fff;
	color: var(--giveo-strong);
}

.giveo-response {
	padding: 13px 14px;
	border-radius: 14px;
	background: var(--giveo-soft);
	font-size: 14px;
	line-height: 1.45;
}

.giveo-response.is-error {
	background: var(--giveo-error);
	color: var(--giveo-error-text);
}

.giveo-response.is-success {
	background: var(--giveo-success);
	color: var(--giveo-success-text);
}

.giveo-pix-result h4,
.giveo-boleto-result h4 {
	margin: 0 0 6px;
}

.giveo-pix-result p,
.giveo-boleto-result p {
	margin: 0 0 12px;
	color: var(--giveo-muted);
}

.giveo-pix-result__qr {
	display: flex;
	justify-content: center;
	margin: 12px 0;
}

.giveo-pix-result__qr img {
	max-width: 240px;
	width: 100%;
	height: auto;
	border: 1px solid var(--giveo-border);
	border-radius: 16px;
	padding: 8px;
	background: #fff;
}

.giveo-pix-result textarea,
.giveo-boleto-result textarea {
	font-size: 13px;
	line-height: 1.35;
}

.giveo-pix-result__actions,
.giveo-boleto-result__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 10px;
}

.giveo-final-message {
	text-align: center;
	padding: 28px 18px;
}

.giveo-final-message__icon {
	width: 56px;
	height: 56px;
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 32px;
	font-weight: 700;
	margin-bottom: 14px;
	background: var(--giveo-success);
	color: var(--giveo-success-text);
}

.giveo-final-message__title {
	margin: 0 0 10px;
	font-size: 24px;
}

.giveo-final-message__body {
	font-size: 16px;
	line-height: 1.5;
}

.giveo-final-message__body p {
	margin: 0 0 10px;
}

@supports not selector(:has(*)) {
	.giveo-payment-methods label input:checked + span {
		color: #1d4ed8;
	}
}

@media (max-width: 720px) {
	.giveo-form-grid,
	.giveo-payment-methods,
	.giveo-form-grid--billing {
		grid-template-columns: 1fr;
	}

	.giveo-billing-cep {
		max-width: none;
	}

	.giveo-modal-form__title {
		font-size: 21px;
	}
}

/* GIVEO campaign counter */
.giveo-campaign-counter {
	--giveo-counter-primary: #8a972b;
	--giveo-counter-bar: #c6002b;
	--giveo-counter-track: #eeeeee;
	width: 100%;
	max-width: 920px;
	margin: 0 auto;
	text-align: center;
}

.giveo-campaign-counter__values {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	margin-bottom: 18px;
}

.giveo-campaign-counter__raised {
	color: var(--giveo-counter-primary);
	font-size: clamp(42px, 7vw, 86px);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.04em;
}

.giveo-campaign-counter__goal {
	color: #333333;
	font-size: clamp(24px, 3.5vw, 44px);
	font-weight: 400;
	line-height: 1.1;
}

.giveo-campaign-counter__bar {
	position: relative;
	width: 100%;
	height: 26px;
	padding: 4px;
	border: 2px solid var(--giveo-counter-primary);
	border-radius: 999px;
	background: #ffffff;
	box-sizing: border-box;
	overflow: hidden;
}

.giveo-campaign-counter__bar::before {
	content: '';
	position: absolute;
	inset: 7px 14px;
	background: var(--giveo-counter-track);
	border-radius: 999px;
}

.giveo-campaign-counter__fill {
	position: relative;
	display: block;
	height: 100%;
	min-width: 0;
	background: var(--giveo-counter-bar);
	border-radius: 999px;
	z-index: 1;
	transition: width .6s ease;
}

.giveo-campaign-counter__percent {
	margin-top: 8px;
	color: #4b5563;
	font-size: 14px;
	font-weight: 700;
}

@media (max-width: 640px) {
	.giveo-campaign-counter__values {
		margin-bottom: 12px;
	}

	.giveo-campaign-counter__bar {
		height: 22px;
	}
}
