/* SolidCos Returns System — public withdrawal flow */

.srs {
	max-width: 640px;
	margin: 0 auto;
}

.srs-heading {
	margin-bottom: .25em;
}

.srs-order-ref {
	color: #666;
	margin-top: 0;
}

/* Wizard step indicator */
.srs-steps {
	display: flex;
	list-style: none;
	/* Cap + center so it renders identically regardless of container width
	   (the account/tabs view is wider than the 640px flow). */
	max-width: 560px;
	margin: 0 auto 2em;
	padding: 0;
	font-size: 16px;
}

.srs-steps__step {
	position: relative;
	flex: 1;
	text-align: center;
	font-size: .85em;
	color: #9aa0a6;
}

.srs-steps__step::before {
	content: "";
	position: absolute;
	top: 15px;
	left: -50%;
	width: 100%;
	height: 2px;
	background: #e2e2e2;
	z-index: 0;
}

.srs-steps__step:first-child::before {
	display: none;
}

.srs-steps__num {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	margin: 0 auto .45em;
	border-radius: 50%;
	background: #e2e2e2;
	color: #fff;
	font-weight: 700;
	font-size: .9em;
}

.srs-steps__label {
	display: block;
}

.srs-steps__step.is-active {
	color: #2c2c2c;
	font-weight: 600;
}

.srs-steps__step.is-active .srs-steps__num,
.srs-steps__step.is-complete .srs-steps__num {
	background: #7ab55c;
}

.srs-steps__step.is-complete {
	color: #5a5a5a;
}

.srs-steps__step.is-active::before,
.srs-steps__step.is-complete::before {
	background: #7ab55c;
}

.srs-field {
	display: flex;
	flex-direction: column;
	gap: .35em;
	margin-bottom: 1.25em;
}

.srs-field label {
	font-weight: 600;
}

/* Wider than the default 640px for a comfortable item list. */
.srs.srs-select {
	max-width: 760px;
}

.srs-items {
	list-style: none;
	margin: 1.25em 0 1.5em;
	padding: 0;
}

.srs-item {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .75em;
	padding: 1em 1.15em;
	margin-bottom: .75em;
	background: #fff;
	border: 1px solid #e6e6e6;
	border-radius: 8px;
	transition: box-shadow .15s ease, border-color .15s ease;
}

.srs-item:not(.srs-item--disabled):hover {
	border-color: #cfcfcf;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
}

.srs-item__main {
	display: flex;
	align-items: center;
	gap: .75em;
	flex: 1 1 60%;
	cursor: pointer;
}

.srs-item__image img {
	width: 88px;
	height: auto;
	border-radius: 4px;
}

.srs-item__name {
	font-weight: 600;
}

.srs-item--disabled {
	opacity: .6;
}

.srs-item__qty {
	display: flex;
	align-items: center;
	gap: .4em;
}

.srs-item__qty input {
	width: 4.5em;
}

.srs-item__remaining,
.srs-item__note {
	color: #777;
	font-size: .9em;
}

.srs-item__badge {
	flex: 1 1 100%;
	font-size: .85em;
	line-height: 1.4;
	padding: .5em .7em;
	border-radius: 4px;
	background: #f4f4f4;
	color: #444;
}

.srs-badge--hygiene_sealed {
	background: #fff4e5;
	color: #8a5a00;
}

.srs-badge--custom {
	background: #fdecea;
	color: #8a1f11;
}

.srs-notice {
	padding: .85em 1em;
	border-radius: 4px;
	margin-bottom: 1.25em;
}

.srs-notice--error {
	background: #fdecea;
	color: #8a1f11;
}

.srs-notice--warning {
	background: #fff4e5;
	color: #8a5a00;
}

.srs-notice--info {
	background: #e8f4fd;
	color: #0b5577;
}

.srs-notice--success {
	background: #e7f6ec;
	color: #1a7f37;
}

.srs-disclosure {
	background: #f8f8f8;
	border: 1px solid #e2e2e2;
	border-radius: 4px;
	padding: 1em 1.25em;
	margin: 1.25em 0;
}

.srs-disclosure ul {
	margin: 0;
	padding-left: 1.2em;
}

.srs-receipt-form {
	color: #555;
}

.srs-button--confirm {
	font-weight: 700;
}

/* Confirm step: back/edit + confirm side by side. */
.srs-actions {
	display: flex;
	flex-wrap: wrap;
	gap: .75em;
	align-items: center;
}

.srs-button--back {
	background: transparent;
	color: #555;
	border: 1px solid #d0d0d0;
}

.srs-button--back:hover {
	background: #f4f4f4;
	color: #222;
}

/* Starting page: purchase-terms summary shown below the lookup form. */
.srs-terms-summary {
	margin-top: 2em;
	padding-top: 1.5em;
	border-top: 1px solid #ececec;
}

.srs-terms-summary__title {
	margin: 0 0 .5em;
	font-size: 1.05em;
}

.srs-terms-summary ul {
	margin: 0 0 .75em;
	padding-left: 1.2em;
	color: #555;
}

.srs-terms-summary .srs-terms-link {
	margin: 0;
}

.srs-items--review .srs-item {
	justify-content: space-between;
}

.srs-summary-list {
	list-style: none;
	padding: 0;
	color: #555;
}

/* Wider layout for the account order picker than the default .srs 640px. */
.srs.srs-account-orders {
	max-width: 900px;
}

.srs-account-orders__empty {
	color: #666;
}

.srs-orders {
	list-style: none;
	margin: 1.5em 0 0;
	padding: 0;
}

.srs-orders__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5em;
	padding: 1em 1.25em;
	margin-bottom: .75em;
	background: #fff;
	border: 1px solid #e6e6e6;
	border-radius: 8px;
	transition: box-shadow .15s ease, border-color .15s ease;
}

.srs-orders__row:hover {
	border-color: #cfcfcf;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
}

.srs-orders__info {
	display: flex;
	flex-direction: column;
	gap: .2em;
	min-width: 0;
}

.srs-orders__num {
	font-weight: 700;
	font-size: 1.02em;
}

.srs-orders__meta {
	color: #777;
	font-size: .9em;
}

.srs-orders__dot {
	margin: 0 .4em;
	color: #c4c4c4;
}

.srs-orders__items {
	list-style: none;
	margin: .6em 0 0;
	padding: 0;
	color: #555;
	font-size: .88em;
}

.srs-orders__items li {
	margin: 0 0 .15em;
}

.srs-orders__qty {
	color: #999;
	margin-right: .35em;
}

.srs-orders__cta {
	flex: 0 0 auto;
}

.srs-orders__cta .srs-button {
	white-space: nowrap;
	padding: .35em .8em;
	font-size: .8em;
	line-height: 1.3;
}

.srs-orders__status {
	color: #999;
	font-size: .9em;
}

@media (max-width: 520px) {
	.srs-orders__row {
		flex-direction: column;
		align-items: flex-start;
		gap: .6em;
	}

	.srs-orders__cta {
		width: 100%;
	}

	.srs-orders__cta .srs-button {
		display: block;
		text-align: center;
	}
}

/* My Account nav icon for our endpoint — matches Shoptimizer's masked-SVG style. */
.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--angra-kop a::before {
	background: #111;
	-webkit-mask-image: url("data:image/svg+xml;charset=utf8,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9 15L3 9M3 9L9 3M3 9H15C18.3137 9 21 11.6863 21 15C21 18.3137 18.3137 21 15 21H12' stroke='%234A5568' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml;charset=utf8,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9 15L3 9M3 9L9 3M3 9H15C18.3137 9 21 11.6863 21 15C21 18.3137 18.3137 21 15 21H12' stroke='%234A5568' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Account tabs (Start a return / Your returns) — CSS-only radio tabs. */
.srs.srs-account-tabs {
	max-width: 900px;
}

.srs-tabs__radio {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.srs-tabs__nav {
	display: flex;
	gap: .25em;
	border-bottom: 2px solid #e6e6e6;
	margin-bottom: 1.75em;
}

.srs-tabs__tab {
	cursor: pointer;
	padding: .7em 1.1em;
	margin-bottom: -2px;
	font-weight: 600;
	color: #8a8a8a;
	border-bottom: 2px solid transparent;
	transition: color .15s ease, border-color .15s ease;
}

.srs-tabs__tab:hover {
	color: #4a4a4a;
}

.srs-tabs__panel {
	display: none;
}

.srs-tabs__radio--start:checked ~ .srs-tabs__nav .srs-tabs__tab--start,
.srs-tabs__radio--returns:checked ~ .srs-tabs__nav .srs-tabs__tab--returns {
	color: #2c2c2c;
	border-bottom-color: #7ab55c;
}

.srs-tabs__radio--start:checked ~ .srs-tabs__panel--start,
.srs-tabs__radio--returns:checked ~ .srs-tabs__panel--returns {
	display: block;
}

/* Inner sections already center themselves; keep them flush inside the panel. */
.srs-tabs__panel .srs {
	margin-left: 0;
	margin-right: 0;
	max-width: none;
}

.srs-returns__empty {
	color: #666;
}

/* Customer "Your returns" tracking list. */
.srs.srs-account-returns {
	max-width: 900px;
	margin-bottom: 2.5em;
}

.srs-returns__title {
	margin-bottom: .25em;
}

.srs-returns {
	list-style: none;
	margin: 1.25em 0 0;
	padding: 0;
}

.srs-returns__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5em;
	padding: 1em 1.25em;
	margin-bottom: .75em;
	background: #fff;
	border: 1px solid #e6e6e6;
	border-radius: 8px;
}

.srs-returns__info {
	display: flex;
	flex-direction: column;
	gap: .2em;
	min-width: 0;
}

.srs-returns__num {
	font-weight: 700;
	font-size: 1.02em;
}

.srs-returns__meta {
	color: #777;
	font-size: .9em;
}

.srs-returns__items {
	list-style: none;
	margin: .6em 0 0;
	padding: 0;
	color: #555;
	font-size: .88em;
}

.srs-returns__items li {
	margin: 0 0 .15em;
}

.srs-returns__qty {
	color: #999;
	margin-right: .35em;
}

.srs-returns__side {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: .6em;
	text-align: right;
}

.srs-returns__status {
	display: inline-block;
	padding: .28em .7em;
	border-radius: 999px;
	font-size: .82em;
	font-weight: 600;
	background: #eef1f4;
	color: #4a5560;
	white-space: nowrap;
}

.srs-returns__status--label_sent,
.srs-returns__status--in_transit {
	background: #e8f4fd;
	color: #0b5577;
}

.srs-returns__status--received {
	background: #fff4e5;
	color: #8a5a00;
}

.srs-returns__status--refunded {
	background: #e7f6ec;
	color: #1a7f37;
}

.srs-returns__status--rejected {
	background: #fdecea;
	color: #8a1f11;
}

.srs-returns__label {
	white-space: nowrap;
	padding: .35em .8em;
	font-size: .8em;
	line-height: 1.3;
}

.srs-returns__qr {
	white-space: nowrap;
	padding: .35em .8em;
	font-size: .8em;
	line-height: 1.3;
}

/* Cancel is a low-emphasis, destructive-ish action. */
.srs-returns__cancel {
	white-space: nowrap;
	padding: .35em .8em;
	font-size: .8em;
	line-height: 1.3;
	background: transparent;
	color: #8a1f11;
	border: 1px solid #e0b4ae;
}

.srs-returns__cancel:hover {
	background: #fdecea;
	color: #8a1f11;
}

@media (max-width: 520px) {
	.srs-returns__row {
		flex-direction: column;
		align-items: flex-start;
		gap: .6em;
	}

	.srs-returns__side {
		align-items: flex-start;
		text-align: left;
		width: 100%;
	}
}

/* Dedicated /angerratt/ terms page wrapper. */
.srs-terms__inner {
	max-width: 760px;
	margin: 2.5em auto;
	padding: 0 1em;
}

.srs-terms__inner h2 {
	margin-top: 1.6em;
}

/* ---- My Account orders: searchable table + accordion ---- */
.srs-orders-search {
	display: flex;
	justify-content: flex-end;
	margin: 1em 0;
}

.srs-orders-search__input {
	width: 100%;
	max-width: 220px;
	box-sizing: border-box;
	padding: .4em .65em;
	border: 1px solid #d5d5d5;
	border-radius: 6px;
	font-size: .85em;
}

.srs-orders-tablewrap {
	overflow-x: auto;
}

.srs-orders-table {
	width: 100%;
	border-collapse: collapse;
	margin: 0;
}

.srs-orders-table thead th {
	text-align: left;
	font-size: .78em;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: #888;
	font-weight: 600;
	padding: .5em .6em;
	border-bottom: 2px solid #eee;
}

.srs-orders-table td {
	padding: .7em .6em;
	border-bottom: 1px solid #eee;
	vertical-align: middle;
}

.srs-col-action {
	text-align: right;
	white-space: nowrap;
}

/* Action shown as a text link rather than a button. */
.srs-orders__action-link {
	color: #1a7f37;
	text-decoration: underline;
	white-space: nowrap;
	font-size: .9em;
}

.srs-orders__action-link:hover {
	color: #145c28;
}

/* Order cell = accordion toggle */
.srs-order-toggle {
	display: inline-flex;
	align-items: baseline;
	gap: .5em;
	background: none;
	border: 0;
	padding: 0;
	margin: 0;
	font: inherit;
	color: inherit;
	cursor: pointer;
	text-align: left;
}

.srs-order-toggle__chevron {
	display: inline-block;
	transition: transform .15s ease;
	color: #999;
	font-size: 1.1em;
	line-height: 1;
}

.srs-order-row.is-open .srs-order-toggle__chevron {
	transform: rotate(90deg);
}

.srs-order-toggle__num {
	font-weight: 600;
}

.srs-order-toggle__count {
	font-size: .85em;
	color: #999;
}

.srs-order-row.is-open td {
	border-bottom-color: transparent;
}

/* Expanded product detail row */
.srs-order-details > td {
	background: #fafafa;
	padding: .3em 1.2em 1em;
}

.srs-order-items {
	list-style: none;
	margin: 0;
	padding: 0;
}

.srs-order-items li {
	padding: .2em 0;
	color: #555;
}

.srs-order-items__qty {
	display: inline-block;
	min-width: 2.2em;
	color: #999;
}

.srs-orders__status {
	color: #999;
	font-size: .9em;
}

.srs-orders__noresults {
	padding: 1em .2em;
	color: #888;
}

/* Pagination */
.srs-orders-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: .3em;
	justify-content: center;
	margin-top: 1.2em;
}

.srs-orders-pagination .srs-page {
	min-width: 2.2em;
	padding: .35em .6em;
	border: 1px solid #ddd;
	border-radius: 5px;
	background: #fff;
	color: #333;
	font-size: .9em;
	line-height: 1.3;
	cursor: pointer;
}

.srs-orders-pagination .srs-page:hover:not( :disabled ):not( .is-current ) {
	border-color: #bbb;
	background: #f6f6f6;
}

.srs-orders-pagination .srs-page.is-current {
	background: #222;
	border-color: #222;
	color: #fff;
	font-weight: 600;
	cursor: default;
}

.srs-orders-pagination .srs-page:disabled {
	opacity: .4;
	cursor: default;
}

/* Stack the table into cards on small screens. */
@media ( max-width: 600px ) {
	.srs-orders-table thead {
		display: none;
	}

	.srs-orders-table,
	.srs-orders-table tbody,
	.srs-orders-table tr,
	.srs-orders-table td {
		display: block;
		width: 100%;
		box-sizing: border-box;
	}

	.srs-order-row {
		margin-top: 1em;
		border: 1px solid #eee;
		border-radius: 8px;
		padding: .4em .2em;
	}

	.srs-orders-table .srs-order-row td {
		border-bottom: 0;
		padding: .35em .8em;
	}

	.srs-col-date::before,
	.srs-col-total::before {
		content: attr(data-label) ": ";
		color: #999;
		font-size: .85em;
	}

	.srs-col-action {
		text-align: left;
		padding-top: .6em !important;
	}

	.srs-col-action .srs-button {
		display: block;
		text-align: center;
	}

	.srs-order-details {
		border: 1px solid #eee;
		border-top: 0;
		border-radius: 0 0 8px 8px;
		margin-top: -1em;
	}
}
