/* Root wrapper (invisible by default) */
.v2-success-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.v2-success-modal--visible {
  display: block;
}

/* Backdrop */
.v2-success-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

/* Dialog shell */
.v2-success-modal__dialog {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 92%;
  max-width: 480px;
  background: #ffffff;
  border-radius: 10px;
  padding: 24px 20px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.18);
  animation: v2-success-modal-fadein 0.25s ease;
}

@keyframes v2-success-modal-fadein {
  from { opacity: 0; transform: translate(-50%, -46%); }
  to   { opacity: 1; transform: translate(-50%, -50%); }
}

/* Close button */
.v2-success-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
  color: #555;
}

/* Success icon */
.v2-success-modal__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #e8f5e9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.v2-success-modal__icon-inner {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #2e7d32;
  mask: url('data:image/svg+xml;utf8,<svg fill="white" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M20.285 6.709l-11.025 11.025-5.546-5.546 1.414-1.414 4.132 4.132 9.611-9.611z"/></svg>') center / contain no-repeat;
}

/* Title */
.v2-success-modal__title {
  text-align: center;
  font-size: 22px;
  font-weight: 600;
  margin: 12px 0 16px;
  color: #222;
}

/* Body */
.v2-success-modal__body {
  font-size: 15px;
  color: #444;
  line-height: 1.45;
  margin-bottom: 20px;
  max-height: 260px;
  overflow-y: auto;
}

/* CTA button group */
.v2-success-modal__cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 24px;
}

.v2-success-modal__cta-btn {
  padding: 8px 14px;
  background: #f4f4f4;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s;
}

.v2-success-modal__cta-btn:hover {
  background: #e8e8e8;
}

/* Checkout button (full width) */
.v2-success-modal__checkout-btn {
  width: 100%;
  padding: 12px 0;
  background: #004c93;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}

.v2-success-modal__checkout-btn:hover {
  opacity: 0.9;
}
