/* Foto Surpresa - estilos principais */

.hg-sp-root {
  padding: 16px;
  color: #fff;
  font-family: var(--hg-font-main, system-ui, -apple-system, BlinkMacSystemFont, sans-serif);
}

.hg-sp-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.35fr);
  gap: 16px;
}

@media (max-width: 768px) {
  .hg-sp-layout {
    grid-template-columns: 1fr;
  }
}

.hg-sp-panel {
  background: rgba(0, 0, 0, 0.7);
  border-radius: 18px;
  padding: 16px 16px 18px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(18px);
}

.hg-sp-panel-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.hg-sp-panel-header h4 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.hg-sp-pill {
  font-size: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #ff2f70;
  color: #fff;
}

.hg-sp-btn-new {
  margin-left: auto;
  padding: 5px 12px;
  font-size: 10px;
  border-radius: 999px;
  border: none;
  background: #ff2f70;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(255, 47, 112, 0.45);
}

.hg-sp-list {
  max-height: 360px;
  overflow-y: auto;
  padding-right: 4px;
}

.hg-sp-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 10px;
  border-radius: 12px;
  background: rgba(18, 0, 20, 0.98);
  margin-bottom: 8px;
}

.hg-sp-item-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hg-sp-item-title {
  font-size: 13px;
  font-weight: 500;
}

.hg-sp-item-meta {
  font-size: 10px;
  color: #ff9bc0;
}

.hg-sp-btn-mini {
  border: none;
  outline: none;
  padding: 4px 9px;
  font-size: 10px;
  border-radius: 999px;
  background: #ff2f70;
  color: #fff;
  cursor: pointer;
}

.hg-sp-btn-mini.secondary {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #eee;
}

.hg-sp-template {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  background: radial-gradient(circle at top left, #ff2f70, #270015);
  margin-bottom: 14px;
}

.hg-sp-template-img-wrap {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  overflow: hidden;
  flex-shrink: 0;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hg-sp-template-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hg-sp-template-text strong {
  font-size: 13px;
  display: block;
  margin-bottom: 2px;
}

.hg-sp-template-text p {
  font-size: 10px;
  margin: 0;
  color: #ffd1e1;
}

.hg-sp-link {
  margin-left: auto;
  font-size: 9px;
  background: none;
  border: none;
  color: #ffe0f0;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

/* Form */

.hg-sp-form .hg-label {
  font-size: 11px;
  margin-bottom: 4px;
}

.hg-sp-form .hg-input,
.hg-sp-form .form-select {
  font-size: 12px;
  border-radius: 10px;
  background: rgba(10, 0, 10, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
}

.hg-sp-row {
  display: flex;
  gap: 10px;
}

.hg-sp-col {
  flex: 1;
}

.hg-help {
  font-size: 9px;
  color: #aaa;
  margin-top: 3px;
}

.hg-sp-alert {
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 10px;
}

.hg-sp-alert-error {
  background: rgba(255, 47, 112, 0.16);
  border: 1px solid #ff2f70;
  color: #ffb7cf;
}

.hg-sp-alert-success {
  background: rgba(0, 196, 140, 0.16);
  border: 1px solid #00c48c;
  color: #8ff4d4;
}

.hg-btn-full {
  width: 100%;
}

/* Form envio escondido inicialmente */
.hg-sp-send.hg-sp-collapsed {
  display: none !important;
}
