.mc-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.mc-modal-overlay.mc-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.mc-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(30, 27, 75, 0.45);
  backdrop-filter: blur(4px);
}
.mc-modal-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  border: 1px solid rgba(106, 76, 255, 0.12);
  box-shadow: 0 14px 40px rgba(59, 130, 246, 0.12);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}
.mc-modal-overlay.mc-active .mc-modal-dialog {
  transform: translateY(0) scale(1);
}
.mc-modal-header {
  background-color: #FAFAFF;
  border-color: rgba(106, 76, 255, 0.12) !important;
}
.mc-modal-title {
  color: #1E1B4B;
  font-size: 1.1rem;
}
.mc-close-icon-btn {
  color: #64748B;
  background: transparent;
  border: none;
  line-height: 1;
  font-size: 1.1rem;
  transition: color 0.15s ease;
}
.mc-close-icon-btn:hover {
  color: #1E1B4B;
}
.mc-modal-body {
  overflow-y: auto;
  flex: 1 1 auto;
  max-height: calc(90vh - 180px);
  background: #FFFFFF;
}
.mc-modal-footer {
  background-color: #FAFAFF;
  border-color: rgba(106, 76, 255, 0.12) !important;
}
.mc-total-amount {
  color: #1E1B4B;
}
.mc-cart-row {
  background: #F3F5FC;
  border: 1px solid rgba(106, 76, 255, 0.08);
  transition: background-color 0.15s ease;
}
.mc-cart-row:hover {
  background: #EEF2FF;
}
.mc-img-wrap {
  width: 52px;
  height: 52px;
  background: #FFFFFF;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(106, 76, 255, 0.1);
}
.mc-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mc-item-title {
  font-size: 0.92rem;
  max-width: 180px;
}
.mc-item-price {
  color: #64748B;
}
.mc-qty-control {
  background: #FFFFFF;
  border-color: rgba(106, 76, 255, 0.18) !important;
  height: 32px;
}
.mc-qty-btn {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: #6A4CFF;
  border: none;
}
.mc-qty-btn:hover {
  color: #3B82F6;
}
.mc-qty-num {
  font-size: 0.85rem;
  min-width: 20px;
  text-align: center;
}
.mc-remove-btn {
  border: none;
  background: transparent;
  font-size: 0.95rem;
  transition: transform 0.15s ease;
}
.mc-remove-btn:hover {
  transform: scale(1.1);
}
.mc-btn-primary {
  background: linear-gradient(135deg, #6A4CFF 0%, #3B82F6 100%);
  color: #FFFFFF !important;
  border: none;
  box-shadow: 0 6px 20px rgba(106, 76, 255, 0.25);
}
.mc-btn-primary:hover {
  color: #FFFFFF;
  opacity: 0.94;
}
.mc-btn-accent {
  background: linear-gradient(135deg, #3B82F6 0%, #06B6D4 100%);
  color: #FFFFFF;
  border: none;
}
.mc-btn-light {
  background: #FFFFFF;
  color: #64748B;
  border: 1px solid rgba(106, 76, 255, 0.15);
}
.mc-btn-light:hover {
  background: #EEF2FF;
  color: #1E1B4B;
}
.mc-badge-indicator {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  font-size: 0.65rem;
  font-weight: 700;
  background: linear-gradient(135deg, #6A4CFF 0%, #3B82F6 100%);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}
.mc-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1060;
  background: #1E1B4B;
  color: #FFFFFF;
  padding: 10px 18px;
  border-radius: 50rem;
  box-shadow: 0 8px 30px rgba(106, 76, 255, 0.25);
  font-size: 0.88rem;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}
.mc-toast.mc-toast-show {
  opacity: 1;
  transform: translateY(0);
}

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

  .mc-modal-dialog {
    max-width: none;
    max-height: 92vh;
    border-radius: 18px 18px 0 0 !important;
  }

  .mc-modal-body {
    padding: 12px !important;
  }

  .mc-cart-row {
    display: flex !important;
    flex-direction: column;
    align-items: stretch !important;
    gap: 12px;
    width: 100%;
    min-width: 0;
  }

  .mc-cart-row > .d-flex:first-child {
    width: 100%;
    min-width: 0;
    margin-right: 0 !important;
  }

  .mc-cart-row .mc-item-info {
    min-width: 0;
    flex: 1 1 auto;
  }

  .mc-cart-row .mc-item-title {
    max-width: none;
  }

  .mc-cart-row > .d-flex:last-child {
    width: 100%;
    margin-left: 0 !important;
    justify-content: space-between;
  }

  .mc-cart-row .mc-qty-control {
    margin-right: 0 !important;
  }
}
