/* ===================================================================
   RepeatMD member pricing — front end
   Brand tokens. Change these two lines to restyle everything.
   =================================================================== */
:root {
	--rmd-brand:       #8a6236;
	--rmd-brand-dark:  #6f4d28;
	--rmd-brand-soft:  #f7f2ec;
	--rmd-brand-line:  #e3d7c8;
	--rmd-ink:         #23201d;
	--rmd-muted:       #6f6861;
	--rmd-good:        #1f6b38;
	--rmd-bad:         #8c2f26;
}

/* -------------------------------------------------------------------
   Price display
   ------------------------------------------------------------------- */
.rmd-member-hint {
	color: var(--rmd-brand);
	font-weight: 600;
	white-space: nowrap;
}

.rmd-member-hint del {
	opacity: .6;
	margin-right: 3px;
}

.rmd-badge {
	display: inline-block;
	background: var(--rmd-brand);
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
	padding: 3px 9px;
	border-radius: 999px;
	vertical-align: middle;
	margin-left: 6px;
	line-height: 1.5;
}

/* -------------------------------------------------------------------
   Inline verify strip (product page, cart, checkout)
   ------------------------------------------------------------------- */
.rmd-strip {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	background: var(--rmd-brand-soft);
	border: 1px solid var(--rmd-brand-line);
	border-radius: 8px;
	padding: 10px 14px;
	margin: 0 0 16px;
	font-size: 14px;
	line-height: 1.5;
	color: #5d564f;
}

.rmd-strip.is-on {
	background: #f2f8f4;
	border-color: #cee2d4;
	color: #2f5c3e;
}

.rmd-strip__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--rmd-good);
	box-shadow: 0 0 0 3px rgba(31, 107, 56, .14);
	flex: none;
}

.rmd-strip__dot.is-idle {
	background: var(--rmd-brand);
	box-shadow: 0 0 0 3px rgba(138, 98, 54, .14);
}

.rmd-strip a {
	color: var(--rmd-brand);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.rmd-strip.is-on a { color: #2f5c3e; }
.rmd-strip a:hover { opacity: .78; }

.rmd-cart-banner .rmd-open,
.rmd-cart-banner .rmd-remove { text-decoration: underline; }

/* -------------------------------------------------------------------
   Modal
   Themes style every button on the page, so the rules below are written
   defensively: specificity first, !important only where a theme would
   otherwise repaint the control.
   ------------------------------------------------------------------- */
body.rmd-modal-open { overflow: hidden; }

.rmd-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
	font-size: 15px;
	line-height: 1.5;
	color: var(--rmd-ink);
}

.rmd-modal.is-open { display: flex; }

.rmd-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(28, 22, 16, .58);
}

.rmd-modal__box {
	position: relative;
	background: #fff;
	border-radius: 16px;
	width: 100%;
	max-width: 430px;
	max-height: 90vh;
	overflow-y: auto;
	padding: 30px 30px 24px;
	box-shadow: 0 24px 64px rgba(0, 0, 0, .3);
	text-align: left;
}

/* Close button — reset whatever the theme did to it */
.rmd-modal .rmd-modal__close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 32px;
	height: 32px;
	padding: 0 !important;
	margin: 0 !important;
	min-height: 0 !important;
	min-width: 0 !important;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	border-radius: 50% !important;
	-webkit-appearance: none;
	appearance: none;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	color: #9a938b !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	font-weight: 400 !important;
}

.rmd-modal .rmd-modal__close:hover,
.rmd-modal .rmd-modal__close:focus {
	background: var(--rmd-brand-soft) !important;
	color: var(--rmd-ink) !important;
	border: 0 !important;
	outline: none;
}

.rmd-modal__title {
	margin: 0 0 8px !important;
	padding: 0;
	font-size: 22px;
	line-height: 1.25;
	font-weight: 600;
	color: var(--rmd-ink);
}

.rmd-modal__intro {
	margin: 0 0 20px;
	font-size: 14px;
	line-height: 1.55;
	color: var(--rmd-muted);
}

/* Fields */
.rmd-field { margin-bottom: 14px; }

.rmd-field label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 5px;
	color: #3e3933;
	text-transform: none;
	letter-spacing: normal;
}

.rmd-modal .rmd-field input {
	width: 100%;
	padding: 11px 14px;
	border: 1px solid #ddd5cb !important;
	border-radius: 10px !important;
	font-size: 15px;
	font-family: inherit;
	line-height: 1.4;
	color: var(--rmd-ink);
	background: #fff !important;
	box-shadow: none !important;
	-webkit-appearance: none;
	appearance: none;
	box-sizing: border-box;
}

.rmd-modal .rmd-field input::placeholder { color: #a8a099; }

.rmd-modal .rmd-field input:focus {
	outline: none !important;
	border-color: var(--rmd-brand) !important;
	box-shadow: 0 0 0 3px rgba(138, 98, 54, .14) !important;
}

/* "or" divider */
.rmd-or {
	position: relative;
	text-align: center;
	margin: 4px 0 14px;
	color: #a29a92;
	font-size: 13px;
}

.rmd-or::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	height: 1px;
	background: #ece5dc;
}

.rmd-or span {
	position: relative;
	background: #fff;
	padding: 0 10px;
}

/* Progress */
.rmd-progress { margin: 16px 0 6px; }

.rmd-progress__bar {
	height: 6px;
	background: #efe8e0;
	border-radius: 999px;
	overflow: hidden;
}

.rmd-progress__bar span {
	display: block;
	height: 100%;
	width: 0;
	background: var(--rmd-brand);
	border-radius: 999px;
	transition: width .25s ease;
}

.rmd-progress__label {
	margin: 8px 0 0;
	font-size: 13px;
	color: var(--rmd-muted);
}

/* Messages */
.rmd-message {
	margin: 14px 0 4px;
	padding: 11px 14px;
	border-radius: 10px;
	font-size: 14px;
	line-height: 1.5;
}

.rmd-message.is-error {
	background: #fdf1f0;
	color: var(--rmd-bad);
	border: 1px solid #f2d4d1;
}

.rmd-message.is-success {
	background: #f0f7f2;
	color: var(--rmd-good);
	border: 1px solid #cee2d4;
}

/* Buttons — hardened against theme styles */
.rmd-modal__actions {
	display: flex;
	flex-direction: column;
	gap: 9px;
	margin-top: 20px;
}

.rmd-modal .rmd-btn {
	display: block;
	width: 100%;
	padding: 13px 20px !important;
	margin: 0 !important;
	border-radius: 999px !important;
	font-family: inherit;
	font-size: 15px !important;
	font-weight: 600 !important;
	line-height: 1.4 !important;
	text-align: center;
	text-transform: none !important;
	letter-spacing: normal !important;
	text-decoration: none !important;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	box-shadow: none !important;
	text-shadow: none !important;
	transition: background-color .15s ease, border-color .15s ease;
	box-sizing: border-box;
}

.rmd-modal .rmd-btn--primary,
.rmd-modal .rmd-btn--primary:visited {
	background: var(--rmd-brand) !important;
	background-image: none !important;
	border: 1px solid var(--rmd-brand) !important;
	color: #fff !important;
}

.rmd-modal .rmd-btn--primary:hover,
.rmd-modal .rmd-btn--primary:focus {
	background: var(--rmd-brand-dark) !important;
	border-color: var(--rmd-brand-dark) !important;
	color: #fff !important;
	outline: none;
}

.rmd-modal .rmd-btn--primary:disabled {
	opacity: .55;
	cursor: not-allowed;
}

.rmd-modal .rmd-btn--ghost,
.rmd-modal .rmd-btn--ghost:visited {
	background: #fff !important;
	background-image: none !important;
	border: 1px solid #ddd5cb !important;
	color: #5d564f !important;
	font-weight: 500 !important;
}

.rmd-modal .rmd-btn--ghost:hover,
.rmd-modal .rmd-btn--ghost:focus {
	background: var(--rmd-brand-soft) !important;
	border-color: var(--rmd-brand-line) !important;
	color: var(--rmd-ink) !important;
	outline: none;
}

.rmd-modal__note {
	margin: 16px 0 0;
	font-size: 12px;
	line-height: 1.55;
	color: #9a938b;
	text-align: center;
}

@media screen and (max-width: 480px) {
	.rmd-modal { padding: 14px; }
	.rmd-modal__box { padding: 26px 22px 20px; border-radius: 14px; }
	.rmd-modal__title { font-size: 20px; }
}
