.ccpm-pop {
  position: fixed;
  z-index: 999999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(16px);
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease,
    transform 0.25s ease;
}

.ccpm-pop.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.ccpm-pop--bottom-right {
  right: 24px;
  bottom: 24px;
}

.ccpm-pop--bottom-left {
  left: 24px;
  bottom: 24px;
}

.ccpm-pop--center {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -46%);
}

.ccpm-pop--center.is-visible {
  transform: translate(-50%, -50%);
}

.ccpm-pop__inner {
  position: relative;
  width: min(360px, calc(100vw - 32px));
  padding: 24px 24px 22px;
  border-radius: 24px;
  background: #ffffff;
  color: #00496e;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(0, 73, 110, 0.08);
}

.ccpm-pop__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #00496e;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.ccpm-pop__close:hover,
.ccpm-pop__close:focus {
  background: rgba(0, 73, 110, 0.08);
  outline: none;
}

.ccpm-pop__title {
  margin: 0 32px 10px 0;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 800;
  color: #00496e;
}

.ccpm-pop__message {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.55;
  color: #263b45;
}

.ccpm-pop__actions {
  margin: 0;
}

.ccpm-pop__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 20px;
  border-radius: 999px;
  background: #00a63c;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
  box-shadow: 0 8px 18px rgba(0, 166, 60, 0.22);
}

.ccpm-pop__button:hover,
.ccpm-pop__button:focus {
  color: #ffffff;
  background: #008f34;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 166, 60, 0.28);
}

@media (max-width: 768px) {
  .ccpm-pop {
    left: 16px;
    right: 16px;
    bottom: 16px;
    top: auto;
    transform: translateY(16px);
  }

  .ccpm-pop.is-visible {
    transform: translateY(0);
  }

  .ccpm-pop--center,
  .ccpm-pop--center.is-visible {
    top: auto;
    left: 16px;
    right: 16px;
    bottom: 16px;
    transform: translateY(0);
  }

  .ccpm-pop__inner {
    width: 100%;
    padding: 22px 20px 20px;
    border-radius: 20px;
  }

  .ccpm-pop__title {
    font-size: 18px;
  }

  .ccpm-pop__message {
    font-size: 14px;
  }

  .ccpm-pop__button {
    width: 100%;
  }
}
