/* ML Billing — Account page */

.mlb-account {
	max-width: 500px;
	margin: 0 auto;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	color: #1a1a1a;
	-webkit-font-smoothing: antialiased;
}

/* Login prompt */
.mlb-account-login {
	text-align: center;
	padding: 40px 20px;
	background: #f8f9fa;
	border-radius: 12px;
}

.mlb-account-login p {
	margin: 0;
	font-size: 15px;
	color: #555;
}

.mlb-account-login a {
	color: #4F7F74;
	font-weight: 600;
	text-decoration: underline;
}

/* Sections */
.mlb-account-section {
	margin-bottom: 28px;
}

.mlb-account-section__header {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #888;
	margin-bottom: 12px;
}

/* Card */
.mlb-account-card__product {
	font-weight: 700;
	font-size: 15px;
	color: #1a1a1a;
	margin-bottom: 4px;
}

.mlb-account-card {
	background: #f8f9fa;
	border-radius: 12px;
	padding: 20px 24px;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
}

/* Status badge */
.mlb-account-status {
	display: inline-block;
	padding: 4px 14px;
	border-radius: 20px;
	font-size: 13px;
	font-weight: 600;
}

.mlb-account-status--active {
	background: #e8f0ee;
	color: #4F7F74;
}

.mlb-account-status--inactive {
	background: #fef2f2;
	color: #dc2626;
}

.mlb-account-period {
	font-size: 14px;
	color: #555;
	margin-top: 12px;
	background: #fff;
	border: 1px solid #e5e7eb;
	padding: 10px 14px;
	border-radius: 8px;
}

/* Pending payment status */
.mlb-account-status--pending {
	background: #fff8e1;
	color: #8d6e00;
}

/* Pending cancel status */
.mlb-account-status--pending-cancel {
	background: #fff8e1;
	color: #8d6e00;
}

/* Cancel link */
.mlb-account-cancel {
	display: inline-block;
	margin-top: 6px;
	font-size: 13px;
	color: #bbb;
	text-decoration: underline;
	cursor: pointer;
	transition: color 0.2s;
}

.mlb-account-cancel:hover {
	color: #dc2626;
}

/* Cancel confirmation notice */
.mlb-account-cancel-notice {
	margin-top: 20px;
	font-size: 13px;
	color: #8d6e00;
}

/* Renew button */
.mlb-account-btn {
	display: inline-block;
	margin-top: 16px;
	padding: 10px 24px;
	background: #4F7F74;
	color: #fff;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	transition: background 0.2s, transform 0.1s;
}

.mlb-account-btn:hover {
	background: #3D6359;
	transform: translateY(-1px);
	color: #fff;
}

/* Services (2-col) */
.mlb-account-services {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.mlb-account-service {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 20px 16px;
	background: #f8f9fa;
	border-radius: 12px;
	text-decoration: none;
	color: #1a1a1a;
	transition: background 0.2s, transform 0.1s;
}

.mlb-account-service:hover {
	background: #e8f0ee;
	transform: translateY(-1px);
}

.mlb-account-service__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 10px;
	background: rgba(79, 127, 116, 0.12);
	color: #4F7F74;
}

.mlb-account-service__label {
	font-size: 14px;
	font-weight: 600;
}

.mlb-account-service__status {
	font-size: 11px;
	font-weight: 600;
	padding: 2px 8px;
	border-radius: 10px;
}

.mlb-account-service__status--active {
	background: #e8f0ee;
	color: #4F7F74;
}

.mlb-account-service__status--inactive {
	background: #f3f4f6;
	color: #888;
}

/* Account user info */
.mlb-account-user {
	background: #f8f9fa;
	border-radius: 12px 12px 0 0;
	padding: 16px 18px;
	border-bottom: 1px solid #eee;
}

.mlb-account-user__name {
	font-size: 15px;
	font-weight: 600;
	color: #1a1a1a;
}

.mlb-account-user__email {
	font-size: 13px;
	color: #888;
	margin-top: 2px;
}

/* Account links (list) */
.mlb-account-links {
	display: flex;
	flex-direction: column;
	gap: 1px;
	background: #eee;
	border-radius: 0 0 12px 12px;
	overflow: hidden;
}

.mlb-account-link {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 18px;
	background: #f8f9fa;
	text-decoration: none;
	color: #1a1a1a;
	transition: background 0.15s;
}

.mlb-account-link:hover {
	background: #e8f0ee;
}

.mlb-account-link__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 8px;
	background: rgba(79, 127, 116, 0.12);
	color: #4F7F74;
	flex-shrink: 0;
}

.mlb-account-link__text {
	flex: 1;
	min-width: 0;
}

.mlb-account-link__label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
}

.mlb-account-link__desc {
	display: block;
	font-size: 14px;
	color: #888;
	line-height: 1.3;
	margin-top: 2px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.mlb-account-link__arrow {
	font-size: 20px;
	color: #ccc;
	flex-shrink: 0;
	line-height: 1;
}

/* Next payment card */
.mlb-next-payment {
	align-items: stretch;
	text-align: left;
	gap: 16px;
}

.mlb-next-payment__qr {
	text-align: center;
}

.mlb-next-payment__qr img {
	border-radius: 8px;
}

.mlb-next-payment__table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.mlb-next-payment__table td {
	padding: 6px 0;
	vertical-align: top;
}

.mlb-next-payment__table td:first-child {
	color: #888;
	width: 45%;
	white-space: nowrap;
}

.mlb-next-payment__table td:last-child {
	font-weight: 500;
	word-break: break-all;
}

.mlb-next-payment__tip {
	font-size: 13px;
	color: #5d4e37;
	background: #fff8e1;
	border-left: 3px solid #f9a825;
	padding: 10px 14px;
	border-radius: 8px;
	line-height: 1.5;
}

.mlb-next-payment__tip a {
	color: #5d4e37;
	font-weight: 600;
	text-decoration: underline;
}

/* Payment history table */
.mlb-account-table-wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

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

.mlb-account-table th {
	text-align: left;
	font-weight: 600;
	color: #888;
	padding: 8px 10px;
	border-bottom: 2px solid #eee;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	white-space: nowrap;
}

.mlb-account-table td {
	padding: 10px 10px;
	border-bottom: 1px solid #f0f0f0;
	vertical-align: middle;
}

.mlb-account-vs {
	font-family: 'SF Mono', 'Fira Code', monospace;
	font-size: 14px;
	color: #888;
}

/* Invoice download link */
.mlb-account-invoice-link {
	font-size: 14px;
	font-weight: 600;
	color: #4F7F74;
	text-decoration: none;
	white-space: nowrap;
}
.mlb-account-invoice-link:hover {
	text-decoration: underline;
}

/* Order status badges */
.mlb-account-order-status {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 10px;
	font-size: 11px;
	font-weight: 600;
	white-space: nowrap;
}

.mlb-account-order-status--paid {
	background: #e8f0ee;
	color: #4F7F74;
}

.mlb-account-order-status--pending {
	background: #fff8e1;
	color: #8d6e00;
}

.mlb-account-order-status--failed,
.mlb-account-order-status--cancelled {
	background: #fef2f2;
	color: #dc2626;
}

.mlb-account-order-status--refunded {
	background: #f0f4ff;
	color: #3b82f6;
}

/* Back link */
.mlb-account-back {
	margin-bottom: 20px;
}

.mlb-account-back a {
	font-size: 14px;
	color: #4F7F74;
	text-decoration: none;
	font-weight: 500;
}

.mlb-account-back a:hover {
	text-decoration: underline;
}

/* Notification card override - full width rows */
.mlb-account-card:has(.mlb-notif-row) {
	align-items: stretch;
	text-align: left;
}

/* Notification rows */
.mlb-notif-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 0;
	width: 100%;
}

.mlb-notif-row + .mlb-notif-row {
	border-top: 1px solid #eee;
}

.mlb-notif-text {
	flex: 1;
}

.mlb-notif-label {
	font-size: 14px;
	font-weight: 600;
	color: #1a1a1a;
}

.mlb-notif-desc {
	font-size: 14px;
	color: #888;
	margin-top: 2px;
}

.mlb-notif-always {
	font-size: 14px;
	color: #4F7F74;
	font-weight: 600;
}

/* Toggle switch */
.mlb-switch {
	position: relative;
	display: inline-block;
	width: 44px;
	height: 24px;
}

.mlb-switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

.mlb-switch-slider {
	position: absolute;
	cursor: pointer;
	top: 0; left: 0; right: 0; bottom: 0;
	background: #ddd;
	border-radius: 24px;
	transition: background 0.3s;
}

.mlb-switch-slider::before {
	content: "";
	position: absolute;
	height: 18px;
	width: 18px;
	left: 3px;
	bottom: 3px;
	background: #fff;
	border-radius: 50%;
	transition: transform 0.3s;
}

.mlb-switch input:checked + .mlb-switch-slider {
	background: #4F7F74;
}

.mlb-switch input:checked + .mlb-switch-slider::before {
	transform: translateX(20px);
}

/* Notification status */
.mlb-notif-status {
	margin-top: 12px;
	padding: 8px 14px;
	border-radius: 8px;
	font-size: 13px;
	text-align: center;
}

.mlb-notif-status--success {
	background: #e8f0ee;
	color: #4F7F74;
}

.mlb-notif-status--error {
	background: #fef2f2;
	color: #dc2626;
}

/* Billing form */
.mlb-billing-form .mlb-field {
	margin-bottom: 14px;
}

.mlb-billing-form .mlb-field label {
	display: block;
	margin-bottom: 4px;
	font-weight: 600;
	font-size: 13px;
	color: #555;
}

.mlb-billing-form .mlb-row2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.mlb-billing-form .mlb-input {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ddd;
	border-radius: 8px;
	font-size: 15px;
	transition: border-color 0.2s, box-shadow 0.2s;
	box-sizing: border-box;
	font-family: inherit;
	background: #fff;
}

.mlb-billing-form .mlb-input:focus {
	border-color: #4F7F74;
	outline: none;
	box-shadow: 0 0 0 3px rgba(79, 127, 116, 0.12);
}

.mlb-billing-form .mlb-btn {
	width: 100%;
	padding: 14px 24px;
	background: #4F7F74;
	color: #fff;
	border: 1px solid #4F7F74;
	border-radius: 6px;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.2s, transform 0.1s;
	font-family: inherit;
}

.mlb-billing-form .mlb-btn:hover {
	background: #f7f7f8;
	color: #4F7F74;
	transform: translateY(-1px);
}

.mlb-billing-form .mlb-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none;
}

.mlb-billing-form .mlb-error {
	margin-bottom: 12px;
	padding: 10px 14px;
	background: #fef2f2;
	color: #dc2626;
	border-radius: 8px;
	font-size: 14px;
	text-align: center;
}

.mlb-billing-success {
	margin-bottom: 12px;
	padding: 10px 14px;
	background: #e8f0ee;
	color: #4F7F74;
	border-radius: 8px;
	font-size: 14px;
	text-align: center;
}

/* Cancel modal */
.mlb-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.6);
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
}

.mlb-modal-content {
	background: #fff;
	border-radius: 16px;
	padding: 36px 32px 28px;
	max-width: 380px;
	width: 90%;
	text-align: center;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.mlb-modal-icon {
	margin-bottom: 16px;
}

.mlb-modal-title {
	font-size: 17px;
	font-weight: 700;
	color: #1a1a1a;
	margin: 0 0 8px;
}

.mlb-modal-desc {
	font-size: 14px;
	color: #666;
	line-height: 1.5;
	margin: 0 0 24px;
}

.mlb-modal-actions {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.mlb-modal-btn {
	width: 100%;
	padding: 12px 20px;
	border: none;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s, transform 0.1s;
	font-family: inherit;
}

.mlb-modal-btn:active {
	transform: translateY(0);
}

.mlb-modal-btn--danger {
	background: #dc2626;
	color: #fff;
}

.mlb-modal-btn--danger:hover {
	background: #b91c1c;
}

.mlb-modal-btn--danger:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.mlb-modal-btn--primary {
	background: #4F7F74;
	color: #fff;
}

.mlb-modal-btn--primary:hover {
	background: #3D6359;
}

.mlb-modal-btn--secondary {
	background: #f3f4f6;
	color: #555;
}

.mlb-modal-btn--secondary:hover {
	background: #e5e7eb;
}

/* Responsive */
@media (max-width: 540px) {
	.mlb-account {
		max-width: 100%;
	}

	.mlb-account-services {
		grid-template-columns: 1fr;
	}

	.mlb-account-table {
		font-size: 14px;
	}

	.mlb-account-table th,
	.mlb-account-table td {
		padding: 8px 6px;
	}

	.mlb-modal-content {
		padding: 28px 24px 20px;
	}
}

/* Delete account section */
.mlb-account-section--danger {
	margin-top: 40px;
	border-top: 1px solid #f0f0f0;
	padding-top: 20px;
}

.mlb-account-danger-text {
	font-size: 14px !important;
	color: #888;
	margin: 0 0 4px;
	line-height: 1.5;
}

.mlb-account-btn--danger {
	background: #f3f4f6;
	color: #6b7280;
	border: 1px solid #d1d5db;
	font-weight: 600;
}

.mlb-account-btn--danger:hover {
	background: #fef2f2;
	color: #dc2626;
	border-color: #dc2626;
}

.mlb-modal-confirm-wrap {
	margin: 16px 0 4px;
	font-size: 13px;
	color: #555;
}

.mlb-modal-confirm-wrap label {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
}

.mlb-modal-confirm-wrap input[type="checkbox"] {
	width: 16px;
	height: 16px;
	accent-color: #dc2626;
}
