/* Summary row layout */
.wcr-code-row {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.wcr-code-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.wcr-btn-icon {
  width: 16px;
  height: 16px;
  vertical-align: middle;
  margin-right: 6px;
}

.wcr-copy-feedback,
.wcr-share-feedback {
  margin-top: 8px;
  font-size: 13px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.wcr-copy-feedback.is-visible,
.wcr-share-feedback.is-visible {
  opacity: 1;
}

/* Share panel */
.wcr-share-panel {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 8px;
  background: #fff;
}

.wcr-share-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.wcr-close-share {
  border: 0;
  background: transparent;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
}

.wcr-share-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0;
}

.wcr-share-copy-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0;
}

.wcr-share-note {
  font-size: 12px;
  opacity: 0.8;
  margin-top: 8px;
}

/* Responsive tweak */
@media (max-width: 600px) {
  .wcr-code-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .wcr-code-actions {
    justify-content: flex-start;
  }
  .wcr-share-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Modal overlay share (desktop) ===== */
body.wcr-modal-open {
  overflow: hidden;
}

.wcr-share-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 9998;
}

.wcr-share-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(520px, 92vw);
  background: #fff;
  border-radius: 12px;
  z-index: 9999;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  padding: 14px;
}

.wcr-share-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.wcr-share-modal-close {
  text-decoration: none;
  font-size: 22px;
  line-height: 1;
  padding: 6px 10px;
}

.wcr-share-modal-body {
  padding-top: 12px;
}

.wcr-share-icons {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.wcr-share-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  height: 56px;
  text-decoration: none;
  transition: transform 0.12s ease, opacity 0.12s ease;
}

.wcr-share-icon:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

.wcr-share-icon img {
  width: 26px;
  height: 26px;
}

/* Colores por red (puedes ajustarlos a tu gusto) */
.wcr-ch-whatsapp { background: #25D366; }
.wcr-ch-facebook { background: #1877F2; }
.wcr-ch-twitter  { background: #111111; }
.wcr-ch-telegram { background: #2AABEE; }
.wcr-ch-sms      { background: #6B7280; }
.wcr-ch-email    { background: #F59E0B; }

/* Responsive */
@media (max-width: 600px) {
  .wcr-share-icons {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
