/**
 * ilGhera Contributo RAEE for WooCommerce - Frontend Styles
 *
 * @author ilGhera
 * @package ilghera-contributo-raee-for-woocommerce
 * @since 1.0.0
 */

/* Fee details */
.icrfw-fee-details {
	background-color: #f8f9fa;
}

.icrfw-fee-details td {
	padding: 10px !important;
}

.icrfw-details {
	font-size: 0.9em;
}

.icrfw-details summary {
	cursor: pointer;
	color: #0073aa;
	font-weight: 500;
}

.icrfw-details summary:hover {
	text-decoration: underline;
}

.icrfw-details[open] summary {
	margin-bottom: 10px;
}

.icrfw-details-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.95em;
	margin-top: 5px;
}

.icrfw-details-table th,
.icrfw-details-table td {
	padding: 5px 8px;
	text-align: left;
	border-bottom: 1px solid #e0e0e0;
}

.icrfw-details-table th {
	background-color: #e9ecef;
	font-weight: 600;
	font-size: 0.85em;
}

.icrfw-details-table td:nth-child(3),
.icrfw-details-table td:nth-child(4),
.icrfw-details-table td:nth-child(5),
.icrfw-details-table th:nth-child(3),
.icrfw-details-table th:nth-child(4),
.icrfw-details-table th:nth-child(5) {
	text-align: right;
}

/* Takeback section */
.icrfw-takeback-wrapper {
	background-color: #f0f7fc;
	border: 1px solid #c3daea;
	border-radius: 4px;
	padding: 15px 20px;
	margin: 20px 0;
}

.icrfw-takeback-wrapper h3 {
	margin-top: 0;
	margin-bottom: 10px;
	color: #0073aa;
	font-size: 1.1em;
}

.icrfw-takeback-field {
	margin-bottom: 10px !important;
}

.icrfw-takeback-field label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.icrfw-takeback-field input[type="checkbox"] {
	margin-top: 3px;
}

.icrfw-takeback-text {
	font-weight: 500;
}

.icrfw-takeback-info {
	background-color: #fff;
	border-left: 3px solid #0073aa;
	padding: 10px 15px;
	margin: 10px 0;
	font-size: 0.9em;
}

.icrfw-takeback-details {
	background-color: #fff;
	padding: 15px;
	border-radius: 4px;
	margin: 10px 0;
}

.icrfw-takeback-details label {
	font-weight: 600;
	display: block;
	margin-bottom: 5px;
}

.icrfw-takeback-details .optional {
	font-weight: normal;
	color: #666;
}

.icrfw-takeback-details textarea {
	width: 100%;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 4px;
}

.icrfw-takeback-note {
	color: #666;
	margin-top: 10px;
	margin-bottom: 0;
}

/* Thank you page */
.icrfw-thankyou-info,
.icrfw-takeback-thankyou {
	background-color: #f0f7fc;
	border: 1px solid #c3daea;
	border-radius: 4px;
	padding: 15px 20px;
	margin: 20px 0;
}

.icrfw-thankyou-info h2,
.icrfw-takeback-thankyou h2 {
	margin-top: 0;
	color: #0073aa;
}

/* Order details (My Account) */
.icrfw-takeback-order-details {
	background-color: #f8f9fa;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	padding: 15px 20px;
	margin: 20px 0;
}

.icrfw-takeback-order-details h2 {
	margin-top: 0;
	font-size: 1.2em;
}

.icrfw-takeback-badge {
	display: inline-block;
	background-color: #00a32a;
	color: #fff;
	padding: 3px 10px;
	border-radius: 3px;
	font-size: 0.85em;
	font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
	.icrfw-details-table {
		font-size: 0.85em;
	}

	.icrfw-details-table th,
	.icrfw-details-table td {
		padding: 4px 5px;
	}

	.icrfw-takeback-wrapper {
		padding: 12px 15px;
	}
}
