/* PrestaHU hírlevél-feliratkozás — popup és beágyazott űrlap */
:root {
  --pshu-nl-accent: #5d00ff;
  --pshu-nl-accent-hover: #4a00cc;
  --pshu-nl-text: #000;
  --pshu-nl-muted: #000;
  --pshu-nl-input-bg: #fcfcfc;
  --pshu-nl-input-border: #eaeaea;
  --pshu-nl-radius: 12px;
  --pshu-nl-font: 'Poppins', Arial, sans-serif;
}

.pshu-nl-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, .55);
  opacity: 0;
  transition: opacity .25s ease;
}
.pshu-nl-overlay[hidden] { display: none; }
.pshu-nl-overlay.is-open { opacity: 1; }

.pshu-nl-dialog {
  position: relative;
  display: flex;
  width: 100%;
  max-width: 700px;
  max-height: calc(100vh - 32px);
  overflow: auto;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
  font-family: var(--pshu-nl-font);
  transform: translateY(12px);
  transition: transform .25s ease;
}
.pshu-nl-overlay.is-open .pshu-nl-dialog { transform: none; }

.pshu-nl-media {
  flex: 0 0 220px;
  min-height: 430px;
  background-size: cover;
  background-position: center;
}

.pshu-nl-body {
  position: relative;
  flex: 1 1 auto;
  padding: 72px 60px 48px;
  text-align: center;
}

.pshu-nl-close {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  background: none;
  color: #000;
  font: 700 36px/36px Arial, sans-serif;
  cursor: pointer;
}
.pshu-nl-close:hover, .pshu-nl-close:focus { background: none; color: var(--pshu-nl-accent); }

.pshu-nl-title {
  margin: 0 0 36px;
  color: var(--pshu-nl-text);
  font-family: var(--pshu-nl-font);
  font-size: 30px;
  font-weight: 400;
  line-height: 1.3;
}

.pshu-nl-form { margin: 0; text-align: left; }
.pshu-nl-fields { display: grid; gap: 8px; }

.pshu-nl-overlay .pshu-nl-input,
.pshu-nl-inline .pshu-nl-input {
  box-sizing: border-box;
  width: 100%;
  height: 47px;
  margin: 0;
  padding: 12px 15px;
  border: 1px solid var(--pshu-nl-input-border);
  border-radius: var(--pshu-nl-radius);
  background: var(--pshu-nl-input-bg);
  color: #333;
  font-family: var(--pshu-nl-font);
  font-size: 12px;
  line-height: 21px;
  box-shadow: none;
}
.pshu-nl-input::placeholder { color: #a6a6a6; opacity: 1; }
.pshu-nl-input:focus { outline: 2px solid var(--pshu-nl-accent); outline-offset: 1px; }
.pshu-nl-input.is-invalid { border-color: #d00; }

.pshu-nl-consent {
  margin: 20px 0 0;
  color: var(--pshu-nl-muted);
  font-size: 12px;
  line-height: 22px;
}
.pshu-nl-consent a { color: inherit; text-decoration: underline; }

.pshu-nl-error { margin: 12px 0 0; color: #d00; font-size: 12px; }

.pshu-nl-overlay .pshu-nl-btn,
.pshu-nl-inline .pshu-nl-btn {
  display: block;
  width: 100%;
  height: 47px;
  margin: 24px 0 0;
  padding: 12px 40px;
  border: 1px solid transparent;
  border-radius: var(--pshu-nl-radius);
  background: var(--pshu-nl-accent);
  color: #fff;
  font-family: var(--pshu-nl-font);
  font-size: 14px;
  font-weight: 700;
  line-height: 21px;
  cursor: pointer;
}
.pshu-nl-btn:hover, .pshu-nl-btn:focus { background: var(--pshu-nl-accent-hover); color: #fff; }
.pshu-nl-btn[disabled] { opacity: .7; cursor: wait; }

.pshu-nl-success { text-align: center; }
.pshu-nl-success-title { margin: 0 0 12px; font-size: 26px; color: var(--pshu-nl-text); }
.pshu-nl-success-text { margin: 0; font-size: 14px; line-height: 22px; color: var(--pshu-nl-text); }

.pshu-nl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pshu-nl-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.pshu-nl-inline { font-family: var(--pshu-nl-font); }
.pshu-nl-inline .pshu-nl-title { margin-bottom: 16px; font-size: 20px; text-align: left; }
.pshu-nl-inline .pshu-nl-success { text-align: left; }

@media (max-width: 640px) {
  .pshu-nl-media { display: none; }
  .pshu-nl-body { padding: 56px 24px 28px; }
  .pshu-nl-title { margin-bottom: 24px; font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .pshu-nl-overlay, .pshu-nl-dialog { transition: none; }
}

/* A téma általános input- és gomb-stílusa ne írja felül */
.pshu-nl-overlay input.pshu-nl-input,
.pshu-nl-inline input.pshu-nl-input {
  background-color: var(--pshu-nl-input-bg) !important;
  border: 1px solid var(--pshu-nl-input-border) !important;
  box-shadow: none !important;
}
.pshu-nl-overlay input.pshu-nl-input:focus,
.pshu-nl-inline input.pshu-nl-input:focus {
  border-color: var(--pshu-nl-accent) !important;
  outline: 2px solid var(--pshu-nl-accent) !important;
  outline-offset: 1px;
}
.pshu-nl-overlay input.pshu-nl-input.is-invalid,
.pshu-nl-inline input.pshu-nl-input.is-invalid { border-color: #d00 !important; }
.pshu-nl-overlay button.pshu-nl-btn,
.pshu-nl-inline button.pshu-nl-btn {
  text-transform: none !important;
  letter-spacing: 0 !important;
  box-shadow: none !important;
}
.pshu-nl-overlay button.pshu-nl-close {
  border-radius: 0 !important;
  box-shadow: none !important;
}
