body.ct-scroll-locked {
  overflow: hidden !important;
}

.ct-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1060;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  padding: 1rem;
  box-sizing: border-box;
}

.ct-modal.ct-modal-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.ct-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(17, 34, 25, 0.65);
  backdrop-filter: blur(2px);
  z-index: 1;
}

.ct-modal-dialog {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.ct-modal.ct-modal-open .ct-modal-dialog {
  transform: translateY(0) scale(1);
}

.ct-modal-content {
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  background-color: #FFFFFF;
  border: 1px solid #D8D1C0;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(17, 34, 25, 0.2);
  overflow: hidden;
}

.ct-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #D8D1C0;
  background-color: #FFFFFF;
  flex-shrink: 0;
}

.ct-modal-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  color: #1B241E;
}

.ct-modal-close-btn {
  background: transparent;
  border: none;
  font-size: 1.75rem;
  line-height: 1;
  color: #5C675F;
  cursor: pointer;
  padding: 0 0.25rem;
  border-radius: 4px;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.ct-modal-close-btn:hover {
  color: #1B241E;
  background-color: #EBE6D9;
}

.ct-modal-body {
  padding: 1.25rem;
  overflow-y: auto;
  flex: 1 1 auto;
  background-color: #F5F2EA;
}

.ct-cart-item {
  background-color: #FFFFFF;
  border: 1px solid #D8D1C0;
  border-radius: 8px;
  overflow: hidden;
}

.ct-cart-item-body {
  display: flex;
  flex-direction: column;
}

.ct-cart-item-image-wrapper {
  width: 100%;
  height: 160px;
  background-color: #EAE5D8;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ct-cart-item-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ct-cart-item-info {
  padding: 0.85rem 1rem;
}

.ct-cart-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.ct-cart-item-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: #1B241E;
}

.ct-cart-item-remove {
  background: transparent;
  border: none;
  color: #7E8A81;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s ease;
}

.ct-cart-item-remove:hover {
  color: #9E743A;
}

.ct-cart-item-pricing {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.ct-cart-item-unit {
  color: #5C675F;
}

.ct-cart-item-total {
  font-weight: 700;
  color: #1F422E;
}

.ct-cart-item-actions {
  display: flex;
  justify-content: flex-start;
}

.ct-qty-pill {
  display: inline-flex;
  align-items: center;
  background-color: #EAE5D8;
  border: 1px solid #D8D1C0;
  border-radius: 999px;
  padding: 2px 6px;
}

.ct-qty-btn {
  background: transparent;
  border: none;
  width: 24px;
  height: 24px;
  line-height: 1;
  font-size: 1rem;
  font-weight: 600;
  color: #1F422E;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.ct-qty-btn:hover {
  background-color: #D8D1C0;
  color: #163122;
}

.ct-qty-display {
  min-width: 28px;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1B241E;
}

.ct-modal-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid #D8D1C0;
  background-color: #FFFFFF;
  flex-shrink: 0;
}

.ct-summary-label {
  font-size: 0.95rem;
  color: #5C675F;
  font-weight: 500;
}

.ct-summary-value {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1F422E;
}

.ct-btn-primary {
  background-color: #1F422E !important;
  color: #FFFFFF !important;
  border: 1px solid #1F422E !important;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.ct-btn-primary:hover {
  background-color: #163122 !important;
  border-color: #163122 !important;
  color: #FFFFFF !important;
}

.ct-btn-secondary {
  background-color: #EAE5D8 !important;
  color: #1B241E !important;
  border: 1px solid #D8D1C0 !important;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.ct-btn-secondary:hover {
  background-color: #DDD6C6 !important;
  color: #112219 !important;
}

.ct-cart-counter-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #FFFFFF;
  background-color: #9E743A;
  border-radius: 999px;
  line-height: 1;
  margin-left: 6px;
  vertical-align: middle;
}

.ct-cart-empty-text {
  color: #5C675F;
  font-size: 0.95rem;
}

@media (max-width: 576px) {
  .ct-modal {
    padding: 0.5rem;
  }
  .ct-modal-dialog {
    max-height: 95vh;
  }
  .ct-modal-content {
    max-height: 95vh;
  }
  .ct-cart-item-image-wrapper {
    height: 130px;
  }
}