/* ── Sunny Auction Custom – Popup Bid Modal ── */

/* Overlay */
.sac-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(10, 15, 50, 0.6);
	z-index: 99999;
	align-items: center;
	justify-content: center;
	backdrop-filter: blur(2px);
}
.sac-overlay.sac-open {
	display: flex;
}

/* Modal card */
.sac-modal {
	background: #fff;
	border-radius: 16px;
	width: 100%;
	max-width: 460px;
	margin: 16px;
	box-shadow: 0 24px 64px rgba(10, 15, 50, 0.22);
	position: relative;
	overflow: hidden;
	font-family: -apple-system, 'Segoe UI', sans-serif;
}

/* ── Header ── */
.sac-modal-header {
	padding: 18px 20px;
	display: flex;
	align-items: flex-start;
	gap: 14px;
	border-bottom: 1px solid rgba(0, 20, 80, 0.07);
}

.sac-modal-thumb {
	width: 60px;
	height: 60px;
	border-radius: 10px;
	object-fit: cover;
	flex-shrink: 0;
	background: #EEF0FD;
}

.sac-modal-header-text {
	flex: 1;
	min-width: 0;
}

.sac-modal-category {
	display: block;
	font-size: 11px;
	font-weight: 700;
	color: #3B4EF0;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin-bottom: 4px;
}

.sac-modal-lot-title {
	font-size: 15px;
	font-weight: 700;
	color: #0D1240;
	margin: 0;
	line-height: 1.35;
}

.sac-modal-close {
	background: #F2F4F8;
	border: none;
	color: #706F7A;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	transition: background 0.15s, color 0.15s;
	margin-top: 2px;
}
.sac-modal-close:hover {
	background: #E2E5EA;
	color: #0D1240;
}

/* ── Stats row ── */
.sac-modal-stats {
	display: flex;
	align-items: stretch;
	padding: 20px;
	gap: 0;
	border-bottom: 1px solid rgba(0, 20, 80, 0.07);
}

.sac-stat-col {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.sac-stat-col--right {
	align-items: flex-end;
}

.sac-stat-label {
	font-size: 10px;
	font-weight: 700;
	color: #999;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.sac-stat-bid {
	font-size: 26px;
	font-weight: 800;
	color: #0D1240;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

.sac-stat-sub {
	font-size: 12px;
	color: #706F7A;
	font-weight: 500;
}

.sac-stat-divider {
	width: 1px;
	background: rgba(0, 20, 80, 0.09);
	margin: 0 20px;
	flex-shrink: 0;
}

/* Countdown */
.sac-cd-digits {
	display: flex;
	align-items: center;
	gap: 1px;
	line-height: 1;
}

.sac-cd-num {
	font-size: 22px;
	font-weight: 800;
	color: #1DB854;
	font-variant-numeric: tabular-nums;
	min-width: 26px;
	text-align: center;
}

.sac-cd-sep {
	font-size: 20px;
	font-weight: 700;
	color: #1DB854;
	margin: 0 1px;
	line-height: 1;
}

.sac-cd-labels {
	display: flex;
	gap: 0;
	font-size: 9px;
	font-weight: 600;
	color: #aaa;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin-top: 3px;
}

.sac-cd-labels span {
	min-width: 28px;
	text-align: center;
}

/* ── Suggested next bid box ── */
.sac-next-bid-box {
	margin: 16px 20px;
	background: #EEF0FD;
	border-radius: 10px;
	padding: 14px 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.sac-next-bid-info {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.sac-next-bid-label {
	font-size: 10px;
	font-weight: 700;
	color: #3B4EF0;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.sac-increment-text {
	font-size: 12px;
	color: #706F7A;
	font-weight: 500;
}

.sac-next-bid-amount {
	font-size: 26px;
	font-weight: 800;
	color: #0D1240;
	font-variant-numeric: tabular-nums;
}

/* ── Form area ── */
#sac-bid-form {
	padding: 0 20px 20px;
}

/* Quick Bid */
.sac-quick-wrap {
	margin-bottom: 14px;
}

.sac-quick-btn {
	display: block;
	width: 100%;
	padding: 14px 20px;
	background: #3B4EF0;
	color: #fff;
	border: none;
	border-radius: 10px;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	text-align: center;
	transition: background 0.15s;
	letter-spacing: 0.01em;
}
.sac-quick-btn:hover {
	background: #2E40DC;
}

/* Divider */
.sac-divider-wrap {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 14px;
}
.sac-divider-wrap::before,
.sac-divider-wrap::after {
	content: '';
	flex: 1;
	height: 1px;
	background: rgba(0, 20, 80, 0.1);
}
.sac-divider-text {
	font-size: 10px;
	font-weight: 700;
	color: #aaa;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	white-space: nowrap;
}

/* Custom amount row */
.sac-custom-row {
	display: flex;
	gap: 10px;
	align-items: stretch;
}

.sac-input-group {
	flex: 1;
	display: flex;
	align-items: center;
	border: 1.5px solid #D9DBE9;
	border-radius: 10px;
	overflow: hidden;
	transition: border-color 0.15s;
}
.sac-input-group:focus-within {
	border-color: #3B4EF0;
}

.sac-currency-symbol {
	padding: 0 12px;
	background: #F7F8FA;
	border-right: 1.5px solid #D9DBE9;
	font-weight: 700;
	color: #706F7A;
	font-size: 15px;
	height: 48px;
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

.sac-bid-input {
	flex: 1;
	border: none;
	outline: none;
	padding: 0 14px;
	height: 48px;
	font-size: 18px;
	font-weight: 700;
	color: #0D1240;
	background: #fff;
	width: 100%;
}
.sac-bid-input::-webkit-inner-spin-button,
.sac-bid-input::-webkit-outer-spin-button {
	opacity: 1;
}

.sac-place-btn {
	padding: 0 22px;
	height: 48px;
	background: #0D1240;
	color: #fff;
	border: none;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.15s;
	flex-shrink: 0;
}
.sac-place-btn:hover {
	background: #1a2060;
}

/* Hint text */
.sac-hint {
	font-size: 12px;
	color: #3C763D;
	margin: 8px 0 0;
	min-height: 18px;
}
.sac-hint.sac-error {
	color: #C0392B;
}

/* Login notice */
.sac-not-logged-in {
	font-size: 13px;
	text-align: center;
	margin-top: 12px;
	color: #706F7A;
}
.sac-not-logged-in a {
	color: #3B4EF0;
	font-weight: 700;
}

/* Loader */
.sac-modal-loader {
	position: absolute;
	inset: 0;
	background: rgba(255, 255, 255, 0.88);
	display: flex;
	align-items: center;
	justify-content: center;
}
.sac-spinner {
	width: 32px;
	height: 32px;
	border: 3px solid #D9DBE9;
	border-top-color: #3B4EF0;
	border-radius: 50%;
	animation: sac-spin 0.7s linear infinite;
}
@keyframes sac-spin {
	to { transform: rotate(360deg); }
}

/* ── Success screen ── */
.sac-success-screen {
	padding: 36px 24px 40px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 10px;
}

.sac-success-icon {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: #E8F9EE;
	color: #1DB854;
	font-size: 28px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 4px;
}

.sac-success-title {
	font-size: 20px;
	font-weight: 800;
	color: #0D1240;
	margin: 0;
}

.sac-success-amount {
	font-size: 36px;
	font-weight: 800;
	color: #3B4EF0;
	font-variant-numeric: tabular-nums;
	line-height: 1;
}

.sac-success-sub {
	font-size: 13px;
	color: #706F7A;
	margin: 0;
}

/* Lot badge (loop cards) */
.sac-lot-badge {
	display: inline-block;
	background: #002050;
	color: #FCE300;
	font-size: 10px;
	font-weight: 700;
	padding: 2px 8px;
	border-radius: 4px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	margin-bottom: 4px;
}

/* Lot number on single product */
.sac-lot-single {
	font-size: 13px;
	color: #706F7A;
	margin-bottom: 8px;
}
