/* ============================================================
   ROWE Members — portal styling.

   Composes from the theme's existing brand components wherever one
   fits (.card2, .featbox, .btn, .kick, .mtable, .statusbar), per
   ROWE-brand/BRAND.md "reuse, don't reinvent". What is here is what
   genuinely had no equivalent: the slot grid, the booking form's field
   row, and the membership card's header.

   Every colour is a var(--token) from rowe-tokens.css — no raw hex.
   The file is enqueued only on the account page, with rowe-theme as a
   dependency, so the tokens are always already loaded.
   ============================================================ */

/* ---------- shared ---------- */

.rowe-lede {
	color: var(--stone);
	font-size: 16px;
	margin-bottom: 22px;
	max-width: 620px;
}

.rowe-sub {
	font-size: 18px;
	font-weight: 600;
	color: var(--graphite);
	margin: 34px 0 14px;
}

.rowe-fine {
	color: var(--stone);
	font-size: 13.5px;
	margin-top: 16px;
	max-width: 620px;
}

.rowe-fine a {
	color: var(--copper);
}

/* ---------- the not-a-member gate ---------- */

.rowe-gate h3 {
	margin-top: 6px;
}

.rowe-gate p {
	max-width: 560px;
}

/* ---------- membership card ---------- */

.rowe-membercard-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 18px;
}

.rowe-membercard-head h3 {
	font-size: clamp(22px, 4vw, 28px);
	font-weight: 700;
	color: var(--graphite);
	margin-top: 6px;
	letter-spacing: -0.01em;
}

.rowe-benefits {
	list-style: none;
	margin: 0;
	padding: 0;
	max-width: 620px;
}

.rowe-benefits li {
	position: relative;
	padding: 10px 0 10px 22px;
	border-bottom: 1px solid var(--line);
	color: var(--stone);
	font-size: 14.5px;
}

.rowe-benefits li:last-child {
	border-bottom: 0;
}

.rowe-benefits li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 18px;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--copper);
}

/* ---------- booking form (step one) ---------- */

.rowe-bookform {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
	gap: 16px;
	align-items: end;
	padding: clamp(18px, 3vw, 24px);
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: 12px;
}

.rowe-field label {
	display: block;
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--copper);
	font-weight: 600;
	margin-bottom: 7px;
}

.rowe-field select,
.rowe-field input[type="date"],
.rowe-field input[type="number"] {
	width: 100%;
	min-height: 44px;
	padding: 10px 12px;
	border: 1px solid var(--line);
	border-radius: 6px;
	background: white;
	color: var(--graphite);
	font-family: var(--font-body);
	font-size: 15px;
}

.rowe-field select:focus,
.rowe-field input:focus {
	outline: 2px solid var(--copper);
	outline-offset: 1px;
	border-color: var(--copper);
}

.rowe-field input:disabled {
	background: var(--sage-tint);
	color: var(--stone);
}

.rowe-fieldnote {
	font-size: 12px;
	color: var(--stone);
	margin-top: 6px;
}

.rowe-field-go .btn {
	width: 100%;
}

/* The auto-submitting form hides its own button, but only once the
   script that makes it redundant has actually run — so the no-JS path
   keeps a working control rather than losing one. */
.rowe-js .rowe-field-go {
	display: none;
}

/* ---------- slot grid ---------- */

.rowe-slots {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
	gap: 12px;
	margin-top: 4px;
}

.rowe-slot {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 16px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: var(--paper);
}

.rowe-slot-time {
	font-family: var(--font-mono);
	font-size: 16px;
	font-weight: 500;
	color: var(--graphite);
}

.rowe-slot-note {
	font-size: 12.5px;
	color: var(--stone);
}

.rowe-slot .btn {
	margin-top: 6px;
	width: 100%;
}

.rowe-slot.is-unavailable {
	background: var(--sage-tint);
	border-color: var(--sage-tint-line);
}

.rowe-slot.is-unavailable .rowe-slot-time {
	color: var(--stone);
}

.rowe-slot.is-mine {
	background: var(--copper-tint);
	border-color: var(--copper-tint-line);
}

.rowe-slot.is-mine .rowe-slot-note {
	color: var(--copper-deep);
	font-weight: 600;
}

/* ---------- bookings table ---------- */

.rowe-bookings .rowe-time {
	font-family: var(--font-mono);
	font-size: 12.5px;
	color: var(--stone);
}

/* A destructive action, so it reads as a link rather than wearing the
   same copper fill as "Book" — the two must not be a symmetrical pair
   of buttons sitting a row apart in the same table. */
.rowe-cancel {
	background: none;
	border: 0;
	padding: 0;
	font-family: var(--font-body);
	font-size: 14px;
	color: var(--copper);
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.rowe-cancel:hover {
	color: var(--copper-hover);
}
