/**
 * Estilos públicos do Pedido Direto WooCommerce.
 * Usa a variável --pdw-primary definida inline conforme a cor configurada.
 */

:root {
	--pdw-primary: #1f7a4d;
}

/* ----- Campos do checkout ----- */
.pdw-checkout-fields {
	margin: 24px 0;
	padding: 20px;
	border: 1px solid #e3e3e3;
	border-radius: 10px;
	background: #fbfbfb;
}

.pdw-checkout-fields .pdw-section-title {
	margin-top: 0;
	margin-bottom: 14px;
	font-size: 1.1em;
}

/* Tipo de pedido (entrega/retirada) */
.pdw-order-type {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 18px;
}

.pdw-type-option {
	flex: 1 1 140px;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 14px;
	border: 2px solid #ddd;
	border-radius: 10px;
	cursor: pointer;
	transition: border-color .15s ease, background .15s ease;
	margin: 0;
}

.pdw-type-option:hover {
	border-color: var(--pdw-primary);
}

.pdw-type-option input {
	margin: 0;
}

.pdw-type-option:has(input:checked) {
	border-color: var(--pdw-primary);
	background: rgba(31, 122, 77, 0.06);
}

.pdw-type-option span {
	font-weight: 600;
}

/* Selects */
.pdw-select {
	width: 100%;
	min-height: 40px;
}

.pdw-fee-hint {
	display: inline-block;
	margin-top: 6px;
	font-size: 0.92em;
	color: var(--pdw-primary);
	font-weight: 600;
}

.pdw-delivery-fields {
	margin-bottom: 8px;
}

.pdw-schedule-fields {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

.pdw-schedule-fields .form-row-first,
.pdw-schedule-fields .form-row-last {
	flex: 1 1 200px;
}

/* ----- Adicionais no produto ----- */
.pdw-addons {
	margin: 18px 0;
}

.pdw-addon-group {
	border: 1px solid #e3e3e3;
	border-radius: 10px;
	padding: 14px 16px;
	margin: 0 0 14px;
}

.pdw-addon-group legend {
	font-weight: 700;
	padding: 0 6px;
}

.pdw-required {
	color: #c0392b;
}

.pdw-addon-option {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 6px;
	border-bottom: 1px dashed #eee;
	cursor: pointer;
	margin: 0;
}

.pdw-addon-option:last-child {
	border-bottom: 0;
}

.pdw-addon-name {
	flex: 1;
}

.pdw-addon-price {
	color: var(--pdw-primary);
	font-weight: 600;
	white-space: nowrap;
}

.pdw-addon-error {
	color: #c0392b;
	font-size: 0.9em;
	margin-top: 6px;
}

.pdw-addons-total {
	margin-top: 12px;
	font-weight: 700;
}

/* Adicionais exibidos no carrinho/checkout */
.pdw-cart-addons {
	margin: 6px 0 0;
	padding-left: 16px;
	font-size: 0.9em;
	list-style: disc;
}
