/**
 * Storefront styles.
 *
 * Scoped under .rgp- prefixes so nothing here leaks into the Woodmart theme,
 * and built mobile-first: the grid starts as a single column and the quantity
 * controls stay large enough to use with a thumb.
 */

.rgp-commercial,
.rgp-locked,
.rgp-account {
	--rgp-bg: #ffffff;
	--rgp-surface: #f4f6f9;
	--rgp-border: #dfe4ec;
	--rgp-text: #10172a;
	--rgp-muted: #667085;
	--rgp-accent: #0075c9;
	--rgp-accent-dark: #005796;
	--rgp-ok: #0f9d58;
	--rgp-warn: #b54708;
	--rgp-radius: 14px;

	color: var(--rgp-text);
	font-size: 16px;
	line-height: 1.55;
}

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

.rgp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 12px 24px;
	border: 1px solid transparent;
	border-radius: 999px;
	font-weight: 600;
	font-size: 15px;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.rgp-btn--primary {
	background: var(--rgp-accent);
	border-color: var(--rgp-accent);
	color: #fff;
}

.rgp-btn--primary:hover,
.rgp-btn--primary:focus {
	background: var(--rgp-accent-dark);
	border-color: var(--rgp-accent-dark);
	color: #fff;
}

.rgp-btn--ghost {
	background: transparent;
	border-color: var(--rgp-border);
	color: var(--rgp-text);
}

.rgp-btn--ghost:hover,
.rgp-btn--ghost:focus {
	border-color: var(--rgp-accent);
	color: var(--rgp-accent);
}

.rgp-btn--lg {
	width: 100%;
	min-height: 54px;
	font-size: 16px;
}

.rgp-eyebrow {
	display: inline-block;
	margin-bottom: 10px;
	padding: 6px 14px;
	border-radius: 999px;
	background: var(--rgp-surface);
	color: var(--rgp-accent);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

/* ---------- locked state ---------- */

.rgp-locked {
	max-width: 560px;
	margin: 40px auto;
	padding: 40px 24px;
	border: 1px solid var(--rgp-border);
	border-radius: var(--rgp-radius);
	background: var(--rgp-bg);
	text-align: center;
}

.rgp-locked__icon {
	width: 56px;
	height: 56px;
	margin: 0 auto 18px;
	color: var(--rgp-accent);
}

.rgp-locked__icon svg {
	width: 100%;
	height: 100%;
}

.rgp-locked__title {
	margin: 0 0 10px;
	font-size: 24px;
	line-height: 1.25;
}

.rgp-locked__text {
	margin: 0 0 24px;
	color: var(--rgp-muted);
}

.rgp-locked__actions {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

/* ---------- commercial page ---------- */

.rgp-commercial__intro {
	margin-bottom: 28px;
}

.rgp-commercial__lede {
	margin: 0 0 12px;
	font-size: 18px;
}

.rgp-commercial__minimum {
	margin: 0 0 10px;
	padding: 12px 16px;
	border-left: 4px solid var(--rgp-accent);
	border-radius: 0 8px 8px 0;
	background: var(--rgp-surface);
	font-size: 16px;
}

.rgp-commercial__note {
	margin: 0;
	color: var(--rgp-muted);
	font-size: 14px;
}

.rgp-section {
	margin-top: 34px;
}

.rgp-section__title {
	margin: 0 0 6px;
	font-size: 19px;
}

.rgp-section__hint {
	margin: 0 0 18px;
	color: var(--rgp-muted);
	font-size: 14px;
}

.rgp-section--separate {
	margin-top: 44px;
	padding-top: 28px;
	border-top: 1px dashed var(--rgp-border);
}

.rgp-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 18px;
}

/* ---------- product card ---------- */

.rgp-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--rgp-border);
	border-radius: var(--rgp-radius);
	background: var(--rgp-bg);
}

.rgp-card--separate {
	border-style: dashed;
}

.rgp-card__media {
	position: relative;
	background: var(--rgp-surface);
}

.rgp-card__media img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.rgp-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	padding: 5px 12px;
	border-radius: 999px;
	background: rgba(16, 23, 42, .85);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
}

.rgp-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 18px;
}

.rgp-card__title {
	margin: 0 0 6px;
	font-size: 17px;
}

.rgp-card__desc {
	margin: 0 0 12px;
	color: var(--rgp-muted);
	font-size: 14px;
}

.rgp-card__price {
	display: flex;
	align-items: baseline;
	gap: 6px;
	margin: 0 0 12px;
}

.rgp-card__amount {
	font-size: 24px;
	font-weight: 700;
}

.rgp-card__unit {
	color: var(--rgp-muted);
	font-size: 14px;
}

.rgp-card__meta {
	margin: 0 0 16px;
	padding: 0;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.rgp-card__meta-item {
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--rgp-surface);
	color: var(--rgp-muted);
	font-size: 12px;
	font-weight: 600;
}

.rgp-card__meta-item.is-counting {
	background: rgba(15, 157, 88, .12);
	color: var(--rgp-ok);
}

.rgp-card__meta-item.is-minimum {
	background: rgba(181, 71, 8, .12);
	color: var(--rgp-warn);
}

.rgp-card__form {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: auto;
}

/* ---------- quantity control ---------- */

.rgp-qty {
	display: flex;
	align-items: stretch;
	overflow: hidden;
	border: 1px solid var(--rgp-border);
	border-radius: 10px;
}

.rgp-qty__btn {
	width: 52px;
	border: 0;
	background: var(--rgp-surface);
	color: var(--rgp-text);
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
}

.rgp-qty__btn:hover {
	background: #e8ecf3;
}

.rgp-qty__input {
	flex: 1;
	width: 100%;
	min-height: 48px;
	padding: 10px;
	border: 0;
	border-left: 1px solid var(--rgp-border);
	border-right: 1px solid var(--rgp-border);
	background: #fff;
	font-size: 16px;
	font-weight: 600;
	text-align: center;
	-moz-appearance: textfield;
}

.rgp-qty__input::-webkit-outer-spin-button,
.rgp-qty__input::-webkit-inner-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

/* ---------- progress meter ---------- */

.rgp-progress {
	margin: 0 0 24px;
	padding: 18px;
	border: 1px solid var(--rgp-border);
	border-radius: var(--rgp-radius);
	background: var(--rgp-bg);
}

.rgp-progress.is-met {
	border-color: rgba(15, 157, 88, .4);
	background: rgba(15, 157, 88, .05);
}

.rgp-progress__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 10px;
}

.rgp-progress__label {
	font-weight: 600;
}

.rgp-progress__count strong {
	font-size: 20px;
}

.rgp-progress__track {
	height: 10px;
	overflow: hidden;
	border-radius: 999px;
	background: var(--rgp-surface);
}

.rgp-progress__fill {
	display: block;
	height: 100%;
	border-radius: 999px;
	background: var(--rgp-accent);
	transition: width .3s ease;
}

.rgp-progress.is-met .rgp-progress__fill {
	background: var(--rgp-ok);
}

.rgp-progress__status {
	margin: 10px 0 0;
	font-size: 14px;
}

.rgp-progress.is-met .rgp-progress__status {
	color: var(--rgp-ok);
	font-weight: 600;
}

.rgp-progress__tick {
	margin-right: 4px;
}

.rgp-progress__separate {
	margin: 14px 0 0;
	padding: 14px 0 0;
	border-top: 1px dashed var(--rgp-border);
	list-style: none;
	font-size: 14px;
}

.rgp-progress__separate li {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
}

.rgp-progress__sep-name {
	font-weight: 600;
}

.rgp-progress__sep-note {
	width: 100%;
	color: var(--rgp-muted);
	font-size: 12px;
}

/* ---------- pack selector ---------- */

.rgp-packs {
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: 100%;
	margin: 0 0 20px;
}

.rgp-packs__heading {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: #667085;
}

.rgp-pack {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	border: 1px solid #dfe4ec;
	border-radius: 12px;
	background: #f9fafc;
	cursor: pointer;
	transition: border-color .18s ease, background-color .18s ease;
}

.rgp-pack:hover {
	border-color: #b9c4d4;
}

.rgp-pack.is-selected {
	border-color: #0075c9;
	border-width: 2px;
	padding: 13px 15px;
	background: #fff;
}

.rgp-pack__radio {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.rgp-pack__radio-dot {
	position: relative;
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	border: 2px solid #b9c4d4;
	border-radius: 50%;
	background: #fff;
}

.rgp-pack.is-selected .rgp-pack__radio-dot {
	border-color: #0075c9;
}

.rgp-pack.is-selected .rgp-pack__radio-dot::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #0075c9;
	transform: translate(-50%, -50%);
}

.rgp-pack__radio:focus-visible + .rgp-pack__radio-dot {
	outline: 2px solid #0075c9;
	outline-offset: 2px;
}

.rgp-pack__text {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.rgp-pack__title {
	font-size: 15px;
	font-weight: 600;
}

.rgp-pack__title .woocommerce-Price-amount {
	font-weight: 600;
}

.rgp-pack__label {
	color: #667085;
	font-size: 12.5px;
}

.rgp-pack.is-selected .rgp-pack__label {
	color: #0075c9;
	font-weight: 600;
}

.rgp-pack__total {
	flex: 0 0 auto;
	font-size: 15px;
	font-weight: 700;
}

/* ---------- account area ---------- */

.rgp-status {
	display: flex;
	gap: 14px;
	margin-bottom: 20px;
	padding: 20px;
	border: 1px solid var(--rgp-border);
	border-radius: var(--rgp-radius);
	background: var(--rgp-surface);
}

.rgp-status--active {
	border-color: rgba(15, 157, 88, .35);
	background: rgba(15, 157, 88, .07);
}

.rgp-status__tick {
	flex: 0 0 auto;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--rgp-ok);
	color: #fff;
	font-size: 15px;
	line-height: 28px;
	text-align: center;
}

.rgp-status__title {
	margin: 0 0 4px;
	font-size: 17px;
}

.rgp-status__text {
	margin: 0;
	color: var(--rgp-muted);
	font-size: 14px;
}

.rgp-note {
	margin-bottom: 18px;
	padding: 14px 16px;
	border-radius: 10px;
	background: var(--rgp-surface);
	font-size: 14px;
}

.rgp-note--success {
	background: rgba(15, 157, 88, .1);
	color: #0b6b3c;
}

.rgp-account__title {
	margin: 0 0 6px;
	font-size: 19px;
}

.rgp-account__intro {
	margin: 0 0 18px;
	color: var(--rgp-muted);
	font-size: 14px;
}

.rgp-field {
	display: block;
	margin-bottom: 16px;
}

.rgp-field__label {
	display: block;
	margin-bottom: 6px;
	font-size: 14px;
	font-weight: 600;
}

.rgp-field__input {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--rgp-border);
	border-radius: 10px;
	font-size: 15px;
	font-family: inherit;
}

.rgp-field__input:focus {
	border-color: var(--rgp-accent);
	outline: none;
}

.rgp-empty {
	padding: 30px;
	border: 1px dashed var(--rgp-border);
	border-radius: var(--rgp-radius);
	color: var(--rgp-muted);
	text-align: center;
}

.rgp-commercial__footer {
	margin-top: 32px;
}

/* ---------- larger screens ---------- */

@media (min-width: 600px) {
	.rgp-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.rgp-locked__actions {
		flex-direction: row;
		justify-content: center;
	}

	.rgp-btn--lg {
		width: auto;
		min-width: 280px;
	}

	.rgp-commercial__footer {
		text-align: center;
	}
}

@media (min-width: 900px) {
	.rgp-grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.rgp-card__form {
		flex-direction: row;
		align-items: center;
	}

	.rgp-qty {
		flex: 0 0 132px;
	}

	.rgp-qty__btn {
		width: 40px;
	}

	.rgp-card__submit {
		flex: 1;
	}
}

@media (min-width: 1200px) {
	.rgp-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

.rgp-staff-notice {
	margin: 14px 0 0;
	padding: 12px 16px;
	border: 1px dashed rgba(181, 71, 8, .45);
	border-radius: 10px;
	background: rgba(181, 71, 8, .06);
	color: #8a3708;
	font-size: 13.5px;
}

/* Invoice link under the order table ---------------------------------- */

.rgp-invoice-link {
	margin: 18px 0 0;
}
