/*
 * StayRent host withdrawals.
 *
 * This file is intentionally plugin-owned: payout UI and workflow styles stay
 * independent from the active theme's global presentation.
 */

.srm-withdrawal-page {
	display: grid;
	gap: 24px;
}

.srm-withdrawal-balance {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 220px;
	padding: 40px;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, .08);
	border-radius: 20px;
	color: #fff;
	background:
		radial-gradient(circle at 82% 14%, rgba(255, 149, 171, .25), transparent 32%),
		linear-gradient(135deg, #251321 0%, #45243d 62%, #61354d 100%);
	box-shadow: 0 20px 50px rgba(43, 21, 40, .2);
}

.srm-withdrawal-balance::after {
	position: absolute;
	right: -72px;
	bottom: -112px;
	width: 310px;
	height: 310px;
	border: 1px solid rgba(255, 255, 255, .12);
	border-radius: 50%;
	box-shadow: 0 0 0 30px rgba(255, 255, 255, .03);
	content: "";
}

.srm-withdrawal-balance > div,
.srm-withdrawal-balance-icon {
	position: relative;
	z-index: 1;
}

.srm-withdrawal-balance .srm-eyebrow {
	color: #ffacbb;
}

.srm-withdrawal-balance h2 {
	margin: 8px 0 4px;
	color: #fff;
	font-size: clamp(22px, 2.3vw, 31px);
	letter-spacing: -.03em;
}

.srm-withdrawal-balance > div > strong {
	display: block;
	margin: 8px 0;
	color: #fff;
	font-size: clamp(38px, 5vw, 62px);
	font-weight: 780;
	letter-spacing: -.055em;
	line-height: 1;
}

.srm-withdrawal-balance p {
	margin: 14px 0 0;
	color: rgba(255, 255, 255, .7);
	font-size: 14px;
}

.srm-withdrawal-balance-icon {
	display: grid;
	place-items: center;
	width: 76px;
	height: 76px;
	margin-right: 34px;
	border: 1px solid rgba(255, 255, 255, .12);
	border-radius: 22px;
	color: #fff;
	background: rgba(255, 255, 255, .09);
	backdrop-filter: blur(8px);
}

.srm-withdrawal-balance-icon svg {
	width: 34px;
	height: 34px;
}

.srm-withdrawal-stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.srm-withdrawal-stats article {
	display: grid;
	gap: 5px;
	min-width: 0;
	padding: 22px;
	border: 1px solid #e8e3e8;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(25, 18, 27, .045);
}

.srm-withdrawal-stats small {
	color: #756e78;
	font-size: 11px;
	font-weight: 760;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.srm-withdrawal-stats strong {
	overflow: hidden;
	color: #201a21;
	font-size: clamp(21px, 2.1vw, 28px);
	letter-spacing: -.035em;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.srm-withdrawal-stats span {
	color: #817a84;
	font-size: 12px;
}

.srm-withdrawal-layout {
	display: grid;
	grid-template-columns: minmax(0, 1.55fr) minmax(280px, .75fr);
	gap: 20px;
	align-items: start;
}

.srm-withdrawal-page .srm-panel {
	border: 1px solid #e8e3e8;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 12px 32px rgba(25, 18, 27, .055);
}

.srm-withdrawal-form-panel {
	padding: 30px;
}

.srm-withdrawal-form-panel .srm-panel-heading {
	margin-bottom: 22px;
}

.srm-withdrawal-form-panel .srm-panel-heading h2,
.srm-withdrawal-guide h2,
.srm-withdrawal-history .srm-panel-heading h2 {
	margin: 5px 0;
	color: #1d181e;
	font-size: clamp(24px, 2.3vw, 32px);
	letter-spacing: -.035em;
}

.srm-withdrawal-form-panel .srm-panel-heading p {
	margin: 4px 0 0;
	color: #756e78;
}

.srm-withdrawal-limit-note {
	display: flex;
	align-items: flex-start;
	gap: 11px;
	margin-bottom: 20px;
	padding: 14px;
	border: 1px solid #f3d59f;
	border-radius: 12px;
	color: #714815;
	background: #fff9ec;
}

.srm-withdrawal-limit-note > span {
	display: grid;
	place-items: center;
	flex: 0 0 24px;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	background: #b97717;
}

.srm-withdrawal-limit-note p {
	margin: 1px 0;
	font-size: 13px;
	line-height: 1.55;
}

.srm-withdrawal-form {
	display: grid;
	gap: 22px;
}

.srm-payout-amount-field {
	display: grid;
	gap: 8px;
}

.srm-payout-amount-field > label,
.srm-payout-methods legend,
.srm-payout-destination label > span {
	color: #38313a;
	font-size: 12px;
	font-weight: 760;
	letter-spacing: .045em;
}

.srm-payout-amount-field > div {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	min-height: 58px;
	overflow: hidden;
	border: 1px solid #d9d3da;
	border-radius: 13px;
	background: #fff;
	transition: border-color .16s ease, box-shadow .16s ease;
}

.srm-payout-amount-field > div:focus-within {
	border-color: #d92d4d;
	box-shadow: 0 0 0 3px rgba(217, 45, 77, .12);
}

.srm-payout-amount-field > div > span {
	padding-left: 16px;
	color: #6e6670;
	font-size: 15px;
	font-weight: 800;
}

.srm-payout-amount-field input {
	width: 100%;
	min-height: 56px;
	padding: 0 12px;
	border: 0 !important;
	outline: 0 !important;
	box-shadow: none !important;
	color: #1f1920;
	font-size: 23px;
	font-weight: 740;
}

.srm-payout-amount-field button {
	min-height: 44px;
	margin-right: 9px;
	padding: 0 13px;
	border: 0;
	border-radius: 9px;
	color: #bd2341;
	font-size: 12px;
	font-weight: 760;
	background: #fff0f3;
	cursor: pointer;
}

.srm-payout-amount-field button:hover {
	background: #ffe2e8;
}

.srm-payout-amount-field > small {
	color: #7a737c;
	font-size: 12px;
}

.srm-payout-methods {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
	border: 0;
}

.srm-payout-methods legend {
	grid-column: 1 / -1;
	margin-bottom: 8px;
	padding: 0;
}

.srm-payout-methods > label {
	position: relative;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 12px;
	min-height: 78px;
	padding: 13px;
	border: 1px solid #ded8df;
	border-radius: 13px;
	background: #fff;
	cursor: pointer;
	transition: border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease;
}

.srm-payout-methods > label:hover {
	border-color: #c9bec8;
	transform: translateY(-1px);
}

.srm-payout-methods > label.is-selected {
	border-color: #d92d4d;
	background: #fff8f9;
	box-shadow: 0 0 0 3px rgba(217, 45, 77, .08);
}

.srm-payout-methods input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.srm-payout-method-icon {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 11px;
	font-size: 19px;
	background: #f5f2f5;
}

.srm-payout-method-icon.is-paypal {
	color: #0c5aa6;
	font-family: Georgia, serif;
	font-size: 23px;
	font-style: italic;
	font-weight: 800;
	background: #eaf4ff;
}

.srm-payout-methods strong,
.srm-payout-methods small {
	display: block;
}

.srm-payout-methods strong {
	color: #2b252c;
	font-size: 14px;
}

.srm-payout-methods small {
	margin-top: 2px;
	color: #817982;
	font-size: 11px;
	line-height: 1.4;
}

.srm-payout-methods i {
	width: 18px;
	height: 18px;
	border: 1px solid #bdb6bd;
	border-radius: 50%;
	box-shadow: inset 0 0 0 4px #fff;
	background: #fff;
}

.srm-payout-methods .is-selected i {
	border-color: #d92d4d;
	background: #d92d4d;
}

.srm-payout-destination {
	display: none;
	gap: 14px;
	padding: 18px;
	border: 1px solid #ebe6eb;
	border-radius: 14px;
	background: #fbfafb;
}

.srm-payout-destination.is-active {
	display: grid;
}

.srm-payout-destination .srm-form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.srm-payout-destination label {
	display: grid;
	gap: 7px;
	margin: 0;
}

.srm-payout-destination label > span small {
	color: #8a838b;
	font-weight: 500;
}

.srm-payout-destination input {
	width: 100%;
	min-height: 46px;
	padding: 10px 12px;
	border: 1px solid #d9d3da;
	border-radius: 10px;
	color: #2d272e;
	background: #fff;
}

.srm-payout-destination input:focus {
	border-color: #d92d4d;
	outline: 0;
	box-shadow: 0 0 0 3px rgba(217, 45, 77, .1);
}

.srm-payout-destination > p {
	margin: -2px 0 0;
	color: #7d757f;
	font-size: 12px;
}

.srm-payout-confirm {
	display: flex !important;
	align-items: flex-start;
	gap: 10px;
	margin: 0 !important;
	color: #5f5761;
	font-size: 12px !important;
	line-height: 1.55;
}

.srm-payout-confirm input {
	flex: 0 0 auto;
	width: 17px !important;
	height: 17px;
	margin-top: 1px;
	accent-color: #d92d4d;
}

.srm-withdrawal-form .srm-payout-submit {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	min-height: 52px;
	border-radius: 12px;
}

.srm-payout-security {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	margin: -10px 0 0;
	color: #777079;
	font-size: 11px;
}

.srm-payout-security span {
	color: #078260;
	font-weight: 900;
}

.srm-withdrawal-guide {
	position: sticky;
	top: 92px;
	padding: 28px;
}

.srm-withdrawal-guide > p {
	color: #746d76;
}

.srm-withdrawal-guide ol {
	display: grid;
	gap: 0;
	margin: 24px 0;
	padding: 0;
	list-style: none;
}

.srm-withdrawal-guide li {
	position: relative;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 12px;
	padding-bottom: 22px;
}

.srm-withdrawal-guide li:not(:last-child)::after {
	position: absolute;
	top: 31px;
	bottom: 4px;
	left: 15px;
	width: 1px;
	background: #e3dde4;
	content: "";
}

.srm-withdrawal-guide li > span {
	position: relative;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 31px;
	height: 31px;
	border: 1px solid #f0cbd2;
	border-radius: 50%;
	color: #c52644;
	font-size: 11px;
	font-weight: 800;
	background: #fff3f5;
}

.srm-withdrawal-guide li strong {
	color: #2e282f;
	font-size: 13px;
}

.srm-withdrawal-guide li p {
	margin: 3px 0 0;
	color: #7c747e;
	font-size: 12px;
	line-height: 1.55;
}

.srm-withdrawal-guide-note {
	display: flex;
	gap: 11px;
	padding: 15px;
	border-radius: 12px;
	color: #25624f;
	background: #eef9f5;
}

.srm-withdrawal-guide-note > span {
	flex: 0 0 auto;
}

.srm-withdrawal-guide-note svg {
	width: 22px;
	height: 22px;
}

.srm-withdrawal-guide-note p,
.srm-withdrawal-guide-note strong {
	display: block;
	margin: 0;
	font-size: 11px;
	line-height: 1.5;
}

.srm-withdrawal-guide-note strong {
	margin-bottom: 2px;
	font-size: 12px;
}

.srm-withdrawal-history {
	padding: 28px 30px;
}

.srm-withdrawal-history .srm-panel-heading {
	margin-bottom: 18px;
}

.srm-payout-history-list {
	display: grid;
}

.srm-payout-history-list > article {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 14px;
	min-width: 0;
	padding: 18px 2px;
	border-top: 1px solid #eee9ee;
}

.srm-payout-history-icon {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 12px;
	color: #a96b12;
	font-weight: 850;
	background: #fff6e7;
}

.srm-payout-history-icon.is-paid {
	color: #067457;
	background: #e8f8f2;
}

.srm-payout-history-icon.is-rejected,
.srm-payout-history-icon.is-cancelled {
	color: #b42318;
	background: #fff0ef;
}

.srm-payout-history-main {
	min-width: 0;
}

.srm-payout-history-main > div {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 9px;
}

.srm-payout-history-main strong {
	color: #2b252c;
	font-size: 14px;
}

.srm-payout-history-main p,
.srm-payout-history-main small,
.srm-payout-history-main em {
	display: block;
	margin: 3px 0 0;
	overflow-wrap: anywhere;
}

.srm-payout-history-main p {
	color: #625b64;
	font-size: 12px;
}

.srm-payout-history-main small {
	color: #8b838d;
	font-size: 11px;
}

.srm-payout-history-main em {
	padding-top: 4px;
	color: #a63b4f;
	font-size: 11px;
	font-style: normal;
}

.srm-payout-history-amount {
	display: grid;
	justify-items: end;
	gap: 7px;
}

.srm-payout-history-amount > strong {
	color: #241e25;
	font-size: 15px;
}

.srm-payout-history-amount form {
	margin: 0;
}

.srm-payout-history-amount button {
	padding: 0;
	border: 0;
	color: #a52a42;
	font-size: 11px;
	font-weight: 700;
	text-decoration: underline;
	background: transparent;
	cursor: pointer;
}

.srm-withdrawal-empty {
	display: grid;
	justify-items: center;
	padding: 44px 20px;
	border: 1px dashed #ddd6dd;
	border-radius: 14px;
	text-align: center;
	background: #fcfbfc;
}

.srm-withdrawal-empty > span {
	display: grid;
	place-items: center;
	width: 50px;
	height: 50px;
	border-radius: 14px;
	color: #bd2945;
	background: #fff0f3;
}

.srm-withdrawal-empty svg {
	width: 25px;
	height: 25px;
}

.srm-withdrawal-empty h3 {
	margin: 12px 0 4px;
}

.srm-withdrawal-empty p {
	margin: 0;
	color: #7a727c;
	font-size: 13px;
}

@media (max-width: 1024px) {
	.srm-withdrawal-layout {
		grid-template-columns: 1fr;
	}

	.srm-withdrawal-guide {
		position: static;
	}
}

@media (max-width: 720px) {
	.srm-withdrawal-page {
		gap: 16px;
	}

	.srm-withdrawal-balance {
		min-height: 196px;
		padding: 28px 22px;
	}

	.srm-withdrawal-balance-icon {
		width: 58px;
		height: 58px;
		margin-right: 0;
	}

	.srm-withdrawal-stats,
	.srm-payout-methods {
		grid-template-columns: 1fr;
	}

	.srm-withdrawal-form-panel,
	.srm-withdrawal-guide,
	.srm-withdrawal-history {
		padding: 22px 18px;
	}

	.srm-payout-destination .srm-form-grid {
		grid-template-columns: 1fr;
	}

	.srm-payout-history-list > article {
		grid-template-columns: auto minmax(0, 1fr);
		align-items: start;
	}

	.srm-payout-history-amount {
		grid-column: 2;
		justify-items: start;
	}
}

@media (max-width: 430px) {
	.srm-withdrawal-balance-icon {
		display: none;
	}

	.srm-payout-amount-field > div {
		grid-template-columns: auto minmax(0, 1fr);
	}

	.srm-payout-amount-field button {
		grid-column: 1 / -1;
		width: calc(100% - 16px);
		margin: 0 8px 8px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.srm-withdrawal-page *,
	.srm-withdrawal-page *::before,
	.srm-withdrawal-page *::after {
		scroll-behavior: auto !important;
		transition-duration: .01ms !important;
	}
}
