/* Cafetein Refill Club — frontend (mobile-first, premium D2C) */

.crc-club {
	margin: 24px 0;
	padding: 24px;
	border-radius: 18px;
	background: #faf6f0;
	border: 1px solid #ecdfd0;
	box-shadow: 0 8px 24px rgba(60, 36, 16, 0.07);
	font-family: inherit;
	color: #2b1a12;
	max-width: 560px;
}

.crc-club__head {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 16px;
}

.crc-club__icon {
	font-size: 28px;
	line-height: 1;
	background: #fff;
	border-radius: 14px;
	padding: 10px;
	box-shadow: 0 4px 12px rgba(60, 36, 16, 0.08);
}

.crc-club__title {
	margin: 0 !important;
	font-size: 18px;
	font-weight: 700;
	letter-spacing: -0.01em;
}

.crc-club__sub {
	margin: 2px 0 0 !important;
	font-size: 13px;
	color: #8a6e58;
}

.crc-club__badge {
	margin-left: auto;
	background: #2b6e4f;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	padding: 5px 12px;
	border-radius: 999px;
}

.crc-club__benefits {
	list-style: none !important;
	margin: 0 0 14px !important;
	padding: 0 !important;
	display: grid;
	grid-template-columns: 1fr;
	gap: 8px 16px;
	font-size: 14px;
}

@media (min-width: 480px) {
	.crc-club__benefits {
		grid-template-columns: 1fr 1fr;
	}
}

.crc-club__benefits li {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 !important;
}

.crc-tick {
	color: #2b6e4f;
	font-weight: 700;
	flex: 0 0 auto;
}

.crc-club__savings {
	font-size: 13px;
	color: #7a4a21;
	background: #fff;
	border-radius: 12px;
	padding: 10px 14px;
	margin: 0 0 16px !important;
}

.crc-btn {
	display: inline-block;
	border: 0;
	cursor: pointer;
	border-radius: 999px;
	padding: 13px 30px;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none !important;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
	line-height: 1.2;
}

.crc-btn--primary {
	background: #7a4a21;
	color: #fff !important;
	box-shadow: 0 6px 16px rgba(122, 74, 33, 0.3);
}

.crc-btn--primary:hover {
	background: #663d1a;
	transform: translateY(-1px);
	box-shadow: 0 8px 20px rgba(122, 74, 33, 0.35);
}

.crc-btn--ghost {
	background: #fff;
	color: #7a4a21 !important;
	border: 1.5px solid #d9c4ae;
}

.crc-btn--ghost:hover {
	background: #f4ebe0;
}

.crc-btn--danger {
	background: transparent;
	color: #a33a2a !important;
	border: 1.5px solid #e3c0b8;
}

.crc-btn--danger:hover {
	background: #fbeeec;
}

.crc-join-form {
	margin-top: 14px;
	display: grid;
	gap: 10px;
}

.crc-join-form label {
	display: grid;
	gap: 4px;
	font-size: 13px;
	font-weight: 600;
	color: #5d4534;
}

.crc-join-form input {
	border: 1.5px solid #ddcbb8;
	border-radius: 12px;
	padding: 11px 14px;
	font-size: 15px;
	background: #fff;
	width: 100%;
	box-sizing: border-box;
	transition: border-color 0.15s ease;
}

.crc-join-form input:focus {
	outline: none;
	border-color: #7a4a21;
}

.crc-club__msg {
	margin: 12px 0 0 !important;
	font-size: 14px;
	font-weight: 600;
	color: #2b6e4f;
}

.crc-club__msg.crc-error {
	color: #a33a2a;
}

.crc-club__member-note {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 !important;
	font-size: 14px;
	font-weight: 600;
	color: #2b6e4f;
}

/* My Account */
.crc-account__card {
	background: #faf6f0;
	border: 1px solid #ecdfd0;
	border-radius: 18px;
	padding: 26px;
	box-shadow: 0 8px 24px rgba(60, 36, 16, 0.07);
	max-width: 640px;
}

.crc-account__head {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 18px;
}

.crc-account__head h3 {
	margin: 0 !important;
	font-size: 18px;
}

.crc-status {
	margin-left: auto;
	font-size: 12px;
	font-weight: 700;
	padding: 4px 12px;
	border-radius: 999px;
}

.crc-status--active    { background: #e2f2e9; color: #2b6e4f; }
.crc-status--paused    { background: #fdf1dc; color: #946200; }
.crc-status--inactive  { background: #e8eaf0; color: #4a566e; }
.crc-status--cancelled { background: #fbeeec; color: #a33a2a; }
.crc-status--left      { background: #fbeeec; color: #a33a2a; }

.crc-account__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 14px;
	margin: 0 0 20px;
}

@media (min-width: 540px) {
	.crc-account__grid {
		grid-template-columns: 1fr 1fr;
	}
}

.crc-account__grid dt {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #8a6e58;
	margin: 0 0 2px;
}

.crc-account__grid dd {
	margin: 0;
	font-size: 15px;
	font-weight: 600;
	color: #2b1a12;
}

.crc-account__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 22px;
}

.crc-account__actions form {
	margin: 0;
}

/* ---------------------------------------------------------------
 * [cafetein_refill_button] — button-only shortcode wrapper.
 * No card, no padding, no card-background. Just a button + the
 * existing hidden join form + status message.
 * --------------------------------------------------------------- */
.crc-join-button-only {
	display: inline-block;
	margin: 0;
	padding: 0;
	background: none;
	border: 0;
	box-shadow: none;
	max-width: 100%;
	font-family: inherit;
}

.crc-join-button-only .crc-join-form {
	margin-top: 14px;
	display: block;
	max-width: 360px;
}

/* Collapsible form for [cafetein_refill_button] — slide-down reveal.
 * Class-based hide (NOT the HTML `hidden` attribute) so themes that override
 * `[hidden] { display: block !important }` cannot accidentally show the form
 * on initial render. */
.crc-join-button-only .crc-join-form--collapsible {
	max-height: 0;
	margin-top: 0;
	opacity: 0;
	overflow: hidden;
	pointer-events: none;
	visibility: hidden;
	transition: max-height 0.35s ease, margin-top 0.25s ease, opacity 0.25s ease 0.05s, visibility 0s linear 0.35s;
}

.crc-join-button-only .crc-join-form--collapsible.is-open {
	max-height: 520px;
	margin-top: 14px;
	opacity: 1;
	pointer-events: auto;
	visibility: visible;
	transition: max-height 0.4s ease, margin-top 0.25s ease, opacity 0.3s ease, visibility 0s linear 0s;
}

@media (prefers-reduced-motion: reduce) {
	.crc-join-button-only .crc-join-form--collapsible,
	.crc-join-button-only .crc-join-form--collapsible.is-open {
		transition: none;
	}
}

.crc-join-button-only .crc-join-form label {
	display: block;
	margin-bottom: 10px;
}

.crc-join-button-only .crc-club__msg {
	margin-top: 10px;
	font-size: 14px;
}

.crc-join-button-only .crc-club__member-note {
	margin: 0;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #2b6e4f;
	font-weight: 600;
}

@media (max-width: 480px) {
	.crc-join-button-only {
		display: block;
		width: 100%;
	}
	.crc-join-button-only .crc-btn--primary {
		width: 100%;
	}
}
