/**
 * Transtoyou Saved Items - Mobile Panel
 * Full-screen slide-in op mobiel met tabs, subtabs, lijstselectie en search.
 */

.tty-si-mobile-search {
  position: relative;
}

.tty-si-mobile-search-clear {
  position: absolute;
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 10px;
  cursor: pointer;
  color: var(--tty-primary);
  transition: color 0.2s ease;
  z-index: 2;
}

.tty-si-mobile-search-clear:active {
  color: #333;
}

.tty-si-mobile-search-clear i {
  font-size: 18px;
}

.tty-si-mobile-search-input {
  padding-right: 80px; /* Make room for clear button and search icon */
}

.tty-si-mobile {
  position: fixed;
  inset: 0;
  background: var(--tty-bg-primary);
  display: none;
  flex-direction: column;
  z-index: 99998;
}

.tty-si-mobile.is-open {
  display: flex;
}

.tty-si-mobile .tty-badge {
  top: 4px;
  right: 4px;
  transition: all 0.15s ease;
  background: var(--tty-secondary);
  color: white;
  font-size: 14px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  line-height: 1.5;
  font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

.tty-si-msub .tty-badge {
  position: absolute;
}


.transtoyou-counter-save {
  margin-bottom: -10px;
  z-index: 3;
  position: absolute;
  top: 0px;
  right: 14px;
  background: var(--tty-secondary);
  color: white;
  font-size: 11px !important;
  font-weight: 600;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  line-height: 18px;
  margin-top: -9px;
  margin-right: -23px;
}


/* ---------- Header ---------- */

.tty-si-mobile-header {
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 15px 20px 15px 20px;
  display: flex;
  align-items: start;
  gap: 10px;
  justify-content: space-between;
}

.tty-si-mobile-back {
  border: none;
  background: rgba(0,95,95,.08);
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: var(--tty-primary);
  cursor: pointer;
  transition: var(--tty-transition-fast);
  font-size: 20px;
  align-items: center;
  justify-content: center;
  display: flex;
}

.tty-si-mobile-back:hover {
  background: var(--tty-primary);
  color: #fff;
}

.tty-si-mobile-tabs {
  display: inline-flex;
  gap: 8px;
  background: var(--tty-bg-secondary);
  padding: 3px;
  border-radius: 12px;
}

.tty-si-msub.is-active i, .tty-si-msub[aria-selected="true"] i {
    color: var(--tty-primary);
}

.tty-si-mobile .tty-si-mtab .tty-badge {
  top: -6px;
  right: -7px;
}

.tty-si-mtab {
  border: none;
  background: transparent;
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13px;
  color: var(--tty-text-primary);
  cursor: pointer;
  transition: var(--tty-transition-fast);
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.tty-si-mtab.is-active,
.tty-si-mtab[aria-selected="true"] {
  background: var(--tty-bg-primary);
  color: var(--tty-primary);
  box-shadow: var(--tty-shadow-sm);
}

/* ---------- Toolbar (List select + New) ---------- */

.tty-si-mobile-toolbar {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 4px;
  background: linear-gradient(135deg, var(--tty-primary-bg) 0%, rgba(0, 95, 95, 0.05) 100%);
  margin: 0px 20px 0px 20px;
  border-radius: 12px;
}

.tty-si-mobile-list {
  flex: 1;
}

.tty-si-mobile-newlist {
  white-space: nowrap;
}



/* ---------- Search ---------- */

.tty-si-mobile-search {
  padding: 15px 20px 15px 20px;
  background: var(--tty-bg-primary);
  position: relative;
}

.tty-si-mobile-search .fa-solid.fa-magnifying-glass.search-icon {
  position: absolute;
  left: 32px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: var(--tty-text-secondary);
  pointer-events: none;
  color: var(--tty-primary);
}


.tty-si-mobile-search .tty-si-mobile-search-input:focus {
  outline: none;
  border-color: var(--tty-search-accent);
  box-shadow: var(--tty-search-shadow-md), 0 0 0 4px rgba(0, 95, 95, 0.1);
  transform: translateY(-1px);
}

.tty-si-mobile-search .tty-si-mobile-search-input {
  width: 100%;
  padding: 14px 20px 14px 48px !important;
  background: var(--tty-bg-secondary);
  border: 2px solid transparent;
  border-radius: 12px;
  font-size: 15px;
  color: var(--tty-text-primary);
  transition: all 0.15s ease;
}

/* ---------- Subtabs ---------- */

.tty-si-mobile-subtabs {
  display: block;
  background: var(--tty-bg-secondary);
  margin: 0px 20px 15px 20px;
  border-radius: 12px;
}

.tty-si-mobile-list .tty-si-compare-image img {
padding: 0px;
  width: 100%;
  height: 100%;
}

.tty-si-mobile-list .tty-si-compare-item {
  width: 250px;
}

.tty-si-mobile-list .tty-si-compare-grid {
  display: flex;
  width: fit-content;
  margin-right: 20px;
}

.tty-si-compare-label i {
  font-size: 16px;
}

.tty-si-mobile-list .tty-si-compare-name h3 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: auto;

}

.tty-si-mobile-list .tty-si-compare-image {
  position: relative;
  width: 100%;
  height: 100px;
  background: #f8f9fa;
  overflow: hidden;
  border-radius: 12px 12px 0px 0px;
}

.tty-si-mobile-list  .tty-si-compare-actions {
  display: flex;
  gap: 8px;
  padding: 15px;
  background: #f8f9fa;
  margin-top: auto;
  border-radius: 0px 0px 12px 12px;
}

.tty-si-mobile-sub {
  display: flex;
  gap: 8px;
  padding: 4px;
}

.tty-si-mobile-sub.saved {
  display: flex !important;
}

.tty-si-msub i {
  font-size: 20px;
  color: var(--tty-text-secondary);
  transition: all 0.15s ease;
}

.tty-si-msub {
    flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 8px;
  background: transparent;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
  z-index: 2;
  font-size: 11px;
  font-weight: 600;
  color: var(--tty-text-secondary);
  transition: all 0.15s ease;
  position: relative;
}

.tty-si-mobile .tty-badge.large-count {
  min-width: 24px;
  padding: 0 6px;
  font-size: 9px;
}

.tty-si-msub.is-active,
.tty-si-msub[aria-selected="true"] {
color: var(--tty-primary);
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 8px;
  background: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* ---------- Content ---------- */

/* ---------- Content ---------- */

.tty-si-mobile-content {
  flex: 1;
  overflow: hidden;
  background: var(--tty-bg-primary);
  margin: 0 15px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  margin-left: -10px;
  margin-right: -10px;
  margin-top: -5px;
}

/* The actual scrollable list container */
.tty-si-mobile-list[data-role="content"] {
  flex: 1;
  overflow-y: auto;
  overflow-x: visible;
  -webkit-overflow-scrolling: touch;
  min-height: 0;
  padding-bottom: 15px;
  position: relative;
  -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  
  /* Allow for overlapping elements to be visible */
  padding-left: 30px;
  padding-right: 30px;
  scroll-behavior: smooth;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  padding-top: 10px;
}

/* Ensure items container allows overflow for badges/buttons */
.tty-si-mobile-list[data-role="content"] > * {
  position: relative;
  z-index: 1;
}

/* Item container adjustments for proper overflow */
.tty-si-mobile-list[data-role="content"] .tty-si-item {
  position: relative;
  overflow: visible;
  margin-bottom: 8px;
}

/* Ensure save buttons and badges remain visible */
.tty-si-mobile-list[data-role="content"] .tty-si-save-btn,
.tty-si-mobile-list[data-role="content"] .tty-si-date-badge,
.tty-si-mobile-list[data-role="content"] .tty-si-read-indicator {
  position: absolute;
  z-index: 10;
}

/* Empty state should not affect scroll */
.tty-si-mobile-list[data-role="content"] .tty-si-empty {
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tty-si-mobile.compare-active .tty-si-compare-skeleton-item {
  flex: 0 0 85%;
  min-width: 85%;
}

.tty-si-mobile.compare-active .tty-si-skeleton-wrapper.loading {
  gap: 20px;
  overflow-x: visible;
  padding-right: 70px;
  display: flex;
  flex-direction: row;
}

/* Skeleton wrapper in scrollable context */
.tty-si-mobile-list[data-role="content"] .tty-si-skeleton-wrapper {
  padding-bottom: 15px;
}

.tty-si-mobile-list[data-role="content"] .tty-si-skeleton-item {
  margin-bottom: 8px;
}

/* ---------- Pagination ---------- */

.tty-si-mobile-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 12px;
  border-top: 1px solid var(--tty-border-light);
  background: var(--tty-bg-primary);
  margin-top: auto;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}


/* Ensure proper spacing at bottom for iOS safe area */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .tty-si-mobile-list[data-role="content"] {
    padding-bottom: calc(15px + env(safe-area-inset-bottom));
  }
}

@supports (padding-bottom: constant(safe-area-inset-bottom)) {
  .tty-si-mobile-list[data-role="content"] {
    padding-bottom: calc(15px + constant(safe-area-inset-bottom));
  }
}

/* Scroll indicators for better UX */
.tty-si-mobile-list[data-role="content"]::-webkit-scrollbar {
  width: 4px;
}

.tty-si-mobile-list[data-role="content"]::-webkit-scrollbar-track {
  background: transparent;
}

.tty-si-mobile-list[data-role="content"]::-webkit-scrollbar-thumb {
  background: rgba(0, 95, 95, 0.2);
  border-radius: 2px;
}

.tty-si-mobile-list[data-role="content"]::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 95, 95, 0.3);
}

/* iOS momentum scrolling fix */
@media screen and (max-width: 768px) {
  .tty-si-mobile-list[data-role="content"] {
    -webkit-overflow-scrolling: touch;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
}

/* Ensure move chip remains accessible */
.tty-si-mobile-list[data-role="content"] .tty-si-move-chip {
  position: absolute;
  z-index: 5;
}

/* Dark mode adjustments for scroll container */
[data-theme="dark"] .tty-si-mobile-list[data-role="content"]::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .tty-si-mobile-list[data-role="content"]::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}


/* ---------- Updated Item Styles - Modern Treatment/Blog Style ---------- */


.tty-si-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--tty-bg-secondary);
  border-radius: 12px;
  text-decoration: none;
  color: var(--tty-text-primary);
  transition: all 0.15s ease;
  position: relative;
  overflow: visible;
  border: 1px solid transparent;
  cursor: pointer;
}

.tty-si-item:hover {
  background: white;
  transform: translateX(1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Thumbnail styles - matching modern layout */
.tty-si-item .tty-si-thumb {
  width: 110px;
  height: 75px;
  flex-shrink: 0;
  border-radius: 8px;
  background-color: #f0f0f0;
  margin: -5px 15px -5px -5px;
  border: 2px solid var(--tty-bg-primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  position: relative;
}

/* Blog specific - wider thumbnail for date badge */
.tty-si-item[data-type="blogs"] .tty-si-thumb,
.tty-si-item[data-type="products"] .tty-si-thumb {
  width: 100px;
  height: 100px;
}

.tty-si-item .tty-si-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 5px;
}

.tty-si-item .tty-si-thumb a {
  display: block;
  width: 100%;
  height: 100%;
}

/* Placeholder for missing images */
.tty-si-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--tty-bg-tertiary);
}

.tty-si-thumb-placeholder i {
  font-size: 24px;
  color: var(--tty-text-secondary);
}

/* Remove drag handle - not needed in modern design */
.tty-si-item .tty-si-drag-handle {
  display: none;
}

/* Save button in thumbnail */
.tty-si-item .tty-si-save-btn {
  position: absolute;
  top: -7px;
  left: -7px;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--tty-text-secondary);
  font-size: 16px;
  transition: all 0.15s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}



.tty-si-item .tty-si-save-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.tty-si-item .tty-si-save-btn.saved {
  background: white;
  color: var(--tty-secondary);
}

.tty-si-item .tty-si-save-btn.saving {
  pointer-events: none;
  opacity: 0.6;
}

.tty-si-item .tty-si-save-btn.saving i {
  animation: pulse 0.6s ease-in-out;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* Blog date badge */
.tty-si-item .tty-si-date-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1;
  gap: 2px;
  position: absolute;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border-radius: 20px;
  left: 72px;
  top: 62px;
  background: #476b79;
  color: white;
  flex-direction: column;
  width: 36px;
  height: 36px;
  border: 2px solid #fff;
}

.tty-si-date-badge-day {
  font-size: 12px;
  font-weight: 700;
}

.tty-si-date-badge-month {
  font-size: 8px;
  text-transform: uppercase;
  opacity: 0.7;
  font-weight: 500;
}

/* ---------- Toolbar (List select + New) ---------- */

.tty-si-mobile-toolbar .tty-si-mobile-list {
  flex: 1;
  padding: 10px 14px;
  background: white;
  border: 2px solid transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--tty-text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.tty-si-mobile-list:focus {
  outline: none;
  border-color: var(--tty-primary);
  box-shadow: 0 0 0 3px rgba(0, 95, 95, 0.1);
}

.tty-si-mobile-newlist {
  white-space: nowrap;
}


/* Blog read indicator */
.tty-si-item .tty-si-read-indicator {
  position: absolute;
  top: -6px;
  right: -9px;
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.9);
  padding: 4px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tty-si-read-indicator i {
  font-size: 8px;
}

.tty-si-read-indicator[data-status="unread"] i {
  color: #f44336;
}

.tty-si-read-indicator[data-status="partial"] i {
  color: #ff9800;
}

.tty-si-read-indicator[data-status="read"] i {
  color: #4caf50;
}

.tty-si-read-indicator .read-percentage {
  color: #ff9800;
  font-size: 10px;
}

/* Body content styles */
.tty-si-item .tty-si-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tty-si-item .tty-si-title {
  font-size: 16px;
  font-weight: 500;
  margin: 0;
  color: var(--tty-text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  white-space: normal;
  line-height: 21px;
}

.tty-si-item .tty-si-title a {
  color: inherit;
  text-decoration: none;
}

/* Meta info for items */
.tty-si-item .tty-si-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: var(--tty-text-secondary);
  margin: 2px 0;
}

/* Expert verification for treatments */
.tty-si-item .tty-si-verified {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--tty-text-secondary);
}

.tty-si-item .tty-si-verified i {
  font-size: 14px;
  color: var(--tty-primary);
}

/* Remove all action button styles - no longer needed */
.tty-si-item .tty-si-actions {
  display: none;
}

/* Arrow indicator */
.tty-si-item .tty-si-arrow {
  flex-shrink: 0;
  font-size: 16px;
  color: var(--tty-primary);
  margin-left: auto;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tty-si-item:hover .tty-si-arrow {
  transform: translateX(3px);
}

/* ---------- Skeleton Loading ---------- */

.tty-si-skeleton-wrapper {
  display: none;
  flex-direction: column;
  gap: 8px;
  animation: fadeIn 0.3s ease;
}

.tty-si-skeleton-wrapper.loading {
  display: flex;
}

.tty-si-skeleton-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--tty-bg-secondary);
  border-radius: 15px;
  position: relative;
  overflow: hidden;
}

.tty-si-skeleton-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  height: 100%;
  width: 150%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  animation: skeleton-shimmer 1.5s infinite;
}

@keyframes skeleton-shimmer {
  to {
    left: 100%;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Default skeleton image (for treatments) */
.tty-si-skeleton-item .skeleton-image {
  width: 110px;
  height: 75px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  flex-shrink: 0;
  margin: -5px 5px -5px -5px;
  border: 2px solid var(--tty-bg-primary);
}

/* Product skeleton - square image */
.tty-si-skeleton-item.skeleton-product .skeleton-image {
  width: 96px;
  height: 96px;
}

/* Blog skeleton - square image */
.tty-si-skeleton-item.skeleton-blog .skeleton-image {
  width: 96px;
  height: 96px;
}

/* Treatment skeleton - keep rectangular */
.tty-si-skeleton-item.skeleton-treatment .skeleton-image {
  width: 110px;
  height: 75px;
}

.tty-si-skeleton-item .skeleton-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tty-si-skeleton-item .skeleton-title {
  height: 35px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  width: 90%;
}

.tty-si-skeleton-item .skeleton-meta {
  height: 21px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 4px;
  width: 40%;
}

.tty-si-skeleton-item .skeleton-arrow {
  width: 20px;
  height: 20px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
  flex-shrink: 0;
}

/* Dark mode skeleton adjustments */
[data-theme="dark"] .tty-si-skeleton-item {
  background: rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .tty-si-skeleton-item .skeleton-image,
[data-theme="dark"] .tty-si-skeleton-item .skeleton-title,
[data-theme="dark"] .tty-si-skeleton-item .skeleton-meta,
[data-theme="dark"] .tty-si-skeleton-item .skeleton-arrow {
  background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .tty-si-skeleton-item .skeleton-meta {
  background: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .tty-si-skeleton-item .skeleton-arrow {
  background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .tty-si-skeleton-item::before {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
}

/* Responsive skeleton adjustments for very small screens */
@media (max-width: 360px) {
  .tty-si-skeleton-item .skeleton-image {
    width: 90px;
    height: 65px;
  }
  
  .tty-si-skeleton-item.skeleton-product .skeleton-image,
  .tty-si-skeleton-item.skeleton-blog .skeleton-image {
    width: 85px;
    height: 85px;
  }
  
  .tty-si-skeleton-item .skeleton-title {
    height: 36px;
  }
}

/* Loading state animation variations for visual interest */
.tty-si-skeleton-item:nth-child(2)::before {
  animation-delay: 0.2s;
}

.tty-si-skeleton-item:nth-child(3)::before {
  animation-delay: 0.4s;
}

.tty-si-skeleton-item:nth-child(4)::before {
  animation-delay: 0.6s;
}

.tty-si-skeleton-item:nth-child(5)::before {
  animation-delay: 0.8s;
}

.tty-si-skeleton-item:nth-child(6)::before {
  animation-delay: 1s;
}

/* Smooth transition when skeleton is replaced by real content */
.tty-si-skeleton-wrapper.loading {
  animation: fadeIn 0.3s ease;
}

.tty-si-skeleton-wrapper.hiding {
  animation: fadeOut 0.2s ease;
  opacity: 0;
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}


/* ---------- Empty State ---------- */

.tty-si-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
}

.tty-si-empty i {
  font-size: 64px;
  opacity: 0.3;
  margin-bottom: 16px;
}


.tty-si-empty h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--tty-text-primary);
  margin: 0 0 8px 0;
}

.tty-si-empty p {
  font-size: 14px;
  color: var(--tty-text-secondary);
  margin: 0 0 20px 0;
}

/* ---------- Pagination ---------- */

.tty-si-mobile-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 12px;
  border-top: 1px solid var(--tty-border-light);
  background: var(--tty-bg-primary);
  margin-top: 15px;
  display: none;
  height: 0px;
}

.tty-si-mpage {
  font-size: 13px;
  color: var(--tty-text-secondary);
}

/* ---------- Responsive ---------- */

@media (min-width: 769px) {
  /* mobile panel is hidden on desktop by JS, but keep styling consistent */
  .tty-si-mobile { display: none !important; }
}


/* ---------- Dark Mode ---------- */

[data-theme="dark"] .tty-si-mobile-header {
  background: rgba(18, 18, 18, 0.94);
}

[data-theme="dark"] .tty-si-msub {
  background: rgba(255,255,255,.04);
  border-color: var(--tty-border-medium);
}

[data-theme="dark"] .tty-si-msub.is-active {
  background: rgba(0,95,95,.12);
}

[data-theme="dark"] .tty-si-item {
  background: rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .tty-si-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .tty-si-skeleton-item {
  background: rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .tty-si-skeleton-item .skeleton-image,
[data-theme="dark"] .tty-si-skeleton-item .skeleton-title,
[data-theme="dark"] .tty-si-skeleton-item .skeleton-meta,
[data-theme="dark"] .tty-si-skeleton-item .skeleton-arrow {
  background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .tty-si-skeleton-item::before {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
}

[data-theme="dark"] .tty-si-item .tty-si-save-btn {
  background: rgba(255, 255, 255, 0.1);
  color: var(--tty-text-secondary);
}

[data-theme="dark"] .tty-si-item .tty-si-save-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .tty-si-item .tty-si-save-btn.saved {
  background: rgba(229, 146, 76, 0.3);
  color: var(--tty-secondary);
}

/* List action buttons container */
.tty-si-mobile-list-actions {
  display: flex;
  gap: 8px;
}

/* List action buttons (new, rename, delete) */
.tty-si-mobile-newlist,
.tty-si-mobile-renamelist,
.tty-si-mobile-deletelist {
  background: white;
  border: 2px solid white;
  border-radius: 8px;
  font-size: 16px;
  color: #333;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Icon colors for list actions */
.tty-si-mobile-newlist i {
  color: #28a745;
}

.tty-si-mobile-tabs i {
  font-size: 18px;
  margin: -5px 0;
}

.tty-si-mobile-renamelist i {
  color: #007cba;
}

.tty-si-mobile-deletelist i {
  color: #dc3545;
}

/* Responsive adjustments for very small screens */
@media (max-width: 360px) {
  .tty-si-mobile-list-actions {
    gap: 3px;
  }
  
  .tty-si-mobile-newlist,
  .tty-si-mobile-renamelist,
  .tty-si-mobile-deletelist {
    padding: 6px 8px;
    font-size: 14px;
    min-width: 35px;
  }
}

/* ---------- Move Chip Button ---------- */
.tty-si-move-chip {
  position: absolute;
  bottom: -2px;
  right: 2px;
  background: transparent;
  border: none;
  padding: 6px 10px 6px 10px;
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 600;
  color: var(--tty-primary);
  cursor: pointer;
  transition: all 0.2s ease;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  min-width: 44px;
  min-height: 32px;
}

.tty-si-product-price {
  color: var(--tty-primary);
  font-size: 16px;
  font-weight: 700;
}


.tty-si-move-chip i {
  font-size: 12px;
  opacity: 0.7;
  color: #e5924c;
}

/* ---------- Move Overlay - Full screen including iOS status bar ---------- */
.tty-move-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0);
  z-index: 99999;
  pointer-events: none;
  transition: background 0.3s ease;
  /* Extend to cover iOS status bar */
  padding-top: env(safe-area-inset-top);
  padding-top: constant(safe-area-inset-top);
}

.tty-move-overlay.is-open {
  pointer-events: auto;
  background: rgba(0, 0, 0, 0.6);
}

/* Add pseudo element to ensure full coverage on iOS */
.tty-move-overlay::before {
  content: '';
  position: fixed;
  top: -100px;
  left: 0;
  right: 0;
  height: calc(100px + env(safe-area-inset-top));
  height: calc(100px + constant(safe-area-inset-top));
  background: rgba(0, 0, 0, 0);
  transition: background 0.3s ease;
  z-index: -1;
}

.tty-move-overlay.is-open::before {
  background: rgba(0, 0, 0, 0.6);
}

/* Move Panel - Slide up from bottom */
.tty-move-overlay .tty-move-panel {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--tty-bg-primary);
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 50vh;
  display: flex;
  flex-direction: column;
  /* Add padding for browser bottom bar */
  padding-bottom: env(safe-area-inset-bottom);
  padding-bottom: constant(safe-area-inset-bottom);
}


/* Additional padding when browser bar is visible */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .tty-move-overlay .tty-move-panel {
    /* Ensure content is above browser bar */
    padding-bottom: calc(env(safe-area-inset-bottom) + 20px);
    /* Adjust max height to account for browser bar */
    max-height: calc(50vh - env(safe-area-inset-bottom));
  }
}

@supports (padding-bottom: constant(safe-area-inset-bottom)) {
  .tty-move-overlay .tty-move-panel {
    /* Fallback for older iOS */
    padding-bottom: calc(constant(safe-area-inset-bottom) + 20px);
    max-height: calc(50vh - constant(safe-area-inset-bottom));
  }
}

.tty-move-overlay .tty-move-panel.is-visible {
  transform: translateY(0);
  /* Add extra bottom margin for browser bar */
  margin-bottom: env(safe-area-inset-bottom);
  margin-bottom: constant(safe-area-inset-bottom);
}


/* Move Panel Header */
.tty-move-overlay .tty-move-panel-header {
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--tty-border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  flex-shrink: 0;
}

.tty-move-overlay .tty-move-panel-header::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 4px;
  background: var(--tty-border-medium);
  border-radius: 2px;
}

.tty-move-overlay .tty-move-panel-header span {
  font-size: 16px;
  font-weight: 600;
  color: var(--tty-text-primary);
}

.tty-move-overlay .tty-move-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.tty-move-overlay .tty-move-close:hover {
  background: rgba(0, 0, 0, 0.1);
  transform: rotate(90deg);
}

.tty-move-overlay .tty-move-close i {
  font-size: 18px;
  color: var(--tty-text-secondary);
}

/* Move Options List */
.tty-move-overlay .tty-move-options {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
  padding-bottom: calc(12px + constant(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 8px;
  -webkit-overflow-scrolling: touch;
  /* Ensure scrollbar doesn't overlap content */
  scrollbar-gutter: stable;
}

/* Browser-specific adjustments */
@media screen and (max-width: 768px) {
  /* Safari on iOS with bottom bar */
  @supports (-webkit-touch-callout: none) {
    .tty-move-overlay .tty-move-panel {
      /* Extra padding for Safari's bottom bar */
      padding-bottom: calc(env(safe-area-inset-bottom) + 100px);
    }
    
    .tty-move-overlay .tty-move-panel.is-visible {
      /* Ensure panel is fully visible above Safari bar */
      transform: translateY(calc(-1 * env(safe-area-inset-bottom)));
    }
  }
  
  /* Chrome on iOS */
  @supports not (-webkit-touch-callout: none) {
    .tty-move-overlay .tty-move-panel {
      /* Chrome needs less padding */
      padding-bottom: calc(env(safe-area-inset-bottom) + 100px);
    }
  }
}

/* Viewport height adjustments for when browser bar is visible */
@media screen and (max-height: 700px) {
  .tty-move-overlay .tty-move-panel {
    /* Reduce max height on smaller viewports */
    max-height: calc(40vh - env(safe-area-inset-bottom));
  }
}

@media screen and (max-height: 600px) {
  .tty-move-overlay .tty-move-panel {
    /* Even smaller height for very small viewports */
    max-height: calc(35vh - env(safe-area-inset-bottom));
  }
}

/* Alternative approach using fixed positioning from top */
@media screen and (max-width: 768px) and (orientation: portrait) {
  .tty-move-overlay .tty-move-panel.is-visible {
    /* Position from top instead of bottom to avoid browser bar issues */
    position: fixed;
    top: auto;
    bottom: 0;
    transform: translateY(0);
    /* Use viewport height units that account for browser bar */
    max-height: calc(50dvh - 20px);
    max-height: calc(50vh - env(safe-area-inset-bottom) - 20px);
  }
}

.tty-move-overlay .tty-move-options::after {
  content: '';
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(to top, var(--tty-bg-primary) 0%, transparent 100%);
  pointer-events: none;
  margin-top: -40px;
}

/* Move Option Button */
.tty-move-option-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--tty-bg-secondary);
  border: 2px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  min-height: 56px;
  -webkit-user-select: none;
  user-select: none;
  flex-shrink: 0;
}

.tty-move-option-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--tty-primary) 0%, rgba(0, 95, 95, 0.8) 100%);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.tty-move-option-btn:hover {
  border-color: var(--tty-primary);
  background: white;
  transform: translateX(4px);
}

.tty-move-option-btn:hover::before {
  opacity: 0.05;
}

.tty-move-option-btn:active {
  transform: scale(0.98);
  background: white;
  border-color: var(--tty-primary);
}

.tty-move-option-btn i:first-child {
  font-size: 18px;
  color: var(--tty-primary);
  width: 24px;
}

.tty-move-option-btn span {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  color: var(--tty-text-primary);
  position: relative;
}

.tty-move-option-btn i:last-child {
  font-size: 14px;
  color: var(--tty-text-secondary);
  transition: all 0.15s ease;
}

.tty-move-option-btn:hover i:last-child {
  color: var(--tty-primary);
  transform: translateX(3px);
}

/* Moving State Animation */
.tty-move-option-btn.is-moving {
  background: var(--tty-primary);
  border-color: var(--tty-primary);
  pointer-events: none;
}

.tty-move-option-btn.is-moving span,
.tty-move-option-btn.is-moving i {
  color: white;
}

.tty-move-option-btn.is-moving::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border: 2px solid white;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Item States */
.tty-si-item.is-moving {
  opacity: 0.6;
  transform: scale(0.98);
  pointer-events: none;
}

.tty-si-item.move-active {
  background: white;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.1);
  border-color: var(--tty-primary);
}

.tty-si-item.is-navigating {
  background: rgba(0, 95, 95, 0.05);
  transform: scale(0.98);
}

/* Remove Button States */
.tty-si-item-remove.is-removing {
  animation: pulse-remove 0.3s ease;
}

@keyframes pulse-remove {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); opacity: 0.5; }
  100% { transform: scale(1); }
}

/* iOS Specific Adjustments */
@supports (padding-top: env(safe-area-inset-top)) {
  .tty-move-overlay {
    top: -env(safe-area-inset-top);
    height: calc(100vh + env(safe-area-inset-top));
  }
}

@supports (padding-top: constant(safe-area-inset-top)) {
  .tty-move-overlay {
    top: -constant(safe-area-inset-top);
    height: calc(100vh + constant(safe-area-inset-top));
  }
}

/* Force dark background on iOS devices */
@media screen and (max-width: 768px) {
  .tty-move-overlay.is-open {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
}

/* iPhone Specific Media Queries */
@media screen and (device-width: 390px) and (device-height: 844px) and (-webkit-device-pixel-ratio: 3) {
  /* iPhone 12, 13, 14 Pro */
  .tty-move-overlay {
    top: -50px;
    padding-top: 50px;
  }
}

@media screen and (device-width: 393px) and (device-height: 852px) and (-webkit-device-pixel-ratio: 3) {
  /* iPhone 14 Pro */
  .tty-move-overlay {
    top: -50px;
    padding-top: 50px;
  }
}

@media screen and (device-width: 430px) and (device-height: 932px) and (-webkit-device-pixel-ratio: 3) {
  /* iPhone 14 Plus, Pro Max */
  .tty-move-overlay {
    top: -50px;
    padding-top: 50px;
  }
}

@media screen and (device-width: 375px) and (device-height: 812px) and (-webkit-device-pixel-ratio: 3) {
  /* iPhone X, XS, 11 Pro */
  .tty-move-overlay {
    top: -44px;
    padding-top: 44px;
  }
}

@media screen and (device-width: 414px) and (device-height: 896px) and (-webkit-device-pixel-ratio: 2) {
  /* iPhone XR, 11 */
  .tty-move-overlay {
    top: -44px;
    padding-top: 44px;
  }
}

@media screen and (device-width: 414px) and (device-height: 896px) and (-webkit-device-pixel-ratio: 3) {
  /* iPhone XS Max, 11 Pro Max */
  .tty-move-overlay {
    top: -44px;
    padding-top: 44px;
  }
}

/* Desktop Modal Move Styles */
@media (min-width: 769px) {
  .tty-si-move-wrapper {
    position: relative;
    margin-top: 8px;
    z-index: 10;
  }

  .tty-si-move-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: linear-gradient(135deg, rgba(0, 95, 95, 0.05) 0%, rgba(0, 95, 95, 0.08) 100%);
    border: 1px solid rgba(0, 95, 95, 0.12);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    color: var(--tty-primary);
    cursor: pointer;
    transition: all 0.15s ease;
  }

  .tty-si-move-trigger:hover {
    background: var(--tty-primary);
    border-color: var(--tty-primary);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 95, 95, 0.2);
  }

  .tty-si-move-trigger i {
    font-size: 14px;
  }

  .tty-si-move-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 200px;
    background: white;
    border: 1px solid var(--tty-border-light);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    z-index: 100;
    overflow: hidden;
  }

  .tty-si-move-dropdown.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .tty-si-move-header {
    padding: 12px 16px;
    background: linear-gradient(135deg, var(--tty-primary-bg) 0%, rgba(0, 95, 95, 0.05) 100%);
    border-bottom: 1px solid var(--tty-border-light);
    font-size: 12px;
    font-weight: 600;
    color: var(--tty-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .tty-si-move-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: all 0.15s ease;
    position: relative;
  }

  .tty-si-move-option::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--tty-primary);
    transform: scaleY(0);
    transition: transform 0.15s ease;
  }

  .tty-si-move-option:hover {
    background: var(--tty-primary-bg);
    padding-left: 20px;
  }

  .tty-si-move-option:hover::before {
    transform: scaleY(1);
  }

  .tty-si-move-option i:first-child {
    font-size: 14px;
    color: var(--tty-primary);
    width: 20px;
  }

  .tty-si-move-option span {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
    color: var(--tty-text-primary);
  }

  .tty-si-move-option i:last-child {
    font-size: 12px;
    color: var(--tty-text-secondary);
    opacity: 0;
    transform: translateX(-4px);
    transition: all 0.15s ease;
  }

  .tty-si-move-option:hover i:last-child {
    opacity: 1;
    transform: translateX(0);
  }

  .tty-si-move-option.is-moving {
    background: var(--tty-primary);
    color: white;
    pointer-events: none;
  }

  .tty-si-move-option.is-moving span,
  .tty-si-move-option.is-moving i {
    color: white;
  }
}

/* Dark Mode Adjustments */
[data-theme="dark"] .tty-move-overlay.is-open {
  background: rgba(0, 0, 0, 0.85);
}

[data-theme="dark"] .tty-move-overlay .tty-move-panel {
  background: var(--tty-bg-primary-dark);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .tty-move-option-btn {
  background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .tty-move-option-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--tty-primary);
}

[data-theme="dark"] .tty-si-move-dropdown {
  background: var(--tty-bg-primary-dark);
  border-color: var(--tty-border-dark);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

/* Improve Touch Targets */
@media (max-width: 768px) {

  .tty-move-option-btn {
    min-height: 60px;
  }
}

/* ---------- Compare Tab Specific Styles ---------- */

/* Hide search bar when compare tab is active */
.tty-si-mobile.compare-active .tty-si-mobile-search,
.tty-si-mobile.compare-active  .tty-si-mobile-toolbar,
.tty-si-mobile.compare-active  .tty-si-mobile-subtabs {
  display: none;
}

/* Adjust subtabs container when compare is active for better spacing */
.tty-si-mobile.compare-active .tty-si-mobile-subtabs {
  margin-top: 0;
}

/* Compare info display (not a button) */
.tty-si-compare-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 8px;
  background: white;
  border-radius: 12px;
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  font-size: 11px;
  font-weight: 600;
  color: var(--tty-primary);
  cursor: default;
  user-select: none;
}

.tty-si-compare-info i {
  font-size: 20px;
  color: var(--tty-primary);
}

/* Badge positioning for compare info */
.tty-si-compare-info .tty-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  background: var(--tty-secondary);
  color: white;
  font-size: 11px;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* Large count adjustment */
.tty-si-compare-info .tty-badge.large-count {
  min-width: 24px;
  padding: 0 6px;
  font-size: 9px;
}

/* More content space when search is hidden in compare */
.tty-si-mobile.compare-active .tty-si-mobile-content {
  margin-top: 0;
}

/* Dark mode adjustments for compare */
[data-theme="dark"] .tty-si-compare-info {
  background: rgba(0,95,95,.12);
  color: var(--tty-primary);
}

[data-theme="dark"] .tty-si-compare-info i {
  color: var(--tty-primary);
}

/* ---------- Compare Skeleton Loading (Mobile) ---------- */

/* For compare grid, use grid layout like real compare items */
.tty-si-compare-grid .tty-si-skeleton-wrapper.loading {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

/* Compare skeleton item - matches tty-si-compare-item structure */
.tty-si-compare-skeleton-item {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 400px;
}

.tty-si-compare-skeleton-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  height: 100%;
  width: 150%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  animation: skeleton-shimmer 1.5s infinite;
  z-index: 1;
}

/* Compare image skeleton - large square like real compare items */
.tty-si-compare-skeleton-item .skeleton-compare-image {
  width: 100%;
  height: 100px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 0;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

/* Compare title skeleton */
.tty-si-compare-skeleton-item .skeleton-compare-title {
  height: 28px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  width: 90%;
  margin: 15px 15px 10px 15px;
  position: relative;
  z-index: 2;
}

/* Medical indicators skeleton */
.tty-si-compare-skeleton-item .skeleton-indicators {
  display: flex;
  gap: 8px;
  padding: 12px 15px;
  background: linear-gradient(135deg, rgba(0, 95, 95, 0.03) 0%, rgba(0, 95, 95, 0.06) 100%);
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
  z-index: 2;
}

.tty-si-compare-skeleton-item .skeleton-indicator {
  width: 37px;
  height: 38px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  flex-shrink: 0;
}

/* Compare specs skeleton */
.tty-si-compare-skeleton-item .skeleton-specs {
  flex: 1;
  padding: 0px 15px 15px 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  z-index: 2;
}

.tty-si-compare-skeleton-item .skeleton-spec-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
}

.tty-si-compare-skeleton-item .skeleton-spec-row:last-child {
  border-bottom: none;
}

.tty-si-compare-skeleton-item .skeleton-spec-label {
  width: 60px;
  height: 12px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 4px;
}

.tty-si-compare-skeleton-item .skeleton-spec-value {
  width: 80px;
  height: 16px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 4px;
}

/* Compare actions skeleton */
.tty-si-compare-skeleton-item .skeleton-actions {
  display: flex;
  gap: 20px;
  padding: 15px;
  background: #f8f9fa;
  margin-top: auto;
  position: relative;
  z-index: 2;
}

.tty-si-compare-skeleton-item .skeleton-action-btn {
  flex: 1;
  height: 36px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

/* Dark mode adjustments for compare skeleton */
[data-theme="dark"] .tty-si-compare-skeleton-item {
  background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .tty-si-compare-skeleton-item .skeleton-compare-image,
[data-theme="dark"] .tty-si-compare-skeleton-item .skeleton-compare-title,
[data-theme="dark"] .tty-si-compare-skeleton-item .skeleton-indicator,
[data-theme="dark"] .tty-si-compare-skeleton-item .skeleton-spec-label,
[data-theme="dark"] .tty-si-compare-skeleton-item .skeleton-spec-value,
[data-theme="dark"] .tty-si-compare-skeleton-item .skeleton-action-btn {
  background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .tty-si-compare-skeleton-item .skeleton-spec-label {
  background: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .tty-si-compare-skeleton-item .skeleton-actions {
  background: rgba(255, 255, 255, 0.02);
}

[data-theme="dark"] .tty-si-compare-skeleton-item .skeleton-indicators {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.04) 100%);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .tty-si-compare-skeleton-item::before {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
}


/* In saved-core.css of saved-modal.css */
.tty-si-content.is-loading {
  position: relative;
  opacity: 0.7;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.tty-si-content.is-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  border: 3px solid rgba(0,0,0,0.1);
  border-top-color: #333;
  border-radius: 50%;
  animation: tty-spin 0.8s linear infinite;
}

@keyframes tty-spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Voor mobile */
.tty-si-mobile-content.is-loading {
  position: relative;
  opacity: 0.7;
  pointer-events: none;
}

.tty-si-mobile-content.is-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  border: 3px solid rgba(0,0,0,0.1);
  border-top-color: #333;
  border-radius: 50%;
  animation: tty-spin 0.8s linear infinite;
}