/* Storefront — account & address book (luxury, centered) */

.jm-account-lux {
	float: none;
	width: 100%;
	font-family: var(--wf-font);
	color: #1a1a1a;
}

.jm-account-lux__inner {
	max-width: 720px;
	margin: 0 auto;
	padding: 0 16px 3rem;
}

.jm-account-breadcrumb {
	background: transparent !important;
	padding: 0 0 1.25rem !important;
	margin: 0 !important;
	font-size: 12px;
	text-align: center;
	border: none !important;
}

.jm-account-breadcrumb a {
	color: #888;
	text-decoration: none;
}

.jm-account-breadcrumb a:hover {
	color: #111;
}

.jm-account-breadcrumb > .active {
	color: #444;
}

.jm-account-flash {
	margin-bottom: 1.25rem;
	padding: 12px 16px;
	font-size: 13px;
	border-radius: 8px;
	text-align: center;
	line-height: 1.5;
}

.jm-account-flash--ok {
	color: #1b5e20;
	background: #f1f8f2;
	border: 1px solid #c8e6c9;
}

.jm-account-flash--err {
	color: #b71c1c;
	background: #fff5f5;
	border: 1px solid #ffcdd2;
}

.jm-account-panel {
	background: #fff;
	border: 1px solid #e8e8e8;
	border-radius: 12px;
	box-shadow: 0 4px 28px rgba(0, 0, 0, 0.05);
	margin-bottom: 1.75rem;
	overflow: hidden;
}

.jm-account-panel__head {
	padding: 1.35rem 1.5rem 1rem;
	border-bottom: 1px solid #eee;
	text-align: center;
}

.jm-account-panel__title {
	font-family: var(--wf-display);
	font-size: 1.35rem;
	font-weight: 500;
	margin: 0;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #111;
}

.jm-account-panel__sub {
	margin: 0.5rem 0 0;
	font-size: 12px;
	color: #888;
	letter-spacing: 0.02em;
}

.jm-account-panel__body {
	padding: 1.25rem 1.5rem 1.5rem;
}

.jm-account-profile {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem 1.5rem;
	max-width: 520px;
	margin: 0 auto;
}

@media (max-width: 540px) {
	.jm-account-profile {
		grid-template-columns: 1fr;
	}
}

.jm-account-profile__item {
	text-align: center;
	padding: 0.75rem 0.5rem;
	border-bottom: 1px solid #f0f0f0;
}

.jm-account-profile__row {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	max-width: 100%;
}

.jm-account-profile__label {
	display: block;
	font-size: 10px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: #999;
	margin-bottom: 6px;
}

.jm-account-profile__value {
	font-size: 14px;
	color: #222;
	word-break: break-word;
}

.jm-account-profile__item--full {
	grid-column: 1 / -1;
}

.jm-account-profile__item--full .jm-account-profile__row--address {
	width: 100%;
	justify-content: center;
}

.jm-account-profile__row--address {
	align-items: flex-start;
	max-width: 100%;
}

.jm-account-profile__value--address {
	font-size: 13px;
	line-height: 1.5;
	text-align: center;
	max-width: none;
	display: block;
	-webkit-line-clamp: unset;
	overflow: visible;
}

.jm-account-edit-btn {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: transparent;
	color: #999;
	cursor: pointer;
	transition: color 0.15s ease, background 0.15s ease;
}

.jm-account-edit-btn:hover {
	color: #111;
	background: #f0f0f0;
}

.jm-account-edit-btn .fa-pen {
	font-size: 12px;
}

.jm-account-profile-edit {
	margin-top: 10px;
	max-width: 280px;
	margin-left: auto;
	margin-right: auto;
}

.jm-account-profile-edit__input {
	width: 100%;
	height: 40px;
	padding: 0 12px;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-size: 14px;
	box-sizing: border-box;
	margin-bottom: 8px;
}

.jm-account-profile-edit__actions {
	display: flex;
	justify-content: center;
	gap: 8px;
	flex-wrap: wrap;
}

.jm-account-panel--highlight {
	box-shadow: 0 0 0 2px rgba(197, 165, 114, 0.45);
}

.jm-account-profile-form {
	max-width: 420px;
	margin: 0 auto;
}

.jm-account-input--readonly {
	background: #f7f7f7;
	color: #666;
	cursor: not-allowed;
}

.jm-account-phone-label {
	font-size: 12px;
	color: #888;
}

.jm-account-addresses {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	max-width: 560px;
	margin: 0 auto;
}

.jm-account-address-card {
	position: relative;
	padding: 1.15rem 1.25rem 1.1rem;
	border: 1px solid #e5e5e5;
	border-radius: 10px;
	background: #fafafa;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.jm-account-address-card--default {
	border-color: #c5a572;
	background: linear-gradient(135deg, #fffdf9 0%, #fff 100%);
	box-shadow: 0 2px 16px rgba(197, 165, 114, 0.12);
}

.jm-account-address-badge {
	display: inline-block;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #8a6d3b;
	background: rgba(197, 165, 114, 0.18);
	padding: 4px 10px;
	border-radius: 999px;
	margin-bottom: 10px;
}

.jm-account-address-text {
	margin: 0 0 14px;
	font-size: 14px;
	line-height: 1.55;
	color: #333;
}

.jm-account-address-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	align-items: center;
}

.jm-account-btn {
	display: inline-block;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 8px 14px;
	border-radius: 6px;
	border: 1px solid #ddd;
	background: #fff;
	color: #333;
	cursor: pointer;
	text-decoration: none !important;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.jm-account-btn:hover {
	border-color: #111;
	color: #111;
}

.jm-account-btn--gold {
	border-color: #c5a572;
	color: #6b5424;
	background: rgba(197, 165, 114, 0.08);
}

.jm-account-btn--gold:hover {
	background: rgba(197, 165, 114, 0.18);
}

.jm-account-btn--danger {
	border-color: #e0b4b4;
	color: #c62828;
}

.jm-account-btn--danger:hover {
	background: #fff5f5;
	border-color: #c62828;
}

.jm-account-btn--primary {
	background: #111;
	border-color: #111;
	color: #fff;
}

.jm-account-btn--primary:hover {
	background: #333;
	border-color: #333;
	color: #fff;
}

.jm-account-empty {
	text-align: center;
	font-size: 13px;
	color: #777;
	padding: 1rem 0;
	line-height: 1.5;
}

.jm-account-add {
	max-width: 560px;
	margin: 1.5rem auto 0;
	padding-top: 1.25rem;
	border-top: 1px solid #eee;
}

.jm-account-add__title {
	font-family: var(--wf-display);
	font-size: 1.05rem;
	text-align: center;
	margin: 0 0 1rem;
	color: #222;
	letter-spacing: 0.04em;
}

.jm-account-field {
	margin-bottom: 12px;
}

.jm-account-field label {
	display: block;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #555;
	margin-bottom: 6px;
}

.jm-account-field .jm-auth-hint {
	text-align: left;
	margin-bottom: 8px !important;
}

.jm-account-input,
.jm-account-select {
	width: 100%;
	height: 44px;
	padding: 0 14px;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-size: 14px;
	color: #222;
	background: #fff;
	box-sizing: border-box;
}

.jm-account-select {
	margin-bottom: 8px;
	cursor: pointer;
}

.jm-account-select:disabled {
	background: #f5f5f5;
	color: #888;
	cursor: not-allowed;
}

.jm-account-check {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 12px 0 16px;
	font-size: 13px;
	color: #444;
}

.jm-account-check input {
	margin: 0;
}

.jm-account-limit {
	text-align: center;
	font-size: 12px;
	color: #888;
	margin-top: 1rem;
	font-style: italic;
}

.jm-account-orders-wrap {
	overflow-x: auto;
}

.jm-account-orders {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}

.jm-account-orders th,
.jm-account-orders td {
	padding: 12px 10px;
	border-bottom: 1px solid #eee;
	text-align: center;
	vertical-align: middle;
}

.jm-account-orders th {
	font-size: 10px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #888;
	background: #fafafa;
}

.jm-account-orders td {
	color: #333;
}

.jm-account-orders .jm-order-amount {
	color: #111;
	font-weight: 600;
}

.jm-account-orders-empty {
	text-align: center;
	padding: 1.25rem;
	font-size: 13px;
	color: #777;
	background: #fafafa;
	border-radius: 8px;
}

.jm-account-status {
	display: inline-block;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	padding: 4px 8px;
	border-radius: 4px;
}

.jm-account-status--wait { background: #ffebee; color: #c62828; }
.jm-account-status--ok { background: #e8f5e9; color: #2e7d32; }
.jm-account-status--ship { background: #e3f2fd; color: #1565c0; }
.jm-account-status--done { background: #f1f8e9; color: #558b2f; }
.jm-account-status--cancel { background: #f5f5f5; color: #616161; }

#modalHuyDonHang .modal-header {
	background: #111 !important;
}

.jm-phone-modal-dialog {
	max-width: 480px;
	margin: 30px auto;
}

.jm-phone-modal {
	border: none;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.jm-phone-modal__head {
	text-align: center;
	border-bottom: 1px solid #eee;
	padding: 1.25rem 1.5rem 1rem;
	background: #fff;
}

.jm-phone-modal__head .close {
	position: absolute;
	right: 14px;
	top: 12px;
	font-size: 22px;
	opacity: 0.5;
}

.jm-phone-modal__head .modal-title {
	font-family: var(--wf-display);
	font-size: 1.15rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #111;
	margin: 0;
}

.jm-phone-modal__sub {
	margin: 0.45rem 0 0;
	font-size: 12px;
	color: #888;
}

.jm-phone-modal__body {
	padding: 1.25rem 1.25rem 1.5rem;
	max-height: 70vh;
	overflow-y: auto;
}

.jm-phone-modal__list {
	max-width: none;
	margin: 0 0 1rem;
}

.jm-phone-modal__add {
	margin-top: 0;
	padding-top: 1rem;
	border-top: 1px solid #eee;
	max-width: none;
}

.jm-phone-modal__submit {
	text-align: center;
	margin-top: 0.75rem;
}

.jm-phone-modal .jm-account-address-actions form {
	display: inline;
}

/* Tích điểm & voucher trên tài khoản */
.jm-loyalty-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin-bottom: 1rem;
}

.jm-loyalty-stat {
	flex: 1 1 140px;
	padding: 0.75rem 1rem;
	background: #fafafa;
	border: 1px solid #eee;
	border-radius: 8px;
}

.jm-loyalty-stat__label {
	display: block;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #888;
	margin-bottom: 0.25rem;
}

.jm-loyalty-stat__value {
	font-size: 15px;
	font-weight: 600;
	color: #111;
}

.jm-loyalty-hint {
	font-size: 13px;
	color: #555;
	margin: 0 0 1rem;
}

.jm-loyalty-hint a {
	color: #8b6914;
}

.jm-loyalty-vouchers__title {
	font-size: 13px;
	font-weight: 600;
	margin: 0 0 0.5rem;
}

.jm-loyalty-vouchers {
	list-style: none;
	padding: 0;
	margin: 0;
}

.jm-loyalty-voucher-item {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1rem;
	padding: 0.5rem 0;
	border-bottom: 1px solid #f0f0f0;
	font-size: 13px;
}

.jm-loyalty-voucher-item code {
	background: #fff8e7;
	padding: 2px 8px;
	border-radius: 4px;
	font-weight: 600;
}

.jm-loyalty-policy {
	font-size: 14px;
	line-height: 1.7;
	color: #333;
}

.jm-loyalty-policy__h {
	font-size: 1rem;
	margin: 1.25rem 0 0.5rem;
	font-weight: 600;
}

.jm-loyalty-policy ul {
	padding-left: 1.25rem;
}

.jm-loyalty-tier-table {
	width: 100%;
	border-collapse: collapse;
	margin: 0.5rem 0 1rem;
	font-size: 13px;
}

.jm-loyalty-tier-table th,
.jm-loyalty-tier-table td {
	border: 1px solid #eee;
	padding: 8px 10px;
	text-align: left;
}

.jm-loyalty-tier-table th {
	background: #fafafa;
}

.jm-loyalty-policy__note {
	font-size: 12px;
	color: #777;
	margin-top: 1.5rem;
}
