.pqs-share-wrap {
  max-width: var(--pqs-max-width, 560px);
  margin: 28px auto 24px;
  font-family: inherit;
  color: #111827;
}

.pqs-title {
  margin: 0 0 14px;
  font-size: 1.2rem;
  line-height: 1.3;
  font-weight: 700;
  color: #111827;
}

.pqs-card {
  position: relative;
  border: 1px solid #d9dde5;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}

.pqs-card-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 22px;
}

.pqs-code-col {
  flex: 0 0 auto;
}

.pqs-qr-image {
  display: block;
  width: var(--pqs-qr-size, 150px);
  height: var(--pqs-qr-size, 150px);
  max-width: 100%;
  border-radius: 6px;
}

.pqs-text-col {
  flex: 1 1 auto;
  min-width: 0;
}

.pqs-description {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  color: #374151;
}

.pqs-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  padding: 12px 18px;
  background: #1d4ed8;
  color: #ffffff !important;
  text-decoration: none !important;
  border-radius: 10px;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.2;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.pqs-download-btn:hover,
.pqs-download-btn:focus {
  background: #1e40af;
  color: #ffffff !important;
  transform: translateY(-1px);
}

.pqs-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #6b7280;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pqs-close:hover,
.pqs-close:focus {
  background: #f3f4f6;
  color: #111827;
}

@media (max-width: 640px) {
  .pqs-share-wrap {
    margin: 24px 0 20px;
  }

  .pqs-card-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 18px;
  }

  .pqs-qr-image {
    width: min(100%, var(--pqs-qr-size, 150px));
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .pqs-download-btn {
    width: 100%;
  }
}
