/**
 * Area81 Pre-orders — frontend styles.
 */

.a81-preorder-block {
	margin: 1.5em 0;
	padding: 1.25em 1.5em;
	border: 1px solid #e3e3e3;
	border-radius: 8px;
	background: #fafafa;
}

.a81-release {
	margin: 0 0 0.75em;
	font-size: 1.05em;
}

/* Countdown */
.a81-countdown {
	display: flex;
	flex-direction: column;
	gap: 0.4em;
	margin: 0.5em 0;
}

.a81-countdown-label {
	font-size: 0.85em;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #777;
}

.a81-countdown-timer {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75em;
	font-size: 1em;
}

.a81-cd-unit {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	min-width: 3.2em;
	padding: 0.5em 0.4em;
	background: #1a1a1a;
	color: #fff;
	border-radius: 6px;
	font-size: 0.8em;
	line-height: 1.2;
}

.a81-cd-unit b {
	font-size: 1.6em;
	font-weight: 700;
}

.a81-countdown-done .a81-countdown-timer {
	color: #2e7d32;
	font-weight: 700;
}

/* Deposit note */
.a81-deposit-note {
	margin: 0.75em 0 0;
	padding: 0.6em 0.85em;
	background: #fff8e1;
	border-left: 3px solid #ffb300;
	border-radius: 0 4px 4px 0;
	font-size: 0.95em;
}

.a81-deposit-tag {
	font-size: 0.85em;
	color: #b26a00;
	font-style: italic;
}

/* Pre-order breakdown */
.a81-breakdown {
	margin: 0.85em 0 0;
	padding: 0.9em 1em;
	background: #fff;
	border: 1px solid #e3e3e3;
	border-radius: 6px;
}

.a81-breakdown-title {
	margin: 0 0 0.6em;
	font-size: 0.95em;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #555;
}

.a81-breakdown-table {
	width: 100%;
	border-collapse: collapse;
	margin: 0;
}

.a81-breakdown-table th,
.a81-breakdown-table td {
	padding: 0.4em 0;
	text-align: left;
	border: none;
	font-size: 0.95em;
}

.a81-breakdown-table td {
	text-align: right;
	font-variant-numeric: tabular-nums;
}

.a81-breakdown-table tr + tr th,
.a81-breakdown-table tr + tr td {
	border-top: 1px solid #f0f0f0;
}

.a81-breakdown-due th,
.a81-breakdown-due td {
	font-weight: 700;
	color: #1a1a1a;
}

.a81-breakdown-fee th,
.a81-breakdown-fee td {
	color: #c62828;
}

.a81-breakdown-refund th,
.a81-breakdown-refund td {
	color: #2e7d32;
}

.a81-breakdown-placeholder {
	margin: 0;
	color: #777;
	font-size: 0.9em;
	font-style: italic;
}

/* Crowdfunding */
.a81-crowdfund {
	margin-top: 1em;
}

.a81-crowdfund-head {
	font-size: 0.95em;
	margin-bottom: 0.4em;
}

.a81-crowdfund-bar {
	position: relative;
	height: 14px;
	background: #e0e0e0;
	border-radius: 7px;
	overflow: hidden;
}

.a81-crowdfund-bar span {
	position: absolute;
	left: 0;
	top: 0;
	height: 100%;
	background: linear-gradient( 90deg, #43a047, #66bb6a );
	border-radius: 7px;
	transition: width 0.6s ease;
}

.a81-crowdfund-success {
	color: #2e7d32;
	font-weight: 600;
	margin: 0.5em 0 0;
}

.a81-crowdfund-remaining {
	color: #555;
	margin: 0.5em 0 0;
	font-size: 0.9em;
}

/* My Account */
.a81-account-preorder {
	border: 1px solid #e3e3e3;
	border-radius: 8px;
	padding: 1.25em;
	margin-bottom: 1.25em;
}

.a81-account-preorder-head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 0.5em;
}

.a81-account-preorder-head h3 {
	margin: 0;
}

.a81-account-preorder-date {
	color: #777;
	font-size: 0.9em;
}

.a81-account-preorder-items {
	list-style: none;
	margin: 1em 0;
	padding: 0;
}

.a81-account-preorder-items li {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 0.5em;
	padding: 0.5em 0;
	border-bottom: 1px solid #f0f0f0;
}

.a81-item-variation {
	display: block;
	color: #777;
	font-size: 0.85em;
}

.a81-account-preorder-meta {
	display: flex;
	gap: 1.5em;
	flex-wrap: wrap;
	margin-bottom: 1em;
	font-size: 0.95em;
}

.a81-cancel-details summary {
	cursor: pointer;
	color: #c62828;
	font-size: 0.9em;
}

.a81-cancel-warning {
	margin: 0.75em 0;
	padding: 0.6em 0.85em;
	background: #fff3e0;
	border-radius: 4px;
	font-size: 0.9em;
}

.a81-cancel-button {
	background: #c62828 !important;
	color: #fff !important;
}

/* Pre-order quantity limits */
.a81-soldout {
	margin: 0.75em 0 0;
	padding: 0.6em 0.85em;
	background: #fdecea;
	border-left: 3px solid #c62828;
	border-radius: 0 4px 4px 0;
	font-weight: 700;
	color: #c62828;
}

.a81-limit-remaining {
	margin: 0.75em 0 0;
	padding: 0.5em 0.85em;
	background: #fff3e0;
	border-left: 3px solid #fb8c00;
	border-radius: 0 4px 4px 0;
	font-size: 0.95em;
	color: #e65100;
}

/* Pre-order deposit note rows (cart item data) — keep amounts on one line.
   The checkout order review renders these as a <dl class="...variation"> with
   <dt> labels and <dd> values; the value column can be narrow, so prevent the
   amount from breaking. */
.variation-Depositduenow,
.variation-Balancedueatlaunch {
	font-size: 0.9em;
	line-height: 1.4;
}
dd.variation-Depositduenow,
dd.variation-Balancedueatlaunch {
	margin-left: 0;
}
.variation-Depositduenow .woocommerce-Price-amount,
.variation-Balancedueatlaunch .woocommerce-Price-amount,
.a81-price-wrapper,
.a81-price-wrapper .a81-price-incl,
.a81-price-wrapper .a81-price-excl,
.a81-price-wrapper .woocommerce-Price-amount {
	white-space: nowrap;
	display: inline-block;
}
