/* CHERY-CLUB.ORG coffee support reminder */
/* Scroll is intentionally NOT locked while the support popup is open. */

.cc-coffee-overlay {
  position: fixed;
  z-index: 2147483000;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(11, 27, 47, .68);
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s ease, visibility .22s ease;
  box-sizing: border-box;
}

@supports ((-webkit-backdrop-filter: blur(4px)) or (backdrop-filter: blur(4px))) {
  .cc-coffee-overlay {
    background: rgba(11, 27, 47, .55);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
  }
}

.cc-coffee-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.cc-coffee-modal {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 42%) minmax(0, 58%);
  width: min(920px, calc(100vw - 48px));
  min-height: 430px;
  overflow: hidden;
  background: #fffdfa;
  border: 1px solid rgba(203, 32, 39, .2);
  border-radius: 18px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .32);
  transform: translateY(10px) scale(.70);
  transform-origin: center center;
  isolation: isolate;
  transition: transform .22s ease;
  color: #17243a;
  font-family: Arial, Helvetica, sans-serif;
}

.cc-coffee-overlay.is-open .cc-coffee-modal {
  transform: translateY(0) scale(.72);
}

.cc-coffee-visual {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  background: #fffdfa;
  border-radius: 17px 0 0 17px;
  isolation: isolate;
}

.cc-coffee-visual img {
  position: absolute;
  z-index: 0;
  top: -6px;
  right: -6px;
  bottom: -6px;
  left: -6px;
  display: block;
  width: calc(100% + 12px);
  height: calc(100% + 12px);
  max-width: none;
  min-height: 0;
  object-fit: cover;
  object-position: 50% 52%;
  transform: translateZ(0);
}

.cc-coffee-visual::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: 0;
  right: -1px;
  bottom: 0;
  width: 54px;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255,253,250,0), #fffdfa 88%);
}

.cc-coffee-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 52px 54px 42px 46px;
  box-sizing: border-box;
  background:
    radial-gradient(circle at 92% 12%, rgba(29, 102, 184, .075), transparent 24%),
    radial-gradient(circle at 92% 88%, rgba(255, 205, 39, .12), transparent 25%),
    #fffdfa;
}

.cc-coffee-copy::before {
  content: "";
  position: absolute;
  left: 46px;
  right: 54px;
  top: 38px;
  height: 3px;
  background: linear-gradient(90deg, #cf1825 0 34%, rgba(207,24,37,0) 34% 100%);
}

.cc-coffee-eyebrow {
  margin: 0 0 3px;
  font-size: 21px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: .02em;
  color: #17243a;
  text-transform: uppercase;
}

.cc-coffee-title {
  margin: 0 0 22px;
  font-size: 36px;
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -.025em;
  color: #e20e19;
  text-transform: uppercase;
}

.cc-coffee-text {
  margin: 0;
  font-size: 19px;
  line-height: 1.46;
  color: #1e2a3c;
}

.cc-coffee-note {
  margin: 18px 0 0;
  padding: 13px 15px;
  border-left: 3px solid #e20e19;
  background: #f6f7f8;
  font-size: 14px;
  line-height: 1.45;
  color: #4e5968;
}

.cc-coffee-support-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-width: 240px;
  margin-top: 25px;
  padding: 14px 31px;
  border: 0;
  border-radius: 7px;
  background: linear-gradient(180deg, #ed1b24, #c90712);
  box-shadow: 0 7px 18px rgba(201, 7, 18, .2);
  color: #fff !important;
  text-decoration: none !important;
  font-size: 19px;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
}

.cc-coffee-support-btn:hover,
.cc-coffee-support-btn:focus {
  background: linear-gradient(180deg, #f32630, #b9000b);
  color: #fff !important;
  text-decoration: none !important;
  outline: none;
}

.cc-coffee-thanks {
  margin-top: 20px;
  font-size: 14px;
  color: #687484;
}

.cc-coffee-close {
  position: absolute;
  z-index: 5;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid #dde1e7;
  border-radius: 50%;
  background: rgba(255,255,255,.95);
  box-shadow: 0 4px 14px rgba(0,0,0,.13);
  color: #68717c;
  font: 400 30px/38px Arial, Helvetica, sans-serif;
  text-align: center;
  cursor: pointer;
}

.cc-coffee-close:hover,
.cc-coffee-close:focus {
  color: #d2111b;
  border-color: rgba(210,17,27,.35);
  outline: none;
}

@media (max-width: 760px) {
  .cc-coffee-overlay {
    padding: 12px;
    align-items: center;
  }

  .cc-coffee-modal {
    grid-template-columns: 1fr;
    width: min(94vw, 520px);
    max-height: 92vh;
    overflow-y: auto;
    border-radius: 14px;
    transform: translateY(8px) scale(.985);
    transform-origin: center center;
  }

  .cc-coffee-overlay.is-open .cc-coffee-modal {
    transform: translateY(0) scale(1);
  }

  .cc-coffee-visual {
    min-height: 190px;
    height: 210px;
    border-radius: 13px 13px 0 0;
  }

  .cc-coffee-visual img {
    top: -5px;
    right: -5px;
    bottom: -5px;
    left: -5px;
    width: calc(100% + 10px);
    height: calc(100% + 10px);
    object-position: 50% 58%;
  }

  .cc-coffee-visual::after {
    top: auto;
    left: 0;
    right: 0;
    bottom: -1px;
    width: auto;
    height: 42px;
    background: linear-gradient(180deg, rgba(255,253,250,0), #fffdfa 90%);
  }

  .cc-coffee-copy {
    padding: 29px 24px 27px;
  }

  .cc-coffee-copy::before {
    left: 24px;
    right: 24px;
    top: 19px;
  }

  .cc-coffee-eyebrow {
    font-size: 17px;
  }

  .cc-coffee-title {
    margin-bottom: 15px;
    font-size: 28px;
  }

  .cc-coffee-text {
    font-size: 16px;
  }

  .cc-coffee-note {
    margin-top: 13px;
    font-size: 13px;
  }

  .cc-coffee-support-btn {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    margin-top: 18px;
  }

  .cc-coffee-thanks {
    margin-top: 14px;
  }

  .cc-coffee-close {
    top: 9px;
    right: 9px;
    width: 38px;
    height: 38px;
    font-size: 27px;
    line-height: 34px;
  }
}
