/* =========================================================
   Cofi Popup – Frontend styles
   ========================================================= */

.cofi-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 35px;
}

.cofi-popup {
  position: relative;
  background: var(--popup-bg, #ffffff);
  color: var(--popup-text, #000000);
  border: var(--popup-border-width, 1px) solid
    var(--popup-border-color, #cccccc);
  border-radius: var(--popup-border-radius, 16px);
  padding: 25px 18px;
  max-width: 345px;
  width: 100%;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Close button */
.cofi-popup-close {
  position: absolute;
  top: 1px;
  right: 10px;
  background: none;
  border: none;
  padding: 0;
  width: 28px;
  height: 28px;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  color: var(--popup-x, #000000);
  font-size: 24px;
  line-height: 1;
  opacity: 0.65;
  transition: opacity 0.15s ease;
}

.cofi-popup-close span {
  color: var(--popup-x, #000000);
}

.cofi-popup-close:hover,
.cofi-popup-close:focus-visible {
  opacity: 1;
  outline: none;
}

/* Content layout */
.cofi-popup-content {
}

.cofi-popup-text {
  min-width: 0;
  padding-right: 65px;
}

/* Title */
.cofi-popup-title {
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
  margin: 0 0 14px;
  text-transform: uppercase;
  color: var(--popup-text, #000000);
}

/* Body */
.cofi-popup-body {
  font-size: 16px;
  line-height: 1.45;
  margin: 0;
  color: var(--popup-text, #000000);
}

.cofi-popup-body * {
  color: var(--popup-text, #000000);
}

/* Link */
.cofi-popup-link,
.cofi-popup-body a {
  text-decoration: underline;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--popup-text, #000000);
}

/* Image */
.cofi-popup-image {
  width: 88px;
  position: absolute;
  bottom: -20px;
  right: -15px;
}

.cofi-popup-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Desktop: hidden */
@media (min-width: 769px) {
  .cofi-popup-overlay {
    display: none !important;
  }
}
