﻿:root {
  --cc-primary-color: #ffd80a;
  --cc-primary-color-contrast: #000;
  --cc-font-size: 14px;
  --cc-font-size-lg: 14px;
  --cc-btn-font-size: 12px;
  --cc-border-radius: 12px;
}

.cc-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.cc-modal-content {
  background: #fff;
  border-radius: var(--cc-border-radius);
  max-width: 520px;
  width: 100%;
  padding: 2.5rem;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.25);
  animation: fadeIn 0.3s ease-in-out;
}

.cc-modal h2 {
  font-size: 1.75rem;
  margin-bottom: 1.2rem;
  font-weight: 700;
  color: #222;
}

.cc-modal p {
  font-size: var(--cc-font-size-lg);
  line-height: 1.6;
  margin-bottom: 2rem;
  color: #333;
}

.cc-modal .cc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 1rem;
}

.cc-modal .cc-btn {
  padding: 0.85rem 1.6rem;
  border: none;
  border-radius: 6px;
  font-size: var(--cc-btn-font-size);
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.cc-modal .cc-btn-primary {
  background-color: var(--cc-primary-color);
  color: var(--cc-primary-color-contrast);
}

.cc-modal .cc-btn-primary:hover {
  background-color: #e6c100;
}

.cc-modal .cc-btn-outline {
  background-color: transparent;
  border: 2px solid var(--cc-primary-color);
  color: var(--cc-primary-color-contrast);
}

.cc-modal .cc-btn-outline:hover {
  background-color: var(--cc-primary-color);
  color: var(--cc-primary-color-contrast);
}

.cc-modal .cc-link-btn {
  background: none;
  border: none;
  color: var(--cc-primary-color-contrast);
  cursor: pointer;
  text-decoration: underline;
  padding: 0.25rem;
  font-size: 1rem;
}

.cc-modal .cc-link-btn:hover {
  text-decoration: none;
}

.cc-hidden {
  display: none !important;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
