/* DPoint Integration — Frontend Styles */

/* ── Mini Widget ──────────────────────────────── */
.dpoint-mini-widget {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	background: #f8f4f0;
	border-radius: 6px;
	font-size: 0.9em;
}
.dpoint-mini-widget__tier {
	font-weight: 600;
	color: #8b6c42;
}
.dpoint-mini-widget__value {
	font-weight: 700;
	color: #2d2d2d;
}
.dpoint-mini-widget--empty {
	color: #888;
	font-style: italic;
}

/* ── Account Tab — Profile Layout ─────────────── */
.dpoint-profile {
	display: flex !important;
	flex-direction: column !important;
	gap: 24px;
	width: 100%;
	box-sizing: border-box;
}
.dpoint-profile > * {
	box-sizing: border-box;
}

/* Left: member card */
.dpoint-profile__left {
	width: 100%;
	background: #fdf6ee;
	border: 1px solid #ede0d0;
	border-radius: 8px;
	padding: 20px 16px;
	text-align: center;
	box-sizing: border-box;
}
.dpoint-profile__name {
	font-size: 1.1em;
	font-weight: 700;
	color: #1a1a1a;
	margin-bottom: 6px;
}
.dpoint-profile__tier {
	color: #666;
	font-size: 0.85em;
	margin: 0;
}
.dpoint-profile__tier strong {
	color: #8b6c42;
	font-weight: 700;
}
.dpoint-profile__divider {
	border: none;
	border-top: 1px solid #e2e2e2;
	margin: 0 0 16px;
}
.dpoint-profile__info {
	margin: 0;
}
.dpoint-profile__info-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	padding: 9px 0;
	border-bottom: 1px solid #f0f0f0;
}
.dpoint-profile__info-row:last-child {
	border-bottom: none;
}
.dpoint-profile__info-row dt {
	color: #888;
	font-size: 0.875em;
	font-weight: 400;
	flex-shrink: 0;
}
.dpoint-profile__info-row dd {
	font-weight: 700;
	color: #1a1a1a;
	margin: 0;
	text-align: right;
}

/* Right: rewards */
.dpoint-profile__right {
	flex: 1 1 0%;
	min-width: 0;
	overflow: hidden;
}
.dpoint-rewards__title {
	font-size: 1em;
	font-weight: 600;
	color: #1a1a1a;
	margin: 0 0 12px;
}
.dpoint-rewards__totals {
	display: flex;
	gap: 12px;
	margin-bottom: 28px;
}
.dpoint-rewards__total-card {
	flex: 1;
	border: 1px solid #e2e2e2;
	border-radius: 6px;
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.dpoint-rewards__total-label {
	font-size: 0.8em;
	font-weight: 500;
	color: #555;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.dpoint-rewards__total-value {
	font-size: 1.75em;
	font-weight: 700;
	color: #1a1a1a;
	line-height: 1;
}
.dpoint-rewards__total-value small {
	font-size: 0.45em;
	font-weight: 400;
	color: #888;
	vertical-align: middle;
	margin-left: 2px;
}
.dpoint-rewards__history {
	width: 100%;
	border-collapse: collapse;
}
.dpoint-rewards__history thead tr {
	background: #1a1a1a;
	color: #fff;
}
.dpoint-rewards__history th {
	padding: 12px 16px;
	text-align: left;
	font-size: 0.875em;
	font-weight: 600;
}
.dpoint-rewards__history td {
	padding: 12px 16px;
	border-bottom: 1px solid #f0f0f0;
	font-size: 0.875em;
}
.dpoint-rewards__history-empty td {
	text-align: center;
	color: #888;
}

/* Responsive: stack reward totals on mobile */
@media (max-width: 640px) {
	.dpoint-rewards__totals {
		flex-direction: column;
	}
}

/* ── Account Tab — OTP Form ───────────────────── */
.dpoint-otp-form {
	max-width: 400px;
	margin-top: 16px;
}
.dpoint-otp-form__row {
	display: flex;
	gap: 8px;
	margin-top: 8px;
}
.dpoint-otp-form__row input[type="text"] {
	flex: 1;
	padding: 8px 12px;
	font-size: 1.2em;
	letter-spacing: 0.2em;
	text-align: center;
	border: 1px solid #ccc;
	border-radius: 4px;
}
.dpoint-otp-form__message {
	margin-top: 10px;
	font-size: 0.9em;
	color: #4a7c4e;
	min-height: 1.4em;
}
.dpoint-otp-form__message--error {
	color: #b32d2e;
}
.dpoint-account__refresh {
	margin-top: 10px;
	font-size: 0.8em;
	text-align: right;
}
.dpoint-account__refresh a {
	color: #aaa;
	text-decoration: none;
}
.dpoint-account__refresh a:hover {
	color: #8b6c42;
	text-decoration: underline;
}

/* ── Thank-you Page ───────────────────────────── */
.dpoint-thankyou {
	margin: 24px 0;
	padding: 20px 24px;
	background: #fdf6ee;
	border-left: 4px solid #8b6c42;
	border-radius: 4px;
}
.dpoint-thankyou__title {
	margin: 0 0 12px;
	font-size: 1.1em;
	color: #2d2d2d;
}
.dpoint-thankyou__stats {
	display: flex;
	gap: 32px;
	margin: 12px 0;
}
.dpoint-thankyou__stat {
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.dpoint-thankyou__stat-label {
	font-size: 0.8em;
	color: #888;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}
.dpoint-thankyou__tier {
	font-weight: 600;
	color: #8b6c42;
}
.dpoint-thankyou__balance {
	font-size: 1.4em;
	font-weight: 700;
	color: #2d2d2d;
}
.dpoint-thankyou__cta a {
	display: inline-block;
	margin-top: 8px;
	font-size: 0.9em;
	color: #8b6c42;
	text-decoration: underline;
}
