.ajdf-quotas-modalidades {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ajdf-quotas-modalidade {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 0;
	border-bottom: 1px solid #e2e2e2;
}

.ajdf-quotas-modalidade .nome {
	flex: 1;
}

.ajdf-quotas-modalidade .preco {
	font-weight: 600;
}

.ajdf-quotas-pagamento {
	--ajdf-ink: #262d36;
	--ajdf-line: #dcdfe4;
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin: 8px 0 32px;
}

.ajdf-quotas-opcoes {
	display: grid;
	gap: 12px;
	margin: 0;
	padding: 0;
	border: 0;
	min-width: 0;
}

.ajdf-quotas-opcoes legend {
	font-size: 1.15em;
	font-weight: 600;
	margin-bottom: 12px;
	padding: 0;
}

.ajdf-quotas-opcao {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 16px 20px;
	background: #fff;
	border: 1.5px solid var(--ajdf-line);
	border-radius: 12px;
	cursor: pointer;
	transition: border-color .15s, box-shadow .15s, background .15s;
}

.ajdf-quotas-opcao:hover {
	border-color: #9aa3ae;
}

.ajdf-quotas-opcao:has(input:checked) {
	border-color: var(--ajdf-ink);
	box-shadow: 0 0 0 3px rgba(38, 45, 54, .12);
}

.ajdf-quotas-opcao:has(input:focus-visible) {
	outline: 2px solid #2563eb;
	outline-offset: 2px;
}

.ajdf-quotas-opcao input[type="radio"] {
	flex: none;
	width: 20px;
	height: 20px;
	margin: 0;
	accent-color: var(--ajdf-ink);
}

.ajdf-quotas-opcao-corpo {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.ajdf-quotas-opcao-nome {
	font-weight: 600;
	color: var(--ajdf-ink);
}

.ajdf-quotas-opcao-desc {
	font-size: .9em;
	color: #626b76;
}

.ajdf-quotas-opcao-preco {
	flex: none;
	font-size: 1.15em;
	font-weight: 700;
	color: var(--ajdf-ink);
}

.ajdf-quotas-pagamento-btn {
	align-self: flex-end;
	padding: 16px 40px;
	border: 0;
	border-radius: 999px;
	background: var(--ajdf-ink);
	color: #fff;
	font-size: 1.1em;
	font-weight: 500;
	cursor: pointer;
	transition: background .15s, transform .1s;
}

.ajdf-quotas-pagamento-btn:hover {
	background: #000;
}

.ajdf-quotas-pagamento-btn:active {
	transform: translateY(1px);
}

.ajdf-checkout-remove-item {
	margin-left: 8px;
	color: #a00;
	font-size: 0.85em;
	text-decoration: none;
}

.ajdf-checkout-remove-item:hover {
	text-decoration: underline;
	color: #d00;
}

.ajdf-quotas-aviso {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 18px;
	border-radius: 10px;
	border: 1px solid;
	margin: 0 0 24px;
	font-weight: 500;
}

.ajdf-quotas-aviso::before {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
}

.ajdf-quotas-aviso--alerta {
	background: #fff6e5;
	color: #7a4a00;
	border-color: #f3d79a;
}

.ajdf-quotas-aviso--alerta::before {
	content: "!";
	background: #d98a00;
}

.ajdf-quotas-aviso--ok {
	background: #eaf6ec;
	color: #1e4620;
	border-color: #bfe3c3;
}

.ajdf-quotas-aviso--ok::before {
	content: "\2713";
	background: #2e8b3d;
}

.ajdf-quotas-vazio {
	padding: 28px;
	text-align: center;
	color: #626b76;
	background: #fafafa;
	border: 1px dashed #d0d4da;
	border-radius: 10px;
}

.ajdf-quotas-tabela-wrap {
	background: #fff;
	border: 1px solid #e2e4e8;
	border-radius: 12px;
	overflow: hidden;
	margin-bottom: 32px;
}

.ajdf-quotas-historico {
	width: 100%;
	margin: 0;
	border-collapse: collapse;
	border: 0;
}

.ajdf-quotas-historico th,
.ajdf-quotas-historico td {
	text-align: left;
	padding: 14px 18px;
	border: 0;
	border-bottom: 1px solid #edeef1;
}

.ajdf-quotas-historico thead th {
	background: #f6f7f9;
	font-size: .85em;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: #626b76;
}

.ajdf-quotas-historico tbody tr:last-child td {
	border-bottom: 0;
}

.ajdf-quotas-badge {
	display: inline-block;
	padding: 3px 12px;
	border-radius: 999px;
	font-size: .85em;
	font-weight: 600;
	background: #eceef1;
	color: #444c56;
}

.ajdf-quotas-badge--pago {
	background: #e0f3e3;
	color: #1e6b2c;
}

.ajdf-quotas-badge--pendente {
	background: #fff1d6;
	color: #8a5a00;
}

@media (max-width: 640px) {
	.ajdf-quotas-opcao {
		flex-wrap: wrap;
		padding: 14px 16px;
	}

	.ajdf-quotas-pagamento-btn {
		align-self: stretch;
	}

	.ajdf-quotas-historico thead {
		position: absolute;
		left: -9999px;
	}

	.ajdf-quotas-historico tr {
		display: block;
		padding: 10px 0;
		border-bottom: 1px solid #edeef1;
	}

	.ajdf-quotas-historico tbody tr:last-child {
		border-bottom: 0;
	}

	.ajdf-quotas-historico td {
		display: flex;
		justify-content: space-between;
		gap: 16px;
		padding: 6px 16px;
		border: 0;
	}

	.ajdf-quotas-historico td::before {
		content: attr(data-label);
		font-weight: 600;
		color: #626b76;
	}
}

/* ==========================================================================
   Checkout (widget de checkout do Elementor Pro) e página de confirmação.
   O layout em cartões, os campos e os títulos são geridos pelo Elementor;
   aqui só harmonizamos botões, métodos de pagamento, avisos e o "Remover".
   ========================================================================== */

body.woocommerce-checkout {
	--ajdf-ink: #262d36;
	--ajdf-line: #dcdfe4;
}

.ajdf-quotas-passos {
	align-items: flex-start;
}

.ajdf-quotas-passos strong {
	font-size: 1.05em;
}

/* Botão principal, igual ao "Pagar agora". */
body.woocommerce-checkout #place_order,
body.woocommerce-checkout .woocommerce-form-coupon button,
body.woocommerce-checkout .woocommerce-info .button,
body.woocommerce-checkout .woocommerce-message .button {
	width: auto;
	height: auto !important;
	min-height: 0 !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: var(--ajdf-ink) !important;
	color: #fff !important;
	font-weight: 500;
	line-height: 1.3 !important;
	cursor: pointer;
	transition: background .15s;
}

body.woocommerce-checkout #place_order {
	display: block;
	float: none !important;
	width: 100%;
	margin: 16px 0 0 !important;
	padding: 14px 24px !important;
	font-size: 1em;
}

body.woocommerce-checkout #payment .place-order {
	margin: 0 !important;
	padding: 16px 0 0 !important;
}

body.woocommerce-checkout #payment .woocommerce-privacy-policy-text p {
	margin: 0;
	font-size: .85em;
	line-height: 1.5;
}

body.woocommerce-checkout #payment ul.payment_methods {
	margin: 0 0 8px !important;
	padding: 0 !important;
	border: 0 !important;
}

body.woocommerce-checkout #place_order:hover,
body.woocommerce-checkout .woocommerce-info .button:hover,
body.woocommerce-checkout .woocommerce-message .button:hover {
	background: #000 !important;
}

/* Métodos de pagamento. */
body.woocommerce-checkout #payment ul.payment_methods > li {
	margin: 0 0 10px;
	padding: 12px 14px;
	border: 1.5px solid var(--ajdf-line);
	border-radius: 10px;
	background: #fff;
}

body.woocommerce-checkout #payment ul.payment_methods > li:has(input:checked) {
	border-color: var(--ajdf-ink);
	box-shadow: 0 0 0 3px rgba(38, 45, 54, .12);
}

body.woocommerce-checkout #payment ul.payment_methods input[type="radio"] {
	accent-color: var(--ajdf-ink);
}

body.woocommerce-checkout #payment div.payment_box::before {
	display: none;
}

/* Avisos ("adicionado ao carrinho", erros, cupão). */
body.woocommerce-checkout .woocommerce-info::before,
body.woocommerce-checkout .woocommerce-message::before {
	display: none;
}

body.woocommerce-checkout .woocommerce-error {
	background: #fdecea;
	border-color: #f5c2bb;
	color: #7a271a;
}

/* Sem campo de notas da encomenda. */
body.woocommerce-checkout .woocommerce-additional-fields {
	display: none !important;
}

/* Produto do resumo em formato de cartão (sempre um único produto). */
body.woocommerce-checkout .woocommerce-checkout-review-order-table thead,
body.woocommerce-checkout .woocommerce-checkout-review-order-table .cart-subtotal {
	display: none;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table,
body.woocommerce-checkout .woocommerce-checkout-review-order-table tbody {
	display: block;
	border: 0 !important;
	margin-bottom: 16px !important;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table tr.cart_item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 20px;
	background: #fff;
	border: 1.5px solid var(--ajdf-ink);
	border-radius: 12px;
	box-shadow: 0 0 0 3px rgba(38, 45, 54, .12);
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table tr.cart_item td {
	display: block;
	padding: 0 !important;
	border: 0 !important;
	background: transparent;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table td.product-name {
	flex: 1;
	min-width: 0;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table td.product-total {
	flex: none;
	font-size: 1.15em;
	font-weight: 700;
	white-space: nowrap;
}

.ajdf-item-nome {
	display: block;
	font-weight: 600;
	color: var(--ajdf-ink);
}

.ajdf-item-desc {
	display: block;
	margin-top: 2px;
	font-size: .88em;
	color: #626b76;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table .ajdf-checkout-remove-item {
	margin: 8px 0 0;
}

/* Link "Remover" no resumo. */
.ajdf-checkout-remove-item {
	display: inline-block;
	margin-left: 8px;
	padding: 1px 10px;
	border: 1px solid #e6b8b3;
	border-radius: 999px;
	font-size: .8em;
}

/* Página de confirmação. */
.woocommerce-order .woocommerce-notice--success {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px 20px;
	border-radius: 10px;
	background: #eaf6ec;
	border: 1px solid #bfe3c3;
	color: #1e4620;
	font-weight: 600;
	font-size: 1.1em;
}

.woocommerce-order ul.woocommerce-order-overview {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 12px;
	margin: 20px 0 32px;
	padding: 0;
	list-style: none;
	border: 0;
}

.woocommerce-order ul.woocommerce-order-overview li {
	margin: 0;
	padding: 14px 16px;
	border: 1px solid #e2e4e8;
	border-radius: 10px;
	background: #fff;
	font-size: .85em;
	text-transform: uppercase;
	letter-spacing: .03em;
	color: #626b76;
}

.woocommerce-order ul.woocommerce-order-overview li strong {
	display: block;
	margin-top: 4px;
	font-size: 1.2em;
	text-transform: none;
	letter-spacing: 0;
	color: var(--ajdf-ink);
}

.woocommerce-order .woocommerce-order-details,
.woocommerce-order .woocommerce-customer-details {
	margin-bottom: 24px;
	padding: 20px;
	background: #fff;
	border: 1px solid #e2e4e8;
	border-radius: 12px;
}

.woocommerce-order .woocommerce-order-details__title,
.woocommerce-order .woocommerce-column__title {
	margin: 0 0 12px;
	font-size: 1.25em;
	font-weight: 600;
}

.woocommerce-order table.shop_table {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: collapse;
}

.woocommerce-order table.shop_table th,
.woocommerce-order table.shop_table td {
	padding: 10px 0;
	border: 0;
	border-bottom: 1px solid #edeef1;
	background: transparent;
	text-align: left;
}

.woocommerce-order table.shop_table td:last-child {
	text-align: right;
}

.woocommerce-order table.shop_table tfoot tr:last-child th,
.woocommerce-order table.shop_table tfoot tr:last-child td {
	border-bottom: 0;
}
