.vs-applied-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 8px;
}

.vs-tnc-btn {
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  line-height: 1.3;
  white-space: nowrap;
}

.vs-tnc-btn:hover, .vs-tnc-btn:focus {
  color: var(--color-primary);
  text-decoration: underline;
}

.vs-applied-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  padding: 7px 9px;
  border-radius: 10px;
  background: rgba(var(--color-primary-rgb, 59, 130, 246), 0.08);
  box-sizing: border-box;
  width: 100%;
  transition: box-shadow 0.2s;
}

.ltr .vs-applied-item {
  border-left: 3px solid var(--color-primary);
}

.rtl .vs-applied-item {
  border-right: 3px solid var(--color-primary);
}

[dir] .vs-applied-item {
  border: 1px solid rgba(var(--color-primary-rgb, 59, 130, 246), 0.14);
}

.vs-applied-item:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}

.vs-applied-item .vs-applied-icon {
  width: 26px;
  height: 26px;
  background: var(--color-primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.vs-applied-item .vs-applied-icon i {
  color: #fff;
  font-size: 13px;
}

.vs-applied-item .vs-applied-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.vs-applied-item .vs-applied-name {
  font-size: 11px;
  font-weight: 700;
  color: #0f172a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.3;
}

.vs-applied-item .vs-applied-desc {
  font-size: 10px;
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1.2;
}

.vs-applied-item .vs-applied-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.vs-applied-item .vs-remove-btn {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 16px;
  padding: 2px 3px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.vs-applied-item .vs-remove-btn:hover {
  color: #ef4444;
  background: #fee2e2;
}

.vs-trigger-btn {
  width: 100%;
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px dashed;
  background: transparent;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  min-height: 42px;
}

.vs-trigger-btn:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.vs-trigger-btn__text {
  min-width: 0;
  flex: 1;
}

.ltr .vs-trigger-btn__text {
  text-align: left;
}

.rtl .vs-trigger-btn__text {
  text-align: right;
}

.vs-trigger-btn__count {
  flex-shrink: 0;
  border-radius: 999px;
  padding: 2px 7px;
  background: rgba(var(--color-primary-rgb, 59, 130, 246), 0.12);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
}

.vs-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: vsFadeIn 0.2s ease;
}

@keyframes vsFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes vsSlideUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.vs-modal {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  animation: vsSlideUp 0.25s ease;
}

.vs-modal-header {
  border-bottom: 1px solid #f1f5f9;
  background: #fff;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 10;
}

.vs-modal-header h5 {
  color: #1e293b;
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.vs-modal-close {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #94a3b8;
  line-height: 1;
  padding: 4px;
  border-radius: 6px;
  transition: all 0.2s;
}

.vs-modal-close:hover {
  background: #f1f5f9;
  color: #475569;
}

.vs-modal-body {
  background: #f8fafc;
  padding: 14px 16px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.vs-modal-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vs-card {
  cursor: pointer;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  display: flex;
  align-items: stretch;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  margin-bottom: 2px;
}

.vs-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.vs-card.vs-card--applied {
  border-color: var(--color-primary);
  background: #eff6ff;
}

.vs-card.vs-card--disabled {
  opacity: 0.58;
  filter: grayscale(65%);
  cursor: not-allowed;
}

.vs-card.vs-card--disabled:hover {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  transform: none;
}

.vs-card.vs-card--disabled .vs-card-action {
  pointer-events: none;
}

.vs-card input[type=checkbox],
.vs-card input[type=radio] {
  cursor: pointer;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  accent-color: var(--color-primary);
  margin: 0;
}

.vs-card-not-stackable {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  color: #ef4444;
  background: #fee2e2;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
  border: 1px solid #fca5a5;
}

.vs-card-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: -moz-fit-content;
  width: fit-content;
  font-size: 10px;
  font-weight: 700;
  color: var(--color-primary);
  background: rgba(var(--color-primary-rgb, 0, 0, 0), 0.08);
  padding: 3px 8px;
  border-radius: 999px;
  margin-bottom: 6px;
}

.vs-card-status--inactive {
  color: #64748b;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}

.vs-card-stub {
  width: 80px;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 10px 8px;
  position: relative;
  flex-shrink: 0;
}

.ltr .vs-card-stub {
  border-right: 1px dashed rgba(255, 255, 255, 0.5);
}

.rtl .vs-card-stub {
  border-left: 1px dashed rgba(255, 255, 255, 0.5);
}

.vs-card-stub::after {
  content: "";
  position: absolute;
  top: 0;
  height: 100%;
  width: 8px;
  background-size: 8px 12px;
  background-repeat: repeat-y;
  z-index: 1;
}

.ltr .vs-card-stub::after {
  right: -4px;
  background-image: radial-gradient(circle at right, transparent 3px, var(--color-primary) 4px);
}

.rtl .vs-card-stub::after {
  left: -4px;
  background-image: radial-gradient(circle at left, transparent 3px, var(--color-primary) 4px);
}

.vs-card-stub i {
  font-size: 24px;
  margin-bottom: 4px;
  opacity: 0.9;
}

.vs-card-stub .vs-stub-text {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}

.ltr .vs-card.vs-card--applied .vs-card-stub::after {
  background-image: radial-gradient(circle at right, #eff6ff 3px, var(--color-primary) 4px);
}

.rtl .vs-card.vs-card--applied .vs-card-stub::after {
  background-image: radial-gradient(circle at left, #eff6ff 3px, var(--color-primary) 4px);
}

.vs-card-main {
  flex: 1;
  padding: 11px 12px;
  display: flex;
  align-items: center;
  min-width: 0;
  background: transparent;
  z-index: 2;
}

.vs-card-content {
  flex: 1;
  min-width: 0;
}

.ltr .vs-card-content {
  padding-right: 12px;
}

.rtl .vs-card-content {
  padding-left: 12px;
}

.vs-card-action {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ltr .vs-card-action {
  padding-left: 8px;
  border-left: 1px solid #f1f5f9;
}

.rtl .vs-card-action {
  padding-right: 8px;
  border-right: 1px solid #f1f5f9;
}

.vs-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.vs-card-title {
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 2px;
}

.vs-card-stackable {
  font-size: 9px;
  font-weight: 700;
  color: #059669;
  background: #d1fae5;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.4px;
  flex-shrink: 0;
  white-space: nowrap;
}

.vs-card-desc {
  font-size: 11px;
  color: #64748b;
  margin: 4px 0 0;
  line-height: 1.4;
}

.vs-card-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 4px 10px;
  border-radius: 5px;
  margin-top: 8px;
  font-size: 11px;
}

.vs-card-meta .vs-meta-label {
  font-weight: 500;
  color: #64748b;
}

.vs-card-meta .vs-meta-value {
  font-weight: 700;
  color: #334155;
  font-size: 12px;
}

.vs-empty {
  padding: 28px 16px;
  text-align: center;
  color: #94a3b8;
  background: #fff;
  border-radius: 10px;
  border: 1px dashed #cbd5e1;
}

.vs-empty i {
  font-size: 28px;
  color: #cbd5e1;
  margin-bottom: 10px;
  display: block;
}

.vs-empty p {
  font-size: 13px;
  margin: 0;
  font-weight: 500;
}

@media (max-width: 480px) {
  .vs-modal-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .vs-modal {
    max-width: 100%;
    border-radius: 18px 18px 0 0;
    max-height: 88vh;
    min-height: 56vh;
  }

  .vs-modal-header {
    padding: 12px 14px;
  }

  .vs-modal-header h5 {
    font-size: 14px;
  }

  .vs-modal-body {
    padding: 12px;
  }

  .vs-applied-list {
    gap: 4px;
  }

  .vs-applied-item {
    padding: 6px 8px;
    gap: 6px;
  }

  .vs-applied-item .vs-applied-icon {
    width: 24px;
    height: 24px;
  }

  .vs-applied-item .vs-applied-name {
    font-size: 10px;
  }

  .vs-applied-item .vs-applied-desc {
    font-size: 9px;
  }

  .vs-applied-item .vs-remove-btn {
    font-size: 15px;
  }

  .vs-trigger-btn {
    padding: 8px 10px;
    min-height: 40px;
    gap: 5px;
    font-size: 11px;
  }

  .vs-trigger-btn__count {
    font-size: 9px;
    padding: 2px 6px;
  }

  .vs-card-stub {
    width: 52px;
    padding: 6px 4px;
  }

  .vs-card-stub i {
    font-size: 20px;
  }

  .vs-card-stub .vs-stub-text {
    font-size: 9px;
  }

  .vs-card-main {
    padding: 8px 9px;
  }

  .vs-card-title {
    font-size: 12px;
    margin-bottom: 0;
  }

  .vs-card-not-stackable {
    font-size: 8px;
    padding: 1px 4px;
    margin-bottom: 2px;
  }

  .vs-card-desc {
    font-size: 9px !important;
  }

  .vs-card-meta {
    padding: 1px 4px;
    font-size: 9px;
  }

  .vs-card-meta .vs-meta-value {
    font-size: 9px;
  }

  .flash-sale-progress {
    margin-top: 4px !important;
  }

  .vs-card input[type=checkbox],
  .vs-card input[type=radio] {
    width: 16px;
    height: 16px;
  }
}