/* Shared 1→2 bottle CRO sheet (tinixol.net) */

.dp-sheet *,
.dp-sheet *::before,
.dp-sheet *::after {
  box-sizing: border-box;
}

.dp-sheet {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: block;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.dp-sheet.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.dp-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 35, 55, 0.55);
  border: 0;
  padding: 0;
  cursor: pointer;
}

.dp-sheet__panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  max-height: 100%;
  margin: 0 auto;
  padding: 14px 16px 10px;
  border-radius: 20px 20px 0 0;
  background: linear-gradient(180deg, #e8f1f8 0%, #c5dced 100%);
  box-shadow: 0 -12px 40px rgba(15, 35, 55, 0.22);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.dp-sheet__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: #17324a;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(23, 50, 74, 0.12);
}

.dp-sheet__close:focus-visible {
  outline: 2px solid #1f6fb2;
  outline-offset: 2px;
}

.dp-sheet__scroll {
  display: flow-root;
}

.dp-sheet__title {
  margin: 0 44px 10px 0;
  text-align: center;
  font-size: clamp(1.25rem, 5vw, 1.7rem);
  line-height: 1.15;
  font-weight: 800;
  color: #142433;
}

.dp-sheet__offer {
  margin: 0 0 12px;
  text-align: center;
  font-size: clamp(0.95rem, 3.6vw, 1.15rem);
  line-height: 1.35;
  font-weight: 800;
  color: #1a2f42;
}

.dp-sheet__offer u {
  text-decoration-thickness: 2px;
}

.dp-sheet__products {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 0 12px;
}

.dp-sheet__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 8px 12px;
  border-radius: 16px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  border: 2px solid transparent;
  box-shadow: 0 4px 14px rgba(23, 50, 74, 0.08);
  min-width: 0;
}

.dp-sheet__card:hover,
.dp-sheet__card:focus-visible {
  border-color: #2f7fbf;
  outline: none;
}

.dp-sheet__card--featured {
  border-color: #2f7fbf;
  background: linear-gradient(180deg, #fff 0%, #eef6fc 100%);
}

.dp-sheet__card-media {
  width: 100%;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #f4f8fb;
  overflow: hidden;
}

.dp-sheet__card-media img {
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.dp-sheet__card-copy {
  margin: 0;
  text-align: center;
  font-size: 0.88rem;
  line-height: 1.25;
  font-weight: 700;
}

.dp-sheet__card-copy strong {
  display: block;
  margin-top: 2px;
  color: #0f5f2f;
}

.dp-sheet__card-copy del {
  opacity: 0.65;
  font-weight: 600;
}

.dp-sheet__actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 0 0;
  margin: 0;
}

.dp-sheet__accept {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f08a24;
  color: #fff;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 800;
  font-size: 0.92rem;
  line-height: 1.2;
  box-shadow: 0 6px 16px rgba(240, 138, 36, 0.35);
}

.dp-sheet__accept:hover,
.dp-sheet__accept:focus-visible {
  filter: brightness(1.05);
  outline: none;
}

.dp-sheet__decline {
  display: block;
  text-align: center;
  color: #35506a;
  font-size: 0.78rem;
  line-height: 1.25;
  text-decoration: underline;
  padding: 2px 4px 4px;
  margin: 0;
}

.dp-sheet__decline:hover {
  text-decoration: none;
}

html.dp-sheet-lock,
html.dp-sheet-lock body {
  overflow: hidden !important;
}

@media (min-width: 768px) {
  .dp-sheet__panel {
    top: 50%;
    bottom: auto;
    left: 50%;
    right: auto;
    width: min(720px, calc(100% - 48px));
    max-width: 720px;
    max-height: min(88vh, 820px);
    border-radius: 20px;
    padding: 24px 28px 20px;
    transform: translate(-50%, -50%);
  }

  .dp-sheet__title {
    margin-right: 48px;
    font-size: 1.75rem;
  }

  .dp-sheet__offer {
    font-size: 1.3rem;
  }

  .dp-sheet__products {
    gap: 16px;
  }

  .dp-sheet__card-media {
    height: 160px;
  }

  .dp-sheet__card-copy {
    font-size: 1rem;
  }

  .dp-sheet__accept {
    min-height: 52px;
    font-size: 1.05rem;
  }
}

@media (max-height: 700px) {
  .dp-sheet__panel {
    padding: 10px 14px 8px;
  }

  .dp-sheet__title {
    margin-bottom: 6px;
    font-size: 1.2rem;
  }

  .dp-sheet__offer {
    margin-bottom: 8px;
    font-size: 0.9rem;
  }

  .dp-sheet__products {
    margin-bottom: 8px;
    gap: 8px;
  }

  .dp-sheet__card {
    padding: 8px 6px 10px;
  }

  .dp-sheet__card-media {
    height: 88px;
  }

  .dp-sheet__card-copy {
    font-size: 0.8rem;
  }

  .dp-sheet__accept {
    min-height: 44px;
    padding: 10px 12px;
    font-size: 0.88rem;
  }
}
