/* OBD Zwroty – style frontendu */

.obdz-wrap {
	--obdz-border: #e3e6ea;
	--obdz-muted: #6b7280;
	--obdz-accent: #2b5cd9;
	max-width: 880px;
	margin: 0 auto;
}

.obdz-title {
	margin-bottom: .75em;
}

.obdz-intro {
	margin-bottom: 1.5em;
	color: var(--obdz-muted);
}

.obdz-notice {
	padding: 1em 1.25em;
	border-radius: 6px;
	margin-bottom: 1.5em;
	border-left: 4px solid #999;
	background: #f6f7f8;
}

.obdz-notice ul {
	margin: 0;
	padding-left: 1.2em;
}

.obdz-notice--error {
	border-left-color: #c0392b;
	background: #fdeceb;
	color: #7d1f16;
}

.obdz-notice--success {
	border-left-color: #2e7d32;
	background: #edf7ee;
	color: #1c4620;
}

.obdz-notice--success h3 {
	margin-top: 0;
}

.obdz-return-number {
	font-size: 1.25em;
	letter-spacing: .03em;
}

.obdz-form {
	background: #fff;
	border: 1px solid var(--obdz-border);
	border-radius: 8px;
	padding: 1.5em;
}

.obdz-field {
	display: flex;
	flex-direction: column;
	margin-bottom: 1.1em;
}

.obdz-field label {
	font-weight: 600;
	margin-bottom: .35em;
}

.obdz-field input[type="text"],
.obdz-field input[type="email"],
.obdz-field input[type="number"],
.obdz-field select,
.obdz-field textarea {
	width: 100%;
	padding: .65em .75em;
	border: 1px solid var(--obdz-border);
	border-radius: 5px;
	font-size: 1em;
	background: #fff;
}

.obdz-field input:focus,
.obdz-field select:focus,
.obdz-field textarea:focus {
	outline: 2px solid var(--obdz-accent);
	outline-offset: 1px;
}

.obdz-field--checkbox label {
	flex-direction: row;
	font-weight: 400;
	display: flex;
	gap: .5em;
	align-items: flex-start;
}

.obdz-hint,
.obdz-optional {
	font-size: .85em;
	color: var(--obdz-muted);
	margin-top: .3em;
	font-weight: 400;
}

.required {
	color: #c0392b;
}

.obdz-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 1em;
}

.obdz-hp {
	position: absolute !important;
	left: -9999px !important;
	height: 1px;
	overflow: hidden;
}

.obdz-section-title {
	margin: 1.75em 0 .75em;
	padding-bottom: .4em;
	border-bottom: 1px solid var(--obdz-border);
	font-size: 1.05em;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--obdz-muted);
}

.obdz-section-title:first-of-type {
	margin-top: 0;
}

.obdz-order-summary {
	background: #f6f7f8;
	border-radius: 8px;
	padding: 1em 1.25em;
	margin-bottom: 1.25em;
}

.obdz-order-summary h3 {
	margin: 0 0 .25em;
}

.obdz-order-summary p {
	margin: 0;
	color: var(--obdz-muted);
}

.obdz-items {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 1em;
}

.obdz-items th,
.obdz-items td {
	padding: .75em .5em;
	border-bottom: 1px solid var(--obdz-border);
	text-align: left;
	vertical-align: middle;
}

.obdz-items thead th {
	font-size: .8em;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--obdz-muted);
}

.obdz-col-check {
	width: 36px;
}

.obdz-col-price,
.obdz-col-qty {
	width: 130px;
	white-space: nowrap;
}

.obdz-item-row {
	cursor: pointer;
}

.obdz-item-row--selected {
	background: #f2f6ff;
}

.obdz-item-row--disabled {
	opacity: .5;
	cursor: default;
}

.obdz-sku,
.obdz-avail {
	display: block;
	font-size: .82em;
	color: var(--obdz-muted);
}

.obdz-item-qty {
	width: 90px;
	padding: .45em .5em;
	border: 1px solid var(--obdz-border);
	border-radius: 5px;
}

.obdz-estimate {
	text-align: right;
	font-size: 1.05em;
	margin-bottom: 1em;
}

.obdz-submit {
	margin-top: 1.5em;
}

.obdz-button {
	display: inline-block;
	background: var(--obdz-accent);
	color: #fff;
	border: none;
	border-radius: 5px;
	padding: .8em 1.6em;
	font-size: 1em;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
}

.obdz-button:hover {
	filter: brightness(.92);
	color: #fff;
}

/* Adres do odesłania towaru */
.obdz-ship-back {
	border: 1px solid var(--obdz-border);
	border-left: 4px solid #2e7d32;
	background: #f7fbf8;
	border-radius: 6px;
	padding: 1.25em 1.5em;
	margin: 1.5em 0;
}

.obdz-ship-back h3 {
	margin: 0 0 .6em;
	font-size: 1.05em;
}

.obdz-ship-back__address {
	font-style: normal;
	font-size: 1.05em;
	line-height: 1.6;
	font-weight: 600;
}

.obdz-ship-back__info {
	margin: .8em 0 0;
	color: var(--obdz-muted);
	font-size: .92em;
}

.obdz-ship-back__number {
	margin: .6em 0 0;
}

/* Konto klienta */
.obdz-account-table {
	width: 100%;
	border-collapse: collapse;
}

.obdz-account-table th,
.obdz-account-table td {
	padding: .75em .5em;
	border-bottom: 1px solid var(--obdz-border);
	text-align: left;
}

.obdz-status-badge {
	display: inline-block;
	padding: .25em .7em;
	border-radius: 999px;
	font-size: .82em;
	font-weight: 600;
	white-space: nowrap;
}

.obdz-detail-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 1em;
	margin-bottom: 1.5em;
}

.obdz-detail-box {
	background: #f6f7f8;
	border-radius: 8px;
	padding: 1em;
}

.obdz-detail-box h4 {
	margin: 0 0 .4em;
	font-size: .82em;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--obdz-muted);
}

.obdz-timeline {
	list-style: none;
	margin: 0;
	padding: 0;
	border-left: 2px solid var(--obdz-border);
}

.obdz-timeline li {
	position: relative;
	padding: 0 0 1.1em 1.25em;
}

.obdz-timeline li::before {
	content: "";
	position: absolute;
	left: -7px;
	top: .4em;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--obdz-accent);
}

.obdz-timeline .obdz-timeline-date {
	display: block;
	font-size: .82em;
	color: var(--obdz-muted);
}

@media (max-width: 640px) {
	.obdz-grid {
		grid-template-columns: 1fr;
	}

	.obdz-items thead {
		display: none;
	}

	.obdz-items,
	.obdz-items tbody,
	.obdz-items tr,
	.obdz-items td {
		display: block;
		width: 100%;
	}

	.obdz-items tr {
		border-bottom: 1px solid var(--obdz-border);
		padding: .5em 0;
		position: relative;
	}

	.obdz-items td {
		border: none;
		padding: .3em .5em .3em 2.5em;
	}

	.obdz-items td.obdz-col-check {
		position: absolute;
		left: 0;
		top: .8em;
		width: 2em;
		padding: 0;
	}

	.obdz-col-price,
	.obdz-col-qty {
		width: auto;
	}
}
