.share-tool-actions .btn {
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

.share-tool-actions .btn:last-child {
  margin-right: 0;
}

.share-feedback {
  min-height: 1.5rem;
  font-weight: 600;
}

.share-feedback.is-error {
  color: #dc3545;
}

.share-feedback.is-success {
  color: #28a745;
}

.share-preview-note {
  color: #6c757d;
  line-height: 1.65;
}

.share-qr-card {
  max-width: 460px;
  margin: 0 auto;
  padding: 2rem;
  border-radius: 28px;
  border: 1px solid rgba(79, 70, 229, 0.14);
  background:
    radial-gradient(circle at top right, rgba(124, 58, 237, 0.12), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 22px 54px rgba(15, 23, 42, 0.12);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 640px;
}

.share-qr-card__brand {
  margin: 0 auto 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1e1b4b 0%, #4f46e5 62%, #6d28d9 100%);
  border-radius: 10px;
  padding: 8px 18px;
  box-shadow: 0 12px 28px rgba(30, 27, 75, 0.22);
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.share-qr-card__brand img {
  width: auto;
  height: 34px;
  max-width: 100%;
}

.share-qr-card__salon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  text-align: left;
}

.share-qr-card__salon-logo {
  width: 68px;
  height: 68px;
  margin-right: 1rem;
  object-fit: cover;
  border-radius: 20px;
  border: 3px solid #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
  background: #ffffff;
}

.share-qr-card__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4f46e5;
}

.share-qr-card__title {
  margin: 0;
  font-size: clamp(1.05rem, 1.7vw, 1.45rem);
  line-height: 1.18;
  font-weight: 800;
  color: #111827;
  max-width: 260px;
  word-break: break-word;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.share-qr-card__qr-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.share-qr-card__qr {
  padding: 1rem;
  border-radius: 24px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

.share-qr-card__qr img,
.share-qr-card__qr canvas {
  display: block;
  width: 232px;
  height: 232px;
  max-width: 100%;
}

.share-qr-card__link {
  margin-bottom: 0.85rem;
  font-size: 0.84rem;
  line-height: 1.55;
  color: #6b7280;
  word-break: break-word;
}

.share-qr-card__caption {
  margin-bottom: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: #111827;
  font-weight: 600;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}

.share-qr-card__frame {
  padding: 0.25rem;
}

@media (max-width: 767.98px) {
  .share-qr-card {
    padding: 1.5rem 1.15rem;
    min-height: auto;
  }

  .share-qr-card__salon {
    display: block;
    text-align: center;
  }

  .share-qr-card__salon-logo {
    margin-right: 0;
    margin-bottom: 0.85rem;
  }

  .share-qr-card__title {
    max-width: 100%;
    font-size: 1.25rem;
  }
}

@media print {
  @page {
    size: A4 portrait;
    margin: 12mm;
  }

  html,
  body {
    background: #ffffff !important;
    height: 100%;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .topbar,
  .left-sidebar,
  .page-titles,
  .footer,
  .share-tool-actions,
  .share-feedback,
  .share-preview-note,
  .share-side-card,
  .share-print-hide {
    display: none !important;
  }

  .page-wrapper,
  .container-fluid,
  .row,
  .col-lg-5,
  .col-lg-7,
  .col-12,
  .card,
  .card-body {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    background: #ffffff !important;
  }

  .page-wrapper,
  .container-fluid,
  .row,
  .col-lg-7 {
    min-height: calc(297mm - 24mm) !important;
    height: calc(297mm - 24mm) !important;
  }

  .share-qr-card {
    width: 100% !important;
    max-width: 186mm;
    margin: 0 auto !important;
    padding: 14mm 12mm !important;
    border: 1px solid #dbe3f1 !important;
    box-shadow: none !important;
    break-inside: avoid;
    min-height: calc(297mm - 24mm) !important;
    height: calc(297mm - 24mm) !important;
    border-radius: 24px;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .share-qr-card__brand {
    margin-bottom: 8mm;
    background: linear-gradient(135deg, #1e1b4b 0%, #4f46e5 62%, #6d28d9 100%) !important;
    box-shadow: none !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .share-qr-card__salon {
    margin-bottom: 8mm;
    text-align: center;
  }

  .share-qr-card__qr-wrap {
    margin-bottom: 6mm;
  }

  .share-qr-card__qr img,
  .share-qr-card__qr canvas {
    width: 72mm !important;
    height: 72mm !important;
  }

  .share-qr-card__link {
    font-size: 10pt;
  }

  .share-qr-card__caption {
    max-width: 120mm;
    font-size: 12pt;
  }

  .share-qr-card__title {
    max-width: 120mm;
    font-size: 17pt;
    line-height: 1.2;
    margin-left: auto;
    margin-right: auto;
  }
}
