:root {
  --mc-bg: #F5FAFA;
  --mc-surface: #FFFFFF;
  --mc-surface-alt: #EAF4F3;
  --mc-text: #172624;
  --mc-text-muted: #5A726F;
  --mc-border: #D8E4E2;
  --mc-primary: #0E695F;
  --mc-primary-hover: #0A4A43;
  --mc-accent: #2C7B9D;
}
.mc-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.mc-drawer.mc-visible {
  visibility: visible;
  opacity: 1;
}
.mc-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(17, 66, 61, 0.45);
  backdrop-filter: blur(2px);
}
.mc-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 440px;
  height: 100%;
  max-height: 100vh;
  background: var(--mc-surface);
  color: var(--mc-text);
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  display: flex;
  flex-direction: column;
}
.mc-drawer.mc-visible .mc-panel {
  transform: translateX(0);
}
.mc-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid var(--mc-border);
  background: var(--mc-surface);
}
.mc-panel-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--mc-text);
}
.mc-close-btn {
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: var(--mc-text-muted);
  cursor: pointer;
  padding: 0 4px;
  transition: color 0.2s ease;
}
.mc-close-btn:hover {
  color: var(--mc-text);
}
.mc-panel-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
}
.mc-cart-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}
.mc-cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--mc-bg);
  border: 1px solid var(--mc-border);
  border-radius: 8px;
}
.mc-item-thumb {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  background: var(--mc-surface);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mc-item-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.mc-item-info {
  flex: 1 1 auto;
  min-width: 0;
}
.mc-item-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--mc-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mc-item-price {
  font-size: 0.85rem;
  color: var(--mc-text-muted);
  margin-top: 4px;
  white-space: nowrap;
}
.mc-item-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.mc-qty-pill {
  display: flex;
  align-items: center;
  background: var(--mc-surface);
  border: 1px solid var(--mc-border);
  border-radius: 20px;
  overflow: hidden;
}
.mc-qty-btn {
  border: none;
  background: transparent;
  width: 24px;
  height: 24px;
  cursor: pointer;
  color: var(--mc-text);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mc-qty-val {
  padding: 0 6px;
  font-size: 0.85rem;
  font-weight: 600;
}
.mc-item-subtotal {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--mc-primary);
  white-space: nowrap;
  min-width: 96px;
  text-align: right;
}
.mc-item-remove {
  background: transparent;
  border: none;
  color: var(--mc-text-muted);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0 4px;
}
.mc-item-remove:hover {
  color: #d9534f;
}
.mc-panel-summary {
  margin-top: auto;
  border-top: 1px solid var(--mc-border);
  padding-top: 16px;
}
.mc-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--mc-text);
}
.mc-summary-value {
  color: var(--mc-primary);
  white-space: nowrap;
}
.mc-btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 6px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: background 0.2s ease;
}
.mc-btn-block {
  display: block;
  width: 100%;
  margin-bottom: 8px;
}
.mc-btn-primary {
  background: var(--mc-primary);
  color: #ffffff;
}
.mc-btn-primary:hover {
  background: var(--mc-primary-hover);
}
.mc-btn-secondary {
  background: var(--mc-surface-alt);
  color: var(--mc-primary);
}
.mc-btn-secondary:hover {
  background: var(--mc-border);
}
.mc-btn-link {
  background: none;
  border: none;
  color: var(--mc-primary);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0;
  margin-bottom: 8px;
}
.mc-empty-state {
  text-align: center;
  padding: 40px 10px;
  color: var(--mc-text-muted);
}
.mc-empty-icon {
  margin-bottom: 12px;
  color: var(--mc-text-muted);
}
.mc-empty-btn {
  margin-top: 16px;
}
.mc-form-group {
  margin-bottom: 12px;
}
.mc-form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--mc-text);
}
.mc-form-control {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--mc-border);
  border-radius: 6px;
  background: var(--mc-bg);
  color: var(--mc-text);
  font-size: 0.9rem;
  box-sizing: border-box;
}
.mc-form-row {
  display: flex;
  gap: 8px;
}
.mc-col {
  flex: 1;
}
.mc-col-8 {
  flex: 8;
}
.mc-col-4 {
  flex: 4;
}
.mc-shipping-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}
.mc-radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  cursor: pointer;
}
.mc-checkout-review {
  background: var(--mc-surface-alt);
  padding: 12px;
  border-radius: 6px;
  margin: 16px 0;
}
.mc-review-title {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 8px;
}
.mc-checkout-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 4px;
}
.mc-checkout-line span:last-child {
  white-space: nowrap;
  padding-left: 12px;
  text-align: right;
}
.mc-review-total {
  border-top: 1px dashed var(--mc-border);
  margin-top: 8px;
  padding-top: 8px;
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  color: var(--mc-primary);
}
.mc-review-total .mc-checkout-order-total {
  white-space: nowrap;
  padding-left: 12px;
  text-align: right;
}
.mc-consent-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.85rem;
  margin-bottom: 14px;
}
.mc-consent-wrapper input {
  margin-top: 3px;
}
.mc-consent-wrapper a {
  color: var(--mc-primary);
  text-decoration: underline;
}
.mc-error-msg {
  background: #ffebe8;
  color: #c52707;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 0.85rem;
  margin-bottom: 12px;
}
.mc-success-view {
  text-align: center;
  padding: 40px 10px;
}
.mc-success-icon {
  margin-bottom: 16px;
}
.mc-success-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--mc-primary);
  margin-bottom: 8px;
}
.mc-success-text {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--mc-text);
  margin-bottom: 8px;
}
.mc-success-sub {
  color: var(--mc-text-muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
}
.mc-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--mc-surface);
  border: 1px solid var(--mc-border);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 100000;
  transform: translateY(-30px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}
.mc-toast.mc-toast-show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.mc-toast-thumb {
  width: 36px;
  height: 36px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
}
.mc-toast-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mc-toast-msg {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--mc-text);
}
.mc-cart-indicator-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--mc-primary);
  color: #fff;
  border-radius: 12px;
  padding: 2px 6px;
  font-size: 0.75rem;
  font-weight: 700;
  min-width: 18px;
  text-align: center;
  line-height: 1;
}
@media (max-width: 576px) {
  .mc-panel {
    max-width: 100%;
  }
  .mc-cart-item {
    flex-direction: column;
    align-items: flex-start;
    position: relative;
  }
  .mc-item-thumb {
    width: 100%;
    height: 120px;
  }
  .mc-item-actions {
    width: 100%;
    justify-content: space-between;
    margin-top: 8px;
  }
  .mc-item-remove {
    position: absolute;
    top: 8px;
    right: 8px;
  }
}