/* AMAA Subscriptions */

/* ---------- Product page options ---------- */
.amaa-buy {
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: 100%;
	margin: 0 0 22px;
	padding: 0;
	border: 0;
	min-width: 0;
}
.amaa-buy__legend {
	float: none;
	width: auto;
	margin: 0 0 4px;
	padding: 0;
	font-family: 'Oswald', sans-serif;
	font-size: 15px;
	font-weight: 500;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #222;
}
.amaa-buy__opt {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	margin: 0;
	padding: 14px 16px;
	border: 1.5px solid #e2e7df;
	border-radius: 14px;
	background: #fff;
	cursor: pointer;
	transition: border-color .15s ease, background-color .15s ease;
}
.amaa-buy__opt:hover {
	border-color: #b9c9b6;
}
.amaa-buy__opt.is-on,
.amaa-buy__opt:has(input:checked) {
	border-color: #1b321a;
	background: #f6f9f5;
}
.amaa-buy__opt input[type="radio"] {
	flex: none;
	width: 18px;
	height: 18px;
	margin: 2px 0 0;
	accent-color: #1b321a;
}
.amaa-buy__body {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 2px 12px;
	flex: 1;
	min-width: 0;
}
.amaa-buy__name {
	color: #1a1f1a;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
}
.amaa-buy__price {
	color: #1a1f1a;
	font-size: 15px;
	font-weight: 700;
	white-space: nowrap;
	text-align: right;
}
.amaa-buy__perks,
.amaa-buy__select {
	grid-column: 1 / -1;
	color: #5b665a;
	font-size: 13px;
	line-height: 1.5;
}
.amaa-buy__save {
	display: inline-block;
	margin-left: 6px;
	padding: 2px 8px;
	border-radius: 999px;
	background: #fff3cf;
	color: #6b4800;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .02em;
	vertical-align: 1px;
}
.amaa-buy__select select {
	width: 100%;
	max-width: 100%;
	margin-top: 8px;
	padding: 10px 12px;
	border: 1px solid #dde3da;
	border-radius: 10px;
	background: #fff;
	color: #1a1f1a;
	font-size: 14px;
}

.amaa-sub-checkout-note {
	margin: 0 0 14px;
	padding: 12px 14px;
	border-radius: 12px;
	background: #f4f6f3;
	color: #3d463c;
	font-size: 14px;
	line-height: 1.55;
}
.amaa-sub-qty {
	display: inline-block;
	min-width: 32px;
	text-align: center;
	font-weight: 600;
}

/* ---------- Account page ---------- */
.amaa-subs-page {
	display: flex;
	flex-direction: column;
	gap: 18px;
}
.amaa-sub-empty {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
	padding: 24px;
	border: 1px dashed var(--amaa-line, #dde3da);
	border-radius: var(--amaa-radius, 18px);
	color: var(--amaa-muted, #5b665a);
}
.amaa-sub-empty p {
	margin: 0;
}
.amaa-sub {
	padding: 20px;
	border: 1px solid var(--amaa-line, #dde3da);
	border-radius: var(--amaa-radius, 18px);
	background: var(--amaa-glass, #fff);
}
.amaa-sub--ended {
	opacity: .78;
}
.amaa-sub__head {
	display: flex;
	gap: 14px;
	align-items: center;
}
.amaa-sub__img img {
	display: block;
	width: 56px;
	height: 56px;
	border-radius: 12px;
	object-fit: cover;
	background: var(--amaa-bg, #f4f6f3);
}
.amaa-sub__title {
	flex: 1;
	min-width: 0;
}
.amaa-account-page .amaa-sub__title h3 {
	margin: 0 0 2px;
	font-family: var(--amaa-heading, inherit);
	font-size: 17px;
	line-height: 1.3;
	text-transform: none;
	color: var(--amaa-text, #1a1f1a);
}
.amaa-sub__title p {
	margin: 0;
	font-size: 13px;
}
.amaa-sub__status {
	flex: none;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	white-space: nowrap;
	background: var(--amaa-line-soft, #eef1ec);
	color: var(--amaa-muted, #5b665a);
}
.amaa-sub__status--on {
	background: #e3f1e0;
	color: #22561f;
}
.amaa-sub__status--paused {
	background: #fff8e6;
	color: #7a5200;
}
.amaa-sub__status--hold {
	background: #fbe4e2;
	color: #9b2c1f;
}
.amaa-sub__facts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin: 18px 0 0;
}
.amaa-sub__facts > div {
	padding: 12px 14px;
	border-radius: 12px;
	background: var(--amaa-bg, #f4f6f3);
}
.amaa-sub__facts dt {
	margin: 0 0 2px;
	color: var(--amaa-muted, #5b665a);
	font-size: 12px;
	font-weight: 600;
}
.amaa-sub__facts dd {
	margin: 0;
	color: var(--amaa-text, #1a1f1a);
	font-size: 15px;
	font-weight: 700;
}
.amaa-sub__note {
	display: block;
	margin-top: 2px;
	color: #7a5200;
	font-size: 12px;
	font-weight: 600;
}
.amaa-sub__bar {
	display: block;
	height: 6px;
	margin-top: 8px;
	border-radius: 999px;
	background: #dfe6dc;
	overflow: hidden;
}
.amaa-sub__bar span {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: #3d7a3f;
}
.amaa-sub__alert {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 16px;
	align-items: center;
	justify-content: space-between;
	margin-top: 14px;
	padding: 12px 14px;
	border-radius: 12px;
	background: #fff8e6;
	color: #5c4300;
	font-size: 14px;
}
.amaa-sub__alert p {
	margin: 0;
	flex: 1 1 260px;
}
.amaa-sub__alert--hold {
	background: #fbe4e2;
	color: #7c241a;
}
.amaa-sub__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: flex-start;
	margin-top: 16px;
}
.amaa-sub__form {
	margin: 0;
}
.amaa-sub__cancel {
	flex-basis: 100%;
}
.amaa-sub__cancel summary {
	display: inline-block;
	padding: 6px 0;
	color: var(--amaa-red, #9b2c1f);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	list-style: none;
}
.amaa-sub__cancel summary::-webkit-details-marker {
	display: none;
}
.amaa-sub__cancel-box {
	margin-top: 8px;
	padding: 14px;
	border: 1px solid #f1c9c4;
	border-radius: 12px;
	background: #fff7f6;
}
.amaa-sub__cancel-box p {
	margin: 0 0 12px;
	color: #5a2a24;
	font-size: 14px;
}
.amaa-account-page .amaa-btn--danger {
	border-color: #9b2c1f;
	background: #9b2c1f;
	color: #fff;
}
.amaa-account-page .amaa-btn--danger:hover {
	background: #7c241a;
	color: #fff;
}
.amaa-sub__foot {
	margin: 12px 0 0;
	font-size: 13px;
}
.amaa-account-page .amaa-sub__foot a {
	color: var(--amaa-green, #1b321a);
	font-weight: 600;
	text-decoration: underline;
}

@media (max-width: 640px) {
	.amaa-sub {
		padding: 16px;
	}
	.amaa-sub__head {
		flex-wrap: wrap;
	}
	.amaa-sub__status {
		order: 3;
	}
	.amaa-sub__facts {
		grid-template-columns: minmax(0, 1fr);
		gap: 8px;
	}
	.amaa-sub__actions > .amaa-sub__form {
		flex: 1 1 0;
	}
	.amaa-sub__actions > .amaa-sub__form .amaa-btn {
		width: 100%;
	}
	.amaa-buy__body {
		grid-template-columns: 1fr;
	}
	.amaa-buy__price {
		text-align: left;
	}
}

.amaa-sub-card-note {
	margin: 10px 0 0;
	color: #3d463c;
	font-size: 13px;
	line-height: 1.5;
}

/* ==========================================================================
   v0.3: same surfaces as the rest of the dashboard
   ========================================================================== */

.amaa-subs-page {
	gap: 14px;
}
.amaa-sub {
	padding: 18px;
	border: 1px solid rgba(27, 50, 26, 0.07);
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(20, 32, 19, 0.04), 0 4px 14px -6px rgba(20, 32, 19, 0.08);
}
.amaa-sub__head {
	align-items: flex-start;
}
.amaa-sub__img img {
	width: 52px;
	height: 52px;
	border-radius: 14px;
}
.amaa-account-page .amaa-sub__title h3 {
	font-size: 16px;
	font-weight: 700;
}
.amaa-sub__status {
	padding: 2px 9px;
	font-size: 11.5px;
}
.amaa-sub__facts {
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 8px;
	margin-top: 14px;
}
.amaa-sub__facts > div {
	padding: 10px 12px;
	border-radius: 12px;
	background: #f6f8f4;
}
.amaa-sub__facts dt {
	font-size: 11.5px;
}
.amaa-sub__facts dd {
	font-size: 14.5px;
}
.amaa-sub__actions {
	gap: 8px;
	align-items: center;
	margin-top: 14px;
}
.amaa-sub__actions .amaa-btn {
	min-height: 38px;
	font-size: 13.5px;
}
.amaa-sub__cancel summary {
	font-size: 13px;
}
.amaa-sub__foot {
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid #eef1eb;
	font-size: 12.5px;
}
.amaa-sub-empty {
	align-items: center;
	padding: 36px 20px;
	border: 1px solid rgba(27, 50, 26, 0.07);
	background: #fff;
	text-align: center;
}
@media (max-width: 640px) {
	.amaa-sub {
		padding: 16px;
	}
	.amaa-sub__head {
		flex-wrap: nowrap;
	}
	.amaa-sub__status {
		order: 0;
	}
	.amaa-sub__facts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.amaa-sub__facts > div:only-child {
		grid-column: 1 / -1;
	}
}

/* Pay renewals with points */
.amaa-sub__points {
	margin-top: 14px;
	border: 1px solid #e6ebe3;
	border-radius: 14px;
	background: #fbfcfa;
}
.amaa-sub__points summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 14px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	list-style: none;
}
.amaa-sub__points summary::-webkit-details-marker {
	display: none;
}
.amaa-sub__points-state {
	padding: 2px 9px;
	border-radius: 999px;
	background: #f0f2dc;
	color: #5d6420;
	font-size: 12px;
	font-weight: 700;
	white-space: nowrap;
}
.amaa-sub__points-form {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 0 14px 14px;
}
.amaa-sub__points-help {
	margin: 0 !important;
	font-size: 13px;
	color: #5b665a;
}
.amaa-sub__points-form label {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-size: 14px;
	font-weight: 500;
}
.amaa-sub__points-form input[type="radio"] {
	accent-color: #1b311a;
}
.amaa-dashboard-page .amaa-account .amaa-sub__points-form input[type="number"] {
	width: 110px;
	min-height: 38px;
	padding: 6px 10px;
}
.amaa-sub__points-form button {
	align-self: flex-start;
}
