html, body, button, input, select, textarea {
  font-family: 'Noto Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
  font-size: 12px;
}
.mtn-kb-open .mtn-modal-dialog,
.mtn-kb-open .mtn-form-scroll,
.mtn-kb-open .mtn-main-content {
  padding-bottom: calc(var(--kb, 0px) + env(safe-area-inset-bottom));
  /* Đảm bảo modal có thể scroll để input không bị che khuất */
  max-height: calc(100vh - var(--kb, 0px));
}
.mtn-modal-dialog { 
    max-height: 100dvh; 
    overflow-y: auto !important; 
    -webkit-overflow-scrolling: touch;
    /* Cải thiện scroll behavior trên mobile */
    scroll-behavior: smooth;
    overscroll-behavior: contain;
}


body { min-height: 100dvh; }

/* Shared Container */
.mtn-container { padding:10px; max-width: 420px; margin: 0 auto; min-height: 100dvh; display:flex; flex-direction:column; }
/* Prevent content being covered by fixed header */
.mtn-container { padding-top:105px; }

/* Navigation actions */
.mtn-actions.mtn-actions-start {
	justify-content: flex-start;
	margin: 0 0 8px;
}

/* Icon alignment */
.mtn-icon-vertical-middle {
	vertical-align: middle;
}

.mtn-icon-vertical-middle.mtn-icon-right-margin {
	margin-right: 4px;
}

.mtn-icon-vertical-middle.mtn-icon-left-margin {
	margin-left: 8px;
}

/* Button variants */
.mtn-button.mtn-button-purple {
	background: #8b5cf6;
}

.mtn-button.mtn-button-blue {
	background: #2563eb;
}

.mtn-button.mtn-button-green {
	background: #10b981;
}

.mtn-button.mtn-button-orange {
	background: #f59e0b;
}

.mtn-button.mtn-button-blue {
	background: #2563eb;
}

/* Shared Field */
.mtn-field { margin-bottom:14px; }
.mtn-field label { display:block; margin-bottom:6px; font-weight:600; }
.mtn-field input, .mtn-field textarea { width:100%; border:1px solid #e5e7eb; border-radius:8px; padding:8px 10px; font-size:12px; }
.mtn-field select { width:100%; border:1px solid #e5e7eb; border-radius:8px; padding:8px 34px 8px 10px; font-size:12px; background:#fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'><path d='M6 9l6 6 6-6'/></svg>") no-repeat right 10px center/16px; appearance:none; -webkit-appearance:none; -moz-appearance:none; }
.mtn-field select:focus { outline: none; border-color:#2563eb; box-shadow:0 0 0 3px rgba(37,99,235,.15); }

/* Field Help Text */
.mtn-field-help {
	display: block;
	margin-top: 4px;
	font-size: 11px;
	color: #6b7280;
	font-style: italic;
}

/* Album Preview */
.mtn-album-preview {
	margin-top: 10px;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
	gap: 8px;
}

.mtn-album-slider { position: relative; margin-bottom: 12px; }
.mtn-album-viewport { overflow: hidden; border-radius: 10px; border:1px solid #e5e7eb; position:relative; }
.mtn-album-count { position:absolute; bottom:8px; left:50%; transform:translateX(-50%); background:rgba(0,0,0,.55); color:#fff; font-size:12px; padding:3px 8px; border-radius:12px; line-height:1; pointer-events:none; }
.mtn-product-thumb-wrap { position: relative; }
.mtn-thumb-count { position:absolute; top:8px; right:8px; background:rgba(0,0,0,.6); color:#fff; font-size:11px; line-height:1; padding:2px 6px; border-radius:10px; min-width:18px; text-align:center; z-index:3; border:1px solid rgba(255,255,255,.6); }
.mtn-album-track { display: flex; transition: transform .3s ease; width: 100%; }
.mtn-album-slide { min-width: 100%; }
.mtn-album-slide img { width: 100%; height: auto; display:block; }
.mtn-album-nav { position:absolute; top:50%; transform:translateY(-50%); background:rgba(0,0,0,.45); color:#fff; border:none; width:28px; height:28px; border-radius:50%; display:flex; align-items:center; justify-content:center; cursor:pointer; z-index:2; box-shadow:0 1px 3px rgba(0,0,0,.25); pointer-events:auto; }
.mtn-album-prev { left:8px; }
.mtn-album-next { right:8px; }
.mtn-album-dots { display:flex; gap:6px; justify-content:center; margin-top:6px; }
.mtn-album-dot { width:8px; height:8px; border-radius:50%; background:#cbd5e1; border:none; cursor:pointer; display:inline-block; padding:0; line-height:0; min-width:0; min-height:0; box-sizing:content-box; -webkit-appearance:none; appearance:none; }
.mtn-album-dot.active { background:#2563eb; }

.mtn-album-item {
	position: relative;
	border-radius: 8px;
	overflow: hidden;
	aspect-ratio: 1;
	border: 2px solid #e5e7eb;
	transition: all 0.2s ease;
}

.mtn-album-item:hover {
	border-color: #2563eb;
	transform: scale(1.05);
}

.mtn-album-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mtn-album-item-remove {
	position: absolute;
	top: 4px;
	right: 4px;
	width: 20px;
	height: 20px;
	background: rgba(239, 68, 68, 0.9);
	color: white;
	border: none;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-size: 12px;
	transition: all 0.2s ease;
}

.mtn-album-item-remove:hover {
	background: rgba(239, 68, 68, 1);
	transform: scale(1.1);
}

.mtn-album-item-remove .material-symbols-outlined {
	font-size: 14px;
}

/* Choices.js width fix inside field */
.mtn-field .choices { width:100%; }

/* Address Selector (shared) - Unified for all modals */
.mtn-address-selector { 
    margin-top: 6px; 
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mtn-address-row { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 8px; 
    margin-bottom: 8px;
    align-items: start;
}

.mtn-address-row:last-child { 
    margin-bottom: 0; 
}

/* Address textarea should span full width and have fixed height */
#mtn-order-address,
#mtn-customer-address,
textarea.mtn-address-input {
    grid-column: 1 / -1; /* Full width spanning all columns */
    margin-top: 4px;
    min-height: 72px !important; /* 3 rows * 24px line-height */
    height: 72px !important; /* Fixed height to prevent autosize issues */
    resize: vertical; /* Allow manual resize */
    overflow-y: auto; /* Allow scrolling if content exceeds height */
}

.mtn-address-select, 
.mtn-address-input { 
    width: 100%; 
    padding: 8px 10px; 
    border: 1px solid #e5e7eb; 
    border-radius: 6px; 
    font-size: 13px; 
    background: #fff; 
    color: #374151;
    box-sizing: border-box;
}

.mtn-address-select:disabled { 
    background: #f9fafb; 
    color: #9ca3af; 
    cursor: not-allowed; 
}

.mtn-address-select:focus, 
.mtn-address-input:focus { 
    outline: none; 
    border-color: #2563eb; 
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); 
}

.mtn-address-select option { 
    padding: 8px; 
}

/* Choices.js compact styles inside address selector */
.mtn-address-selector .choices { 
    margin-bottom: 0; 
    width: 100%; 
    position: relative; 
}

.mtn-address-selector .choices__inner { 
    min-height: 30px; 
    padding: 4px 8px; 
    border: 1px solid #e5e7eb; 
    border-radius: 8px; 
    background: #fff; 
    font-size: 12px; 
    line-height: 1.3; 
    box-shadow: none; 
}

.mtn-address-selector .choices__placeholder { 
    color: #94a3b8; 
    opacity: 1; 
    font-style: italic; 
}

.mtn-address-selector .choices[data-type*='select-one']::after { 
    border: none; 
    content: ''; 
    width: 0; 
    height: 0; 
    border-left: 5px solid transparent; 
    border-right: 5px solid transparent; 
    border-top: 6px solid #9aa5b1; 
    right: 10px; 
    top: 50%; 
    transform: translateY(-50%); 
}

.mtn-address-selector .choices.is-open .choices__inner { 
    border-color: #cbd5e1; 
    box-shadow: 0 4px 14px rgba(2,6,23,.06); 
}

.mtn-address-selector .choices__list--dropdown { 
    border-radius: 10px; 
    margin-top: 6px; 
    overflow: hidden; 
    position: absolute; 
    left: 0; 
    right: 0; 
    top: calc(100% + 6px) !important; 
    bottom: auto !important; 
    z-index: 10000; 
}

.mtn-address-selector .choices__list--dropdown .choices__item { 
    padding: 6px 8px; 
    font-size: 12px; 
    line-height: 1.3; 
}

.mtn-address-selector .choices__list--dropdown .choices__item--selectable.is-highlighted { 
    background: #f6f7f9; 
    color: #0f172a; 
}

.mtn-address-selector .choices__list--dropdown .choices__list { 
    max-height: 220px; 
    overflow: auto; 
}

.mtn-address-row { 
    overflow: visible; 
}

.mtn-address-selector .choices.is-open.is-flipped .choices__list--dropdown { 
    top: calc(100% + 6px) !important; 
    bottom: auto !important; 
}

/* Mobile responsive for address selector */
@media (max-width: 768px) {
    .mtn-address-selector .choices__inner { 
        min-height: 28px; 
        padding: 4px 7px; 
        font-size: 12px; 
    }
    
    .mtn-address-selector .choices__list--dropdown .choices__item { 
        padding: 5px 7px; 
        font-size: 11px; 
    }
    
    .mtn-address-row {
        gap: 6px;
    }
    
    .mtn-address-select,
    .mtn-address-input {
        padding: 6px 8px;
        font-size: 12px;
    }
    
    #mtn-order-address,
    #mtn-customer-address,
    textarea.mtn-address-input {
        font-size: 12px;
        padding: 8px;
        min-height: 60px !important; /* Smaller on mobile but still usable */
        height: 60px !important;
    }
}

/* Shared Button */
.mtn-button {
	display: flex;
    align-items: center;
    gap: 5px;
    background: #2563eb;
    color: #fff;
    border: 0;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    text-decoration: none;
    width: 100%;
    justify-content: center;
}
.mtn-button.mtn-secondary { background:#e5e7eb; color:#111827; }
.mtn-button.mtn-secondary:hover { background:#d1d5db; }
.mtn-button.mtn-success { background:#10b981; color:white; }
.mtn-button.mtn-success:hover { background:#059669; }
.mtn-button.mtn-button-small { padding: 3px 10px; font-size:10px; border-radius:7px }
.mtn-actions { display:flex ;gap:5px}
.mtn-actions-menu { 
	display: flex; 
	gap: 5px; 
	align-items: center;
	overflow-x: auto;
	overflow-y: hidden;
	scrollbar-width: thin;
	scrollbar-color: #d1d5db transparent;
	padding: 5px 0;
	/* Hide scrollbar for webkit browsers */
	scrollbar-width: none; /* Firefox */
	-ms-overflow-style: none; /* IE and Edge */
}

.mtn-actions-menu::-webkit-scrollbar {
	display: none; /* Chrome, Safari, Opera */
}

/* Ensure buttons don't shrink */
.mtn-actions-menu .mtn-button {
	flex-shrink: 0;
	white-space: nowrap;
}

/* Mobile-optimized scrolling */
.mtn-actions-menu {
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch; /* iOS smooth scrolling */
	position: relative;
}



.mtn-actions-menu:hover:after {
	opacity: 1;
}

/* Mobile-optimized button styling */
.mtn-actions-menu .mtn-button {
	scroll-snap-align: start; /* Snap scrolling for better mobile experience */
	font-size: 12px; /* Smaller font for mobile */
	padding: 10px 10px; /* Compact padding for mobile */
	min-width: auto; /* Allow buttons to be more compact */
}

/* Fixed width for menu links */
.mtn-actions-menu > a {
	width: 85px;
	flex-shrink: 0; /* Prevent shrinking */
	position: relative; /* For arrow positioning */
}

/* Left fade indicator for hidden content */
.mtn-actions-menu:before {
	content: '';
    position: fixed;
    left: 8px;
    top: 11px;
    width: 40px;
    height: 40px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.9), transparent);
    pointer-events: none;
    opacity: 0;
    z-index: 1000;
    transition: opacity 0.3s ease;
}

/* Right fade indicator for hidden content */
/* Visual feedback for scrollable content */
.mtn-actions-menu:after {
	content: '';
    position: fixed;
    right: 8px;
    top: 11px;
    width: 40px;
    height: 40px;
    background: linear-gradient(to left, rgba(255, 255, 255, 0.9), transparent);
    pointer-events: none;
    opacity: 0;
    z-index: 1000;
    transition: opacity 0.3s ease;
}

/* Show left fade when scrolling right (content hidden on left) */
.mtn-actions-menu.show-left-fade:before {
	opacity: 1;
}

/* Show right fade when scrolling left (content hidden on right) */
.mtn-actions-menu.show-right-fade:after {
	opacity: 1;
}

/* Left arrow button for scrolling left */
.mtn-actions-menu .mtn-scroll-left {
	position: fixed;
    left: 8px;
    top: 11px;
    width: 20px;
    height: 40px;
    background: 0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0;
    z-index: 1001;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mtn-actions-menu .mtn-scroll-left:hover {
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.12);
}

.mtn-actions-menu .mtn-scroll-left:before {
	content: '‹';
    font-size: 32px;
    font-weight: 300;
    color: #646464
}

/* Right arrow button for scrolling right */
.mtn-actions-menu .mtn-scroll-right {
	position: fixed;
    right: 8px;
    top: 11px;
    width: 20px;
    height: 40px;
    background: 0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0;
    z-index: 1001;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mtn-actions-menu .mtn-scroll-right:before {
	content: '›';
    font-size: 32px;
    font-weight: 300;
    color: #646464;
}

/* Show arrows when fade indicators are visible */
.mtn-actions-menu.show-left-fade .mtn-scroll-left {
	opacity: 1;
}

.mtn-actions-menu.show-right-fade .mtn-scroll-right {
	opacity: 1;
}


/* Smaller icons for top action buttons */
.mtn-actions .material-symbols-outlined {
  font-size: 16px;
  line-height: 1;
}

/* Fixed header for top action bar */
.mtn-actions.mtn-actions-start {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	flex-direction: column;
	background: #fff;
	padding: 8px 10px;
	border-bottom: 1px solid #e5e7eb;
	z-index: 40;
}

/* Make the main site header sticky */
.site-header {
	position: sticky;
	top: 0;
	background: #fff;
	z-index: 40;
}

/* Offset for WordPress admin bar */
body.admin-bar .site-header { top: 32px; }
body.admin-bar .mtn-actions.mtn-actions-start { top: 32px; }
@media (max-width: 782px) {
	body.admin-bar .site-header { top: 46px; }
	body.admin-bar .mtn-actions.mtn-actions-start { top: 46px; }
}

/* Floating Add Button (shared) */
.mtn-fab-add { position: fixed; right: 16px; bottom: 40px; width: 48px; height: 48px; border-radius: 50%; background:#2563eb; color:#fff; border:0; box-shadow:0 6px 16px rgba(0,0,0,.2); display:flex; align-items:center; justify-content:center; z-index: 30; }
.mtn-fab-add:hover { filter: brightness(0.95); }
.mtn-fab-add .material-symbols-outlined { color:#fff; font-size:22px; line-height:1; }

/* Shared Modal (bottom-sheet mobile) */
.mtn-modal { position:fixed; inset:0; display:none; z-index:999999; }

/* Modal danh mục cần có z-index cao hơn để hiển thị trên modal sửa sản phẩm */
#mtn-category-modal { z-index:9999999; }
.mtn-modal[aria-hidden="false"] { display:block !important; }
.mtn-modal { overscroll-behavior: contain; }
.mtn-modal-backdrop { position:absolute; inset:0; background:rgba(0,0,0,.45); cursor:pointer; }

/* Modal backdrop danh mục cần có z-index cao hơn */
#mtn-category-modal .mtn-modal-backdrop { z-index:9999998; }
.mtn-modal-dialog { position:absolute; left:0; right:0; bottom:0; width:auto; max-width:none; margin:0; background:#fff; border-radius:12px 12px 0 0; padding:12px 16px; box-shadow:0 -6px 20px rgba(0,0,0,.2); z-index:1000000; touch-action: pan-y; }

/* Modal dialog danh mục cần có z-index cao hơn */
#mtn-category-modal .mtn-modal-dialog { z-index:10000000; }
.mtn-modal-dialog { 
    max-height:calc(100dvh - 24px); 
    overflow-y: auto !important; 
    -webkit-overflow-scrolling: touch;
    padding-bottom: max(16px, env(safe-area-inset-bottom)); 
}

/* Print Labels Modal Styles */
.mtn-modal-small .mtn-modal-dialog {
	max-width: 500px;
	width: 90%;
}

.mtn-info-box {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 15px;
	margin-top: 10px;
}

.mtn-info-box h4 {
	margin: 0 0 10px 0;
	color: #1e293b;
	font-size: 14px;
	font-weight: 600;
}

.mtn-info-box ul {
	margin: 0;
	padding-left: 20px;
	color: #475569;
	font-size: 13px;
	line-height: 1.5;
}

.mtn-info-box li {
	margin: 5px 0;
}

/* Preview Styles */
.mtn-preview-container {
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 15px;
	background: #f8fafc;
}

.mtn-preview-info {
	display: flex;
	justify-content: space-between;
	margin-bottom: 10px;
	font-size: 12px;
	color: #64748b;
	font-weight: 500;
}

.mtn-preview-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 4px;
	max-width: 200px;
	margin: 0 auto;
}

.mtn-preview-label {
	width: 35px;
	height: 22px;
	background: #fff;
	border: 1px solid #cbd5e1;
	border-radius: 2px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 8px;
	color: #64748b;
	position: relative;
}

.mtn-preview-label::before {
	content: '';
	position: absolute;
	left: 2px;
	top: 50%;
	transform: translateY(-50%);
	width: 8px;
	height: 8px;
	background: #e2e8f0;
	border-radius: 1px;
}

.mtn-preview-label::after {
	content: 'Tem';
	position: absolute;
	right: 2px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 6px;
	color: #94a3b8;
}

.mtn-preview-page {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 4px;
	margin-bottom: 8px;
}

.mtn-preview-separator {
	text-align: center;
	color: #94a3b8;
	font-size: 10px;
	margin: 4px 0;
	font-style: italic;
}
.mtn-modal-dialog h3 { margin-top:0; margin-bottom:10px; font-size:16px; }

/* Product content padding for capture */
#mtn-product-content {
	margin-bottom: 10px;
}

/* Capture & Copy button styling */
#mtn-capture-copy-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #2563eb;
	color: #fff;
	border: none;
	padding: 8px 16px;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
}

#mtn-capture-copy-btn:hover {
	background: #1d4ed8;
	transform: translateY(-1px);
}

#mtn-capture-copy-btn:active {
	transform: translateY(0);
}

#mtn-capture-copy-btn .material-symbols-outlined {
	font-size: 18px;
}

#mtn-capture-copy-btn.is-capturing {
	opacity: 0.7;
	cursor: not-allowed;
}

#mtn-capture-copy-btn.is-capturing .material-symbols-outlined {
	animation: mtnSpin 1s linear infinite;
}

/* Modal Footer - Fixed Bottom */
.mtn-modal-dialog .mtn-actions {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background: #fff;
	padding: 10px;
	border-top: 1px solid #e1e1e1;
	z-index: 1000001;
}

/* Modal footer danh mục cần có z-index cao hơn */
#mtn-category-modal .mtn-modal-dialog .mtn-actions {
	z-index: 10000001;
}

/* Category search styling */
.mtn-category-search-wrapper {
	margin-bottom: 8px;
}

.mtn-category-search-input {
	width: 100%;
	padding: 8px 12px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	font-size: 14px;
	background: #fff;
}

.mtn-category-search-input:focus {
	outline: none;
	border-color: #3b82f6;
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.mtn-category-search-input::placeholder {
	color: #9ca3af;
}

/* Selected categories display */
.mtn-selected-categories {
	margin-top: 8px;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.mtn-category-tag {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px 8px;
	background: #e0e7ff;
	color: #3730a3;
	border-radius: 16px;
	font-size: 12px;
	font-weight: 500;
}

.mtn-remove-category {
	background: none;
	border: none;
	color: #6366f1;
	cursor: pointer;
	font-size: 14px;
	font-weight: bold;
	padding: 0;
	width: 16px;
	height: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
}

.mtn-remove-category:hover {
	background: #c7d2fe;
	color: #4338ca;
}

/* Small category tags for product list */
.mtn-category-tag-small {
	display: inline-block;
	padding: 2px 6px;
	background: #e0e7ff;
	color: #3730a3;
	border-radius: 12px;
	font-size: 10px;
	font-weight: 500;
	margin-right: 4px;
	margin-bottom: 2px;
}

/* Product categories container */
.mtn-product-categories {
	margin-top: 6px;
}

/* Success message styling */
.mtn-message.mtn-success {
	background: #d1fae5;
	color: #065f46;
	border: 1px solid #10b981;
	border-radius: 6px;
	padding: 12px 16px;
	margin: 12px 0;
	font-weight: 500;
	display: flex;
	align-items: center;
	gap: 8px;
}

.mtn-message.mtn-success::before {
	content: "✓";
	font-weight: bold;
	font-size: 16px;
}

/* Message animations */
.mtn-message {
	animation: mtnMessageSlideIn 0.3s ease-out;
}

@keyframes mtnMessageSlideIn {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Toast notification styling */
.mtn-toast-success {
	position: fixed;
	top: 20px;
	right: 20px;
	background: #10b981;
	color: white;
	padding: 16px 20px;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	z-index: 9999999;
	display: flex;
	align-items: center;
	gap: 12px;
	transform: translateX(400px);
	transition: transform 0.3s ease;
	font-weight: 500;
	min-width: 300px;
}

.mtn-toast-success.mtn-toast-show {
	transform: translateX(0);
}

.mtn-toast-icon {
	font-size: 20px;
	font-weight: bold;
}

.mtn-toast-message {
	font-size: 14px;
}

/* CSS classes để thay thế CSS inline */
.mtn-button-purple {
	background: #8b5cf6 !important;
}

.mtn-icon-vertical-middle {
	vertical-align: middle;
}

.mtn-icon-right-margin {
	margin-right: 4px;
}

.mtn-required-field {
	color: #e74c3c;
}

.mtn-margin-left-8 {
	margin-left: 8px;
}

.mtn-margin-top-6 {
	margin-top: 6px;
}

.mtn-width-100 {
	width: 100%;
}

.mtn-cursor-pointer {
	cursor: pointer;
}

.mtn-justify-content-space-between {
	justify-content: space-between;
}

.mtn-align-items-center {
	align-items: center;
}

.mtn-margin-top-6 {
	margin-top: 6px;
}

.mtn-margin-0 {
	margin: 0;
}

.mtn-background-gray {
	background: #6b7280;
}
/* Toast notification (fallback) */
.mtn-toast {
	position: fixed;
	top: 20px;
	right: 20px;
	background: rgba(17,24,39,.95);
	color: #fff;
	padding: 10px 14px;
	border-radius: 8px;
	box-shadow: 0 8px 20px rgba(0,0,0,.2);
	z-index: 99999999;
	pointer-events: auto;
	opacity: 0;
	transform: translateY(-6px);
	transition: opacity .2s ease, transform .2s ease;
	font-size: 14px;
	font-weight: 500;
	min-width: 200px;
	text-align: center;
	cursor: pointer;
	user-select: none;
	max-width: calc(100vw - 40px);
	word-wrap: break-word;
}
.mtn-toast.show { opacity: 1; transform: translateY(0); }
.mtn-toast.hide { opacity: 0; }

.mtn-toast:hover {
	background: rgba(17,24,39,1);
	transform: translateY(-2px);
	box-shadow: 0 12px 24px rgba(0,0,0,.3);
}
.mtn-icon-btn { border:0; background:transparent; padding:4px; border-radius:6px; cursor:pointer; color:#374151; }
.mtn-icon-btn { min-width:36px; display:flex; align-items:center; justify-content:center; }
.mtn-icon-btn:hover { background:#f3f4f6; }
.mtn-icon-btn .material-symbols-outlined { font-size:18px; line-height:1; vertical-align:middle; }
/* Ensure modal content doesn't overlap with fixed footer */
.mtn-modal-dialog form, .mtn-modal-dialog .mtn-main-content {
	padding-bottom:65px;
}
/* Unified Refresh button style for both tabs */
.mtn-refresh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #93c5fd; /* blue-300 */
    background: #eff6ff; /* blue-50 */
    color: #2563eb; /* blue-600 */
    cursor: pointer;
    transition: all .18s ease;
}
.mtn-refresh-btn .material-symbols-outlined { font-size: 18px; color:#2563eb; }
.mtn-refresh-btn .mtn-refresh-text { font-weight:600; font-size: 12px; }
.mtn-refresh-btn:hover { background:#dbeafe; border-color:#60a5fa; }
.mtn-refresh-btn:active { transform: translateY(1px); }
.mtn-refresh-btn:focus { outline: none; box-shadow: 0 0 0 3px rgba(37,99,235,.15); }
.mtn-refresh-btn.is-loading { opacity:.85; cursor: progress; }
.mtn-refresh-btn.is-loading .material-symbols-outlined { animation: mtnSpin 1s linear infinite; }

/* Modal show animations (applies to all modals) */
@keyframes mtnModalBackdropIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes mtnModalSlideUp { from { transform: translateY(16px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.mtn-modal[aria-hidden="false"] .mtn-modal-backdrop {
	animation: mtnModalBackdropIn .2s ease;
}
.mtn-modal[aria-hidden="false"] .mtn-modal-dialog {
	animation: mtnModalSlideUp .25s ease-out;
}

@media (prefers-reduced-motion: reduce) {
	.mtn-modal[aria-hidden="false"] .mtn-modal-backdrop,
	.mtn-modal[aria-hidden="false"] .mtn-modal-dialog { animation: none; }
}

/* Lock background when any modal open */
.mtn-modal-open,
.mtn-modal-open body {
    overflow: hidden !important;
}

/* Ensure modal dialog can scroll */
.mtn-modal-dialog {
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
}

/* Special scroll handling for order modal */
#mtn-order-modal .mtn-modal-dialog {
    overflow-y: auto !important;
    max-height: 90vh;
    -webkit-overflow-scrolling: touch;
}

#mtn-order-modal .mtn-modal-dialog form {
    overflow-y: visible;
}

/* Ensure all modals can scroll */
.mtn-modal[aria-hidden="false"] .mtn-modal-dialog {
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
}

/* Force scroll on modal content */
.mtn-modal-dialog form,
.mtn-modal-dialog .mtn-main-content {
    overflow-y: visible !important;
}

/* Mobile-specific scroll fixes */
@media (max-width: 768px) {
    .mtn-modal-dialog {
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        max-height: 85vh;
    }
    
    #mtn-order-modal .mtn-modal-dialog {
        max-height: 80vh;
    }
}

/* Shared Pagination */
.mtn-pagination { 
	display: flex; 
	justify-content: center; 
	align-items: center; 
	gap: 6px; 
	flex-wrap: wrap; 
	list-style: none;
	padding: 10px 0;
}
.mtn-journey-content {
	display: grid;
	grid-template-columns: 1fr 2fr;
	gap: 24px;
	margin-bottom: 20px;
}

/* Responsive for journey modal */
@media (max-width: 768px) {
	.mtn-journey-content {
		grid-template-columns: 1fr;
		gap: 16px;
	}
	
	.mtn-timeline {
		padding: 16px 0;
	}
	
	.mtn-timeline::before {
		left: 18px;
		width: 2px;
	}
	
	.mtn-timeline-item {
		padding-left: 48px;
		margin-bottom: 20px;
	}
	
	.mtn-timeline-icon {
		left: 6px;
		width: 28px;
		height: 28px;
		border: 2px solid #fff;
	}
	
	.mtn-timeline-icon .material-symbols-outlined {
		font-size: 14px;
	}
	
	.mtn-timeline-content {
		padding: 16px;
		border-radius: 10px;
	}
	
	.mtn-timeline-title {
		font-size: 13px;
	}
	
	.mtn-timeline-time {
		font-size: 10px;
		min-width: 80px;
		padding: 3px 6px;
	}
	
	.mtn-timeline-description {
		font-size: 12px;
	}
	
	.mtn-timeline-user {
		font-size: 10px;
		padding: 3px 6px;
	}
}

.mtn-journey-summary {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 16px;
}

.mtn-journey-order-info h4 {
	margin: 0 0 12px 0;
	color: #1e293b;
	font-weight: 600;
}

.mtn-journey-order-details {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	font-size: 13px;
}

.mtn-journey-order-details p {
	margin: 0;
	color: #475569;
}

.mtn-journey-order-details strong {
	color: #1e293b;
}

.mtn-journey-timeline h4 {
	margin: 0 0 16px 0;
	color: #1e293b;
	font-weight: 600;
}

.mtn-journey-timeline-content {
	position: relative;
}

.mtn-timeline-loading {
	text-align: center;
	padding: 20px;
	color: #6b7280;
	font-style: italic;
}

/* Timeline styles - Improved Design */
.mtn-timeline {
	position: relative;
	padding: 24px 0;
}

.mtn-timeline::before {
	content: '';
	position: absolute;
	left: 24px;
	top: 0;
	bottom: 0;
	width: 3px;
	background: linear-gradient(to bottom, #3b82f6, #8b5cf6, #f59e0b, #10b981);
	border-radius: 2px;
}

.mtn-timeline-item {
	position: relative;
	margin-bottom: 28px;
	padding-left: 60px;
}

.mtn-timeline-item:last-child {
	margin-bottom: 0;
}

.mtn-timeline-icon {
	position: absolute;
	left: 8px;
	top: 8px;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: 3px solid #fff;
	box-shadow: 0 0 0 2px #e5e7eb, 0 2px 8px rgba(0, 0, 0, 0.1);
	background: #6b7280;
	z-index: 2;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

.mtn-timeline-icon .material-symbols-outlined {
	color: #fff;
	font-size: 16px;
	line-height: 1;
}

.mtn-timeline-item:hover .mtn-timeline-icon {
	transform: scale(1.1);
	box-shadow: 0 0 0 3px #3b82f6, 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Timeline status colors */
.mtn-timeline-item.mtn-timeline-created .mtn-timeline-icon {
	background: #10b981;
	box-shadow: 0 0 0 2px #10b981, 0 2px 8px rgba(16, 185, 129, 0.2);
}

.mtn-timeline-item.mtn-timeline-transferred .mtn-timeline-icon {
	background: #f59e0b;
	box-shadow: 0 0 0 2px #f59e0b, 0 2px 8px rgba(245, 158, 11, 0.2);
}

.mtn-timeline-item.mtn-timeline-pending .mtn-timeline-icon {
	background: #6b7280;
	box-shadow: 0 0 0 2px #6b7280, 0 2px 8px rgba(107, 114, 128, 0.2);
}

.mtn-timeline-item.mtn-timeline-outofstock .mtn-timeline-icon {
	background: #ef4444;
	box-shadow: 0 0 0 2px #ef4444, 0 2px 8px rgba(239, 68, 68, 0.2);
}

.mtn-timeline-item.mtn-timeline-asking .mtn-timeline-icon {
	background: #8b5cf6;
	box-shadow: 0 0 0 2px #8b5cf6, 0 2px 8px rgba(139, 92, 246, 0.2);
}

.mtn-timeline-item.mtn-timeline-completed .mtn-timeline-icon {
	background: #10b981;
	box-shadow: 0 0 0 2px #10b981, 0 2px 8px rgba(16, 185, 129, 0.2);
}

.mtn-timeline-item.mtn-timeline-cancelled .mtn-timeline-icon {
	background: #6b7280;
	box-shadow: 0 0 0 2px #6b7280, 0 2px 8px rgba(107, 114, 128, 0.2);
}

.mtn-timeline-content {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 20px;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.mtn-timeline-content::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(to right, #3b82f6, #8b5cf6);
	border-radius: 12px 12px 0 0;
}

.mtn-timeline-content:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
	border-color: #cbd5e1;
}

.mtn-timeline-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 12px;
}

.mtn-timeline-title {
	font-weight: 700;
	color: #1e293b;
	margin: 0;
	font-size: 14px;
	line-height: 1.3;
}

.mtn-timeline-time {
	font-size: 11px;
	color: #64748b;
	text-align: right;
	min-width: 90px;
	font-weight: 500;
	background: #f1f5f9;
	padding: 4px 8px;
	border-radius: 6px;
	border: 1px solid #e2e8f0;
}

.mtn-timeline-description {
	font-size: 13px;
	color: #475569;
	line-height: 1.5;
	margin-bottom: 12px;
	font-weight: 400;
}

.mtn-timeline-user {
	font-size: 11px;
	color: #64748b !important;
	font-style: italic;
	font-weight: 500;
	background: #f8fafc;
	padding: 4px 8px;
	border-radius: 6px;
	border: 1px solid #e2e8f0;
	display: inline-block;
}

/* Ensure timeline user color consistency */
.mtn-timeline-item .mtn-timeline-user,
.mtn-timeline-item.completed .mtn-timeline-user,
.mtn-timeline-item.pending .mtn-timeline-user,
.mtn-timeline-item.cancelled .mtn-timeline-user {
	color: #64748b !important;
}

/* Sidebar Menu - Shared across pages */
.mtn-sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background: white;
    border: none;
    border-radius: 0;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    z-index: 10000;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    margin: 0;
    transform: none;
    will-change: left;
}

.mtn-sidebar.mtn-sidebar-open {
    left: 0;
}

.mtn-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
    background: #f8fafc;
    border-radius: 0;
}

.mtn-sidebar-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

.mtn-sidebar-close {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.mtn-sidebar-close:hover {
    background: #e5e7eb;
    color: #374151;
}

.mtn-sidebar-nav {
    padding: 16px 0;
}

.mtn-sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mtn-sidebar-item {
    margin: 0;
}

.mtn-sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.mtn-sidebar-link:hover {
    background: #f3f4f6;
    color: #1f2937;
    border-left-color: #d1d5db;
}

.mtn-sidebar-item-active .mtn-sidebar-link {
    background: #eff6ff;
    color: #1d4ed8;
    border-left-color: #3b82f6;
    font-weight: 500;
}

.mtn-sidebar-link .material-symbols-outlined {
    font-size: 20px;
    flex-shrink: 0;
}

.mtn-sidebar-link span:last-child {
    font-size: 14px;
    font-weight: 500;
}

/* Sidebar Overlay */
.mtn-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mtn-sidebar-overlay.mtn-sidebar-overlay-active {
    opacity: 1;
    visibility: visible;
}
/* Page Header */
.mtn-page-header {
    justify-content:flex-start;
    align-items: center;
    margin-top: 6px;
	display: flex;
}
/* Sidebar Toggle Button */
.mtn-sidebar-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: 0;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-right: 10px;
}

.mtn-sidebar-toggle:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
    color: #1f2937;
}

.mtn-sidebar-toggle .material-symbols-outlined {
    font-size: 20px;
}

/* Responsive Sidebar */
@media (max-width: 768px) {
    .mtn-sidebar {
        width: 280px;
        left: -280px;
    }
    
    .mtn-sidebar-header {
        padding: 16px;
    }
    
    .mtn-sidebar-header h3 {
        font-size: 16px;
    }
    
    .mtn-sidebar-nav {
        padding: 16px 0;
    }
    
    .mtn-sidebar-link {
        padding: 14px 16px;
        gap: 10px;
    }
    
    .mtn-sidebar-link .material-symbols-outlined {
        font-size: 18px;
    }
    
    .mtn-sidebar-link span:last-child {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .mtn-sidebar {
        width: 260px;
        left: -260px;
    }
    
    .mtn-sidebar-toggle {
        width: 36px;
        height: 36px;
        margin-right: 8px;
    }
    
    .mtn-sidebar-toggle .material-symbols-outlined {
        font-size: 18px;
    }
}

.mtn-timeline-loading {
	text-align: center;
	padding: 60px 20px;
	color: #64748b;
	font-style: italic;
	font-size: 14px;
	background: #f8fafc;
	border: 2px dashed #cbd5e1;
	border-radius: 12px;
	margin: 20px 0;
}

.mtn-timeline-error {
	text-align: center;
	padding: 40px 20px;
	color: #dc2626;
	font-weight: 600;
	background: #fef2f2;
	border: 1px solid #fecaca;
	border-radius: 12px;
	margin: 20px 0;
}

.mtn-timeline-empty {
	text-align: center;
	padding: 60px 20px;
	color: #64748b;
	font-style: italic;
	font-size: 14px;
	background: #f8fafc;
	border: 2px dashed #cbd5e1;
	border-radius: 12px;
	margin: 20px 0;
}

/* Timeline notes */
.mtn-timeline-notes {
	margin-top: 12px;
	padding: 12px;
	background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
	border-left: 4px solid #0ea5e9;
	border-radius: 8px;
	font-size: 12px;
	color: #0c4a6e;
	font-weight: 500;
	box-shadow: 0 1px 3px rgba(14, 165, 233, 0.1);
}

.mtn-timeline-notes strong {
	color: #0369a1;
	font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
	.mtn-journey-order-details {
		grid-template-columns: 1fr;
	}
	
}

/* Fixed footer behavior for pagination */
.mtn-pagination {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	background: #fff;
	padding: 6px 0;
	border-top: 1px solid #e5e7eb;
	z-index: 20;
}

/* Prevent content from being covered by fixed pagination */
.mtn-container {
	padding-bottom: max(56px, env(safe-area-inset-bottom));
}

.mtn-pagination ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
}

.mtn-pagination li {
	list-style: none;
	padding: 0;
	margin: 0;
}
.mtn-pagination .page-numbers li{
  border: 1px solid #d1d5db;
  border-radius: 14px;
}
.mtn-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 28px;
	height: 28px;
	padding: 0 8px;
	border-radius: 14px;
	background: #fff;
	color: #374151;
	text-decoration: none;
	font-size: 12px;
	font-weight: 500;
	transition: all 0.15s ease;
	cursor: pointer;
}

.mtn-pagination .page-numbers:hover {
	background: #f8fafc;
	border-color: #9ca3af;
	color: #111827;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	transform: translateY(-1px);
}

.mtn-pagination .page-numbers.current {
	background: #2563eb;
	border-color: #2563eb;
	color: #fff;
	cursor: default;
	box-shadow: 0 2px 4px rgba(37, 99, 235, 0.3);
}

.mtn-pagination .page-numbers.current:hover {
	background: #2563eb;
	border-color: #2563eb;
	color: #fff;
	transform: none;
	box-shadow: 0 2px 4px rgba(37, 99, 235, 0.3);
}

.mtn-pagination .prev,
.mtn-pagination .next {
	padding: 0 10px;
	font-weight: 600;
	font-size: 11px;
}

.mtn-pagination .prev:before {
	content: "‹";
	margin-right: 2px;
	font-size: 14px;
	line-height: 1;
}

.mtn-pagination .next:after {
	content: "›";
	margin-left: 2px;
	font-size: 14px;
	line-height: 1;
}

.mtn-pagination .dots {
	border: none;
	background: transparent;
	cursor: default;
	padding: 0 6px;
	color: #6b7280;
	font-size: 12px;
	font-weight: 500;
}

.mtn-pagination .dots:hover {
	background: transparent;
	border: none;
	color: #6b7280;
	transform: none;
}

/* User Login Display */
.mtn-user-login {
	display: flex;
    align-items: center;
    gap: 8px;
    padding: 3px 0 0;
	justify-content: space-between;
}
.mtn-user-login-info {
	display: flex;
	align-items: center;
	gap: 4px;
}

.mtn-user-greeting {
	font-size: 12px;
	font-weight: 400;
	color: #64748b;
	margin-left: 4px;
}

.mtn-user-name {
	font-size: 12px;
	font-weight: 600;
	color: #1e293b;
	white-space: nowrap;
}

.mtn-logout-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 4px;
	border: none;
	background: transparent;
	color: #ef4444;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.2s ease;
	text-decoration: none;
}

.mtn-logout-btn .material-symbols-outlined {
	color: #ef4444;
}

.mtn-logout-btn .material-symbols-outlined {
	font-size: 18px;
}

.mtn-logout-text {
	font-size: 12px;
	font-weight: 500;
	color: #ef4444;
	margin-left: 4px;
}

/* Clear Cache Button */
.mtn-clear-cache-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 6px;
	border: none;
	background: #f59e0b;
	color: white;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.2s ease;
	text-decoration: none;
	margin: 0 8px;
	width: 32px;
	height: 32px;
}

.mtn-clear-cache-btn:hover {
	background: #d97706;
	transform: translateY(-1px);
}

.mtn-clear-cache-btn:active {
	transform: translateY(0);
}

.mtn-clear-cache-btn .material-symbols-outlined {
	color: white;
	font-size: 18px;
}

/* Clear Cache Button States */
.mtn-clear-cache-btn:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}

/* Loading animation for sync icon */
.mtn-clear-cache-btn .material-symbols-outlined:contains('sync') {
	animation: spin 1s linear infinite;
}

/* Alternative selector for sync icon animation */
.mtn-clear-cache-btn[data-loading="true"] .material-symbols-outlined {
	animation: spin 1s linear infinite;
}

@keyframes spin {
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}

/* Confirmation Modal (shared) */
.mtn-confirmation-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
}

.mtn-confirmation-backdrop {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	backdrop-filter: blur(2px);
}

.mtn-confirmation-dialog {
	background: white;
	border-radius: 12px;
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
	max-width: 480px;
	width: 90%;
	position: relative;
	z-index: 1;
	animation: mtn-confirmation-slide-in 0.3s ease-out;
}

.mtn-confirmation-header {
	padding: 24px 24px 0 24px;
}

.mtn-confirmation-header h3 {
	margin: 0;
	color: #1e293b;
	font-size: 18px;
	font-weight: 600;
}

.mtn-confirmation-content {
	padding: 16px 24px 24px 24px;
}

.mtn-confirmation-content p {
	margin: 0 0 12px 0;
	color: #475569;
	font-size: 14px;
	line-height: 1.5;
}

.mtn-confirmation-content p:last-child {
	margin-bottom: 0;
}

.mtn-confirmation-content strong {
	color: #1e293b;
	font-weight: 600;
}

.mtn-confirmation-note {
	font-size: 13px !important;
	color: #64748b !important;
	font-style: italic;
	background: #f8fafc;
	padding: 12px;
	border-radius: 6px;
	border-left: 3px solid #e2e8f0;
}

.mtn-confirmation-actions {
	display: flex;
	gap: 8px;
	padding: 0 24px 24px 24px;
	justify-content: center;
}

.mtn-confirmation-actions .mtn-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 8px 16px;
	border: none;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
	min-width: 100px;
}

.mtn-confirmation-actions .mtn-button.mtn-secondary {
	background: #f1f5f9;
	color: #475569;
	border: 1px solid #e2e8f0;
}

.mtn-confirmation-actions .mtn-button.mtn-secondary:hover {
	background: #e2e8f0;
	border-color: #cbd5e1;
}

.mtn-confirmation-actions .mtn-button.mtn-primary {
	background: #3b82f6;
	color: white;
	border: 1px solid #2563eb;
}

.mtn-confirmation-actions .mtn-button.mtn-primary:hover {
	background: #2563eb;
	border-color: #1d4ed8;
}

.mtn-confirmation-actions .mtn-button.mtn-danger {
	background: #dc2626;
	color: white;
	border: 1px solid #b91c1c;
}

.mtn-confirmation-actions .mtn-button.mtn-danger:hover {
	background: #b91c1c;
	border-color: #991b1b;
}

@keyframes mtn-confirmation-slide-in {
	from {
		opacity: 0;
		transform: translateY(-20px) scale(0.95);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

/* Bluetooth Modal Specific Styles */
.mtn-modal.mtn-bluetooth-specific-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 9999999;
	display: flex;
	align-items: center;
	justify-content: center;
}

.mtn-modal.mtn-bluetooth-specific-modal .mtn-modal-dialog {
	z-index: 10000000;
}

.mtn-modal.mtn-bluetooth-specific-modal .mtn-modal-backdrop {
	z-index: 9999998;
}

/* Ensure Bluetooth modal is always on top */
.mtn-bluetooth-specific-modal {
	pointer-events: auto !important;
}

.mtn-bluetooth-specific-modal * {
	pointer-events: auto !important;
}

/* Bluetooth Status Indicator */
.mtn-bluetooth-status-indicator {
	position: fixed;
	bottom: 20px;
	left: 20px;
	width: 40px;
	height: 40px;
	background: rgba(255, 255, 255, 0.9);
	border: 1px solid #e5e7eb;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.3s ease;
	z-index: 9999;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	backdrop-filter: blur(10px);
}

.mtn-bluetooth-status-indicator:hover {
	transform: scale(1.1);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.mtn-bluetooth-status-indicator.mtn-connected {
	background: rgba(16, 185, 129, 0.9);
	border-color: #10b981;
	box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.mtn-bluetooth-status-indicator.mtn-connected:hover {
	background: rgba(16, 185, 129, 1);
	box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.mtn-bluetooth-status-indicator .mtn-bluetooth-icon {
	display: flex;
	align-items: center;
	justify-content: center;
}

.mtn-bluetooth-status-indicator .material-symbols-outlined {
	font-size: 18px;
	color: #6b7280;
	transition: all 0.3s ease;
}

.mtn-bluetooth-status-indicator.mtn-connected .material-symbols-outlined {
	color: white;
	animation: bluetoothPulse 2s infinite;
}

.mtn-bluetooth-status-indicator.mtn-connecting .material-symbols-outlined {
	color: #f59e0b;
	animation: bluetoothSpin 1s linear infinite;
}

.mtn-bluetooth-status-indicator.mtn-error .material-symbols-outlined {
	color: #ef4444;
}

@keyframes bluetoothPulse {
	0% { transform: scale(1); }
	50% { transform: scale(1.1); }
	100% { transform: scale(1); }
}

@keyframes bluetoothSpin {
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}

.mtn-bluetooth-tooltip {
	position: absolute;
	bottom: 50px;
	left: 0;
	background: #1f2937;
	color: white;
	padding: 6px 10px;
	border-radius: 6px;
	font-size: 11px;
	white-space: nowrap;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
	pointer-events: none;
}

.mtn-bluetooth-tooltip::after {
	content: '';
	position: absolute;
	top: 100%;
	left: 15px;
	border: 4px solid transparent;
	border-top-color: #1f2937;
}

.mtn-bluetooth-status-indicator:hover .mtn-bluetooth-tooltip {
	opacity: 1;
	visibility: visible;
}

/* Mobile responsive for Bluetooth indicator */
@media (max-width: 768px) {
	.mtn-bluetooth-status-indicator {
		bottom: 15px;
		left: 15px;
		width: 36px;
		height: 36px;
	}
	
	.mtn-bluetooth-status-indicator .material-symbols-outlined {
		font-size: 16px;
	}
	
	.mtn-bluetooth-tooltip {
		bottom: 45px;
		left: 0;
		font-size: 10px;
		padding: 5px 8px;
	}
}

/* Bluetooth Modal Components */
.mtn-modal-header {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 20px 24px;
	border-bottom: 1px solid #e5e7eb;
}

/* Ensure close buttons are clickable */
.mtn-modal [data-close],
.mtn-modal button[data-close] {
	cursor: pointer !important;
	pointer-events: auto !important;
	user-select: none;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
}

/* Force close button styling */
.mtn-modal .mtn-btn-danger {
	background: #dc3545 !important;
	color: white !important;
	border: 1px solid #dc3545 !important;
}

.mtn-modal .mtn-btn-danger:hover {
	background: #c82333 !important;
	border-color: #bd2130 !important;
}

/* Connected device styling */
.mtn-device-connected {
	border-color: #10b981 !important;
	background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
}

.mtn-device-connected .mtn-device-icon {
	background: #10b981 !important;
}

.mtn-device-connected .mtn-device-icon .material-symbols-outlined {
	color: white !important;
}

.mtn-connection-status {
	color: #10b981 !important;
	font-weight: 600 !important;
	font-size: 11px !important;
	margin: 4px 0 0 0 !important;
	padding: 2px 6px !important;
	background: #d1fae5 !important;
	border-radius: 4px !important;
	display: inline-block !important;
}

.mtn-device-icon-connected {
	background: #10b981 !important;
	box-shadow: 0 0 0 2px #10b981, 0 2px 8px rgba(16, 185, 129, 0.3) !important;
}

.mtn-modal-icon {
	width: 40px;
	height: 40px;
	background: #3b82f6;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.mtn-modal-icon .material-symbols-outlined {
	font-size: 20px;
	color: white;
}

.mtn-modal-title h3 {
	margin: 0 0 4px 0;
	font-size: 18px;
	font-weight: 600;
	color: #1f2937;
}

.mtn-modal-title p {
	margin: 0;
	font-size: 14px;
	color: #6b7280;
}

.mtn-modal-content {
	padding: 24px;
}

.mtn-saved-devices-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.mtn-saved-device-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px;
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	transition: all 0.2s ease;
}

.mtn-saved-device-item:hover {
	border-color: #3b82f6;
	box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.mtn-device-info {
	display: flex;
	align-items: center;
	gap: 12px;
}

.mtn-device-icon {
	width: 40px;
	height: 40px;
	background: #f3f4f6;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.mtn-device-icon .material-symbols-outlined {
	font-size: 20px;
	color: #6b7280;
}

.mtn-device-details h4 {
	margin: 0 0 4px 0;
	font-size: 16px;
	font-weight: 600;
	color: #1f2937;
}

.mtn-device-details p {
	margin: 0;
	font-size: 13px;
	color: #6b7280;
}

.mtn-device-actions {
	display: flex;
	gap: 8px;
}

.mtn-btn {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 8px 12px;
	border: none;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
	pointer-events: auto;
	user-select: none;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
}

.mtn-btn-primary {
	background: #3b82f6;
	color: white;
}

.mtn-btn-primary:hover {
	background: #2563eb;
}

.mtn-btn-danger {
	background: #ef4444;
	color: white;
	padding: 8px;
}

.mtn-btn-danger:hover {
	background: #dc2626;
}

.mtn-btn-outline {
	background: transparent;
	color: #6b7280;
	border: 1px solid #d1d5db;
}

.mtn-btn-outline:hover {
	background: #f3f4f6;
	border-color: #9ca3af;
	color: #374151;
}

.mtn-btn-secondary {
	background: #6b7280;
	color: white;
}

.mtn-btn-secondary:hover {
	background: #4b5563;
}

.mtn-no-devices {
	text-align: center;
	padding: 40px 20px;
}

.mtn-no-devices-icon {
	width: 64px;
	height: 64px;
	background: #f3f4f6;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 16px;
}

.mtn-no-devices-icon .material-symbols-outlined {
	font-size: 32px;
	color: #9ca3af;
}

.mtn-no-devices h4 {
	margin: 0 0 8px 0;
	font-size: 18px;
	font-weight: 600;
	color: #1f2937;
}

.mtn-no-devices p {
	margin: 0;
	font-size: 14px;
	color: #6b7280;
}

