/* ============================================================
 * Relivoo Club - panel klienta w My Account.
 * Brand: żołędzie + ochra (--c-brand).
 * ============================================================ */

.ls-rc-account {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.ls-rc-account__head h2 {
	margin: 0 0 6px;
	font-size: 26px;
	font-weight: 800;
}
.ls-rc-account__lead {
	margin: 0;
	color: #555;
	font-size: 14.5px;
}
.ls-rc-account__lead a {
	color: var(--c-brand, #c89020);
	font-weight: 600;
	text-decoration: none;
	margin-left: 4px;
}
.ls-rc-account__lead a:hover { text-decoration: underline; }

/* ============ Staty ============ */
.ls-rc-stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}
.ls-rc-stat {
	background: #fff;
	border: 1px solid #e7e7e3;
	border-radius: 14px;
	padding: 20px;
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.ls-rc-stat--balance {
	background: linear-gradient(135deg, #fff7ec 0%, #fff 100%);
	border-color: #f2dca3;
}
.ls-rc-stat__icon {
	position: absolute;
	top: 16px;
	right: 16px;
	color: var(--c-brand, #c89020);
	opacity: .8;
}
.ls-rc-stat strong {
	font-size: 32px;
	font-weight: 800;
	line-height: 1;
	color: #1f1f1f;
}
.ls-rc-stat__label {
	font-size: 13px;
	color: #555;
	font-weight: 600;
}
.ls-rc-stat__hint {
	font-size: 11.5px;
	color: #777;
	margin-top: 4px;
	line-height: 1.4;
}

/* ============ Sekcje ============ */
.ls-rc-section__head h3 {
	font-size: 19px;
	margin: 0 0 6px;
	font-weight: 700;
}
.ls-rc-section__head p {
	color: #666;
	font-size: 14px;
	margin: 0 0 16px;
}

.ls-rc-empty {
	background: #fafafa;
	border: 1px dashed #d6d6d3;
	border-radius: 12px;
	padding: 28px;
	text-align: center;
	color: #666;
}
.ls-rc-empty p { margin: 0; font-size: 14px; }

/* ============ Karty ofert ============ */
.ls-rc-rewards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 16px;
}

.ls-rc-reward {
	background: #fff;
	border: 1px solid #e7e7e3;
	border-radius: 14px;
	padding: 22px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	position: relative;
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.ls-rc-reward:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(0,0,0,.07);
	border-color: #d4d4d0;
}
.ls-rc-reward--featured {
	border-color: var(--c-brand, #c89020);
	background: linear-gradient(180deg, #fff8ed 0%, #fff 100%);
}
.ls-rc-reward--locked {
	background: #fafafa;
	opacity: .85;
}
.ls-rc-reward--locked:hover {
	transform: none;
	box-shadow: none;
}

.ls-rc-reward__badge {
	position: absolute;
	top: -10px;
	right: 16px;
	background: var(--c-brand, #c89020);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .5px;
	text-transform: uppercase;
	padding: 4px 10px;
	border-radius: 999px;
}

.ls-rc-reward__discount {
	font-size: 28px;
	font-weight: 800;
	color: var(--c-brand, #c89020);
	line-height: 1;
}
.ls-rc-reward__discount .woocommerce-Price-amount { color: inherit !important; }
.ls-rc-reward__discount small {
	font-size: 13px;
	font-weight: 500;
	color: #666;
	margin-left: 4px;
}

.ls-rc-reward__name {
	font-size: 16px;
	margin: 0;
	font-weight: 700;
	color: #1f1f1f;
}
.ls-rc-reward__desc {
	font-size: 13.5px;
	color: #555;
	line-height: 1.5;
}
.ls-rc-reward__desc p { margin: 0; }

.ls-rc-reward__meta {
	list-style: none;
	padding: 12px 0 0;
	margin: auto 0 0;
	border-top: 1px solid #f0f0eb;
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 13px;
}
.ls-rc-reward__meta li {
	display: flex;
	justify-content: space-between;
	color: #555;
}
.ls-rc-reward__meta strong {
	color: #1f1f1f;
	font-weight: 700;
}
.ls-rc-reward__cost {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: var(--c-brand, #c89020);
}

.ls-rc-reward__form { margin: 0; }
.ls-rc-reward__btn {
	width: 100%;
	background: var(--c-brand, #c89020);
	color: #fff;
	border: none;
	border-radius: 999px;
	padding: 12px 18px;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	transition: background .15s ease, transform .15s ease;
}
.ls-rc-reward__btn:hover {
	background: #b07a18;
	transform: translateY(-1px);
}
.ls-rc-reward__btn:active { transform: translateY(0); }

.ls-rc-reward__locked {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	padding: 12px 0 4px;
	text-align: center;
}
.ls-rc-reward__missing {
	background: #fef2f2;
	color: #b91c1c;
	font-size: 12.5px;
	font-weight: 600;
	padding: 6px 12px;
	border-radius: 999px;
}
.ls-rc-reward__shop {
	color: var(--c-brand, #c89020);
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
}
.ls-rc-reward__shop:hover { text-decoration: underline; }

/* ============ Historia ============ */
.ls-rc-history-wrap {
	overflow-x: auto;
	background: #fff;
	border: 1px solid #e7e7e3;
	border-radius: 12px;
}
.ls-rc-history {
	width: 100%;
	border-collapse: collapse;
	font-size: 13.5px;
}
.ls-rc-history thead th {
	text-align: left;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .4px;
	color: #666;
	padding: 12px 16px;
	background: #fafaf7;
	border-bottom: 1px solid #e7e7e3;
}
.ls-rc-history tbody td {
	padding: 14px 16px;
	border-bottom: 1px solid #f3f3ee;
	vertical-align: top;
}
.ls-rc-history tbody tr:last-child td {
	border-bottom: none;
}
.ls-rc-history__sub {
	display: block;
	color: #888;
	font-size: 11.5px;
	margin-top: 2px;
}
.ls-rc-history__amount {
	text-align: right;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}
.ls-rc-history__amount--positive { color: #2ea86a; }
.ls-rc-history__amount--negative { color: #c03030; }

.ls-rc-state {
	display: inline-block;
	font-size: 11.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .3px;
	padding: 3px 9px;
	border-radius: 999px;
	white-space: nowrap;
}
.ls-rc-state--ok        { background: #e8f6ee; color: #2ea86a; }
.ls-rc-state--pending   { background: #fff7ec; color: #c89020; }
.ls-rc-state--cancelled { background: #fef2f2; color: #b91c1c; }

/* ============ Cart message ============ */
.ls-rc-cart-row th {
	padding-top: 12px !important;
	padding-bottom: 12px !important;
}
.ls-rc-cart-message {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 12px 14px;
	background: linear-gradient(135deg, #fff7ec 0%, #fff 100%);
	border: 1px solid #f2dca3;
	border-radius: 10px;
	font-size: 13.5px;
	color: #5a4a1f;
	line-height: 1.55;
}
.ls-rc-cart-message__icon { color: var(--c-brand, #c89020); flex-shrink: 0; margin-top: 2px; }
.ls-rc-cart-message__text strong { color: #1f1f1f; font-weight: 700; }
.ls-rc-cart-message__text a {
	color: var(--c-brand, #c89020);
	font-weight: 600;
}

/* ============ Nav menu icon ============ */
.woocommerce-MyAccount-navigation-link--relivoo-club a::before {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><line x1='12' y1='3' x2='12' y2='6'/><path d='M7 10 Q7 6 12 6 Q17 6 17 10'/><line x1='7' y1='10' x2='17' y2='10'/><path d='M8.5 10 Q8 17.5 12 19.5 Q16 17.5 15.5 10'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><line x1='12' y1='3' x2='12' y2='6'/><path d='M7 10 Q7 6 12 6 Q17 6 17 10'/><line x1='7' y1='10' x2='17' y2='10'/><path d='M8.5 10 Q8 17.5 12 19.5 Q16 17.5 15.5 10'/></svg>");
}

/* ============ Responsive ============ */
@media (max-width: 960px) {
	.ls-rc-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
	.ls-rc-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
	.ls-rc-stat { padding: 14px; }
	.ls-rc-stat strong { font-size: 24px; }
	.ls-rc-rewards { grid-template-columns: 1fr; }
	.ls-rc-history thead { display: none; }
	.ls-rc-history tbody td { padding: 10px 14px; display: block; border: none; }
	.ls-rc-history tbody tr {
		display: block;
		padding: 10px 0;
		border-bottom: 1px solid #f3f3ee;
	}
	.ls-rc-history tbody tr:last-child { border-bottom: none; }
	.ls-rc-history__amount { text-align: left; padding-top: 4px !important; }
}
