/**
 * Style front-endu wtyczki Elastyczne Zwroty dla WooCommerce.
 */

/* --- Formularz zwrotu --- */
.frwc-return-form-wrapper {
	margin: 1.5em 0;
}

.frwc-policy-description,
.frwc-instructions {
	background: #f7f7f7;
	border-left: 4px solid #2271b1;
	padding: 12px 16px;
	margin-bottom: 1.2em;
	border-radius: 3px;
}

.frwc-form-section {
	margin-bottom: 1.6em;
	padding-bottom: 1.2em;
	border-bottom: 1px solid #eee;
}

.frwc-form-section h3 {
	margin-top: 0;
	font-size: 1.1em;
}

/* --- Tabela produktów --- */
.frwc-products-table {
	width: 100%;
	border-collapse: collapse;
}

.frwc-products-table th,
.frwc-products-table td {
	padding: 10px;
	border-bottom: 1px solid #eee;
	text-align: left;
	vertical-align: middle;
}

.frwc-products-table .frwc-col-select,
.frwc-products-table .frwc-col-qty {
	width: 80px;
	text-align: center;
}

.frwc-qty-input {
	width: 60px;
	text-align: center;
}

.frwc-sku {
	color: #888;
	font-size: 0.9em;
}

.frwc-max-qty {
	color: #888;
	font-size: 0.9em;
}

/* --- Pola formularza --- */
.frwc-field {
	margin-bottom: 1em;
}

.frwc-field label {
	display: block;
	font-weight: 600;
	margin-bottom: 4px;
}

.frwc-input,
.frwc-textarea,
.frwc-select {
	width: 100%;
	max-width: 520px;
	padding: 8px 10px;
	border: 1px solid #ccc;
	border-radius: 4px;
	box-sizing: border-box;
}

.frwc-radio-group label,
.frwc-checkbox-group label {
	display: inline-block;
	font-weight: 400;
	margin-right: 16px;
}

.frwc-field-description {
	display: block;
	color: #888;
	font-size: 0.88em;
	margin-top: 4px;
}

.frwc-terms-label {
	font-weight: 400 !important;
	display: flex;
	gap: 8px;
	align-items: flex-start;
}

.required {
	color: #d63638;
}

/* --- Przyciski --- */
.frwc-button {
	background: #2271b1;
	color: #fff;
	border: none;
	padding: 10px 22px;
	border-radius: 4px;
	cursor: pointer;
	font-size: 1em;
}

.frwc-button:hover {
	background: #135e96;
	color: #fff;
}

.frwc-button-small {
	padding: 4px 12px;
	font-size: 0.9em;
}

.frwc-button-danger {
	background: #d63638;
	color: #fff;
}

.frwc-button-danger:hover {
	background: #b32d2e;
	color: #fff;
}

/* --- Statusy --- */
.frwc-status {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 12px;
	font-size: 0.85em;
	font-weight: 600;
	color: #fff;
}

.frwc-status-blue { background: #2271b1; }
.frwc-status-orange { background: #dba617; }
.frwc-status-green { background: #00a32a; }
.frwc-status-red { background: #d63638; }
.frwc-status-gray { background: #787c82; }
.frwc-status-purple { background: #8c5cd6; }

/* --- Historia --- */
.frwc-history {
	list-style: none;
	padding: 0;
	margin: 0;
}

.frwc-history li {
	padding: 10px 0;
	border-bottom: 1px solid #eee;
}

.frwc-history-note {
	margin: 6px 0 0;
	color: #555;
	font-style: italic;
}

/* --- Komunikaty --- */
.frwc-notice {
	padding: 12px 16px;
	border-radius: 4px;
	margin-bottom: 1.2em;
}

.frwc-notice-success {
	background: #edfaef;
	border-left: 4px solid #00a32a;
}

.frwc-notice-error {
	background: #fcf0f1;
	border-left: 4px solid #d63638;
}

/* --- Modal potwierdzenia --- */
.frwc-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.55);
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
}

.frwc-modal {
	background: #fff;
	border-radius: 8px;
	padding: 28px;
	max-width: 520px;
	width: 90%;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.frwc-modal-title {
	margin-top: 0;
	font-size: 1.3em;
}

.frwc-modal-summary {
	margin: 16px 0;
	max-height: 320px;
	overflow-y: auto;
}

.frwc-modal-summary ul {
	margin: 6px 0;
	padding-left: 20px;
}

.frwc-modal-actions {
	display: flex;
	gap: 12px;
	justify-content: flex-end;
	margin-top: 20px;
}

.frwc-modal-cancel {
	background: #f0f0f1;
	border: 1px solid #ccc;
	padding: 10px 18px;
	border-radius: 4px;
	cursor: pointer;
}

/* --- Formularz gościa --- */
.frwc-guest-verification {
	max-width: 480px;
}

.frwc-guest-intro {
	margin-bottom: 1.2em;
}
