/* Theme6 / storefront: post “add to cart” choice (replaces native confirm). */
.orca-ccm-root {
  position: fixed;
  inset: 0;
  z-index: 100000300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(1rem, env(safe-area-inset-top, 0px)) max(1rem, env(safe-area-inset-right, 0px))
    max(1rem, env(safe-area-inset-bottom, 0px)) max(1rem, env(safe-area-inset-left, 0px));
  box-sizing: border-box;
}

.orca-ccm-root[hidden] {
  display: none !important;
}

body.orca-ccm-open {
  overflow: hidden;
}

.orca-ccm-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(15, 23, 42, 0.48);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.orca-ccm-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  margin: 0;
  padding: 1.35rem 1.35rem 1.15rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.18), 0 2px 12px rgba(15, 23, 42, 0.06);
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  text-align: start;
  animation: orca-ccm-in 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes orca-ccm-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.orca-ccm-close {
  position: absolute;
  top: 0.65rem;
  inset-inline-end: 0.65rem;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.05);
  color: #64748b;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background 0.2s ease, color 0.2s ease;
}

.orca-ccm-close:hover,
.orca-ccm-close:focus-visible {
  background: rgba(42, 132, 137, 0.12);
  color: #2a8489;
  outline: none;
}

.orca-ccm-title {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #0f172a;
  margin: 0 2.25rem 0.5rem 0;
  padding: 0;
  line-height: 1.35;
}

html[dir="rtl"] .orca-ccm-title {
  margin: 0 0 0.5rem 2.25rem;
}

.orca-ccm-title[hidden] {
  display: none !important;
}

.orca-ccm-message {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #475569;
  margin: 0 0 1.25rem;
}

.orca-ccm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

html[dir="rtl"] .orca-ccm-actions {
  justify-content: flex-start;
}

.orca-ccm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1.15rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.orca-ccm-btn:focus-visible {
  outline: 2px solid rgba(42, 132, 137, 0.45);
  outline-offset: 2px;
}

.orca-ccm-btn--outline {
  background: #fff;
  border-color: rgba(42, 132, 137, 0.45);
  color: #2a8489;
}

.orca-ccm-btn--outline:hover {
  background: rgba(42, 132, 137, 0.08);
  border-color: #2a8489;
}

.orca-ccm-btn--primary {
  background: #2a8489;
  color: #fff;
  border-color: #2a8489;
}

.orca-ccm-btn--primary:hover {
  background: #236d72;
  border-color: #236d72;
}

.orca-ccm-btn:active {
  transform: scale(0.98);
}

@media (max-width: 400px) {
  .orca-ccm-dialog {
    padding: 1.15rem 1rem 1rem;
  }

  .orca-ccm-actions {
    flex-direction: column-reverse;
  }

  .orca-ccm-actions .orca-ccm-btn {
    width: 100%;
  }
}
