:root {
  --gbm-poa-bg: #141429;
  --gbm-poa-panel: #1d1d38;
  --gbm-poa-panel-soft: #242440;
  --gbm-poa-text: #f7f5ef;
  --gbm-poa-muted: #c5c4d0;
  --gbm-poa-gold: #dccb87;
  --gbm-poa-gold-soft: rgba(220, 203, 135, .24);
  --gbm-poa-line: rgba(220, 203, 135, .38);
}

.gbm-poa-quick-link-row {
  margin: 9px 0 11px !important;
  padding: 0 !important;
  list-style: none !important;
}

.gbm-poa-quick-link-row::marker {
  content: "";
}

.gbm-poa-quick-link {
  display: inline-flex !important;
  min-height: 44px;
  padding: 10px 17px !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid #dccb87 !important;
  border-radius: 999px;
  background: #dccb87 !important;
  color: #141429 !important;
  font: 700 15px/1.3 Assistant, Arial, sans-serif !important;
  text-decoration: none !important;
  box-shadow: 0 8px 20px rgba(20, 20, 41, .12);
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}

.gbm-poa-quick-link:hover,
.gbm-poa-quick-link:focus-visible {
  border-color: #f4e9b6 !important;
  background: #f4e9b6 !important;
  color: #141429 !important;
  transform: translateY(-1px);
}

.gbm-poa-quick-link:focus-visible {
  outline: 2px solid #141429;
  outline-offset: 3px;
}

#popmake-765 .gbm-poa-quick-link-row,
.gbm-team-eliana-slide .gbm-poa-quick-link-row {
  text-align: right !important;
}

html body #gbm-desk #gbm-insights-article article[data-post="poa"] .cover > p:not(.article-subtitle),
html body #gbm-desk #gbm-insights-article article[data-post="poa"] .content p,
html body #gbm-desk #gbm-insights-article article[data-post="poa"] .content .quick,
html body #gbm-desk #gbm-insights-article article[data-post="poa"] .content .poa-list > div,
html body #gbm-desk #gbm-insights-article article.gbm-opinion[lang="he"] .cover > p:not(.article-subtitle),
html body #gbm-desk #gbm-insights-article article.gbm-opinion[lang="he"] .content p,
html body #gbm-desk #gbm-insights-article article.gbm-opinion[lang="he"] .content .quick,
html body #gbm-desk #gbm-insights-article article.gbm-opinion[lang="he"] .content .poa-list > div {
  text-align: justify !important;
  text-align-last: right !important;
}

#gbm-insights-article article[data-post="poa"] .gbm-poa-byline-photo {
  width: 86px;
  height: 86px;
  margin-inline-start: auto;
  flex: 0 0 86px;
  overflow: hidden;
  border: 1px solid var(--gbm-poa-line);
  border-radius: 24px;
  background: var(--gbm-poa-panel-soft);
  box-shadow: 0 12px 30px rgba(5, 5, 18, .25);
}

#gbm-insights-article article[data-post="poa"] .gbm-poa-byline-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
}

#gbm-insights-article article[data-post="poa"] .gbm-poa-added-detail,
#gbm-insights-article article[data-post="poa"] .gbm-poa-added-detail summary,
#gbm-insights-article article[data-post="poa"] .gbm-poa-added-detail p,
#gbm-insights-article article[data-post="poa"] .gbm-poa-basics-list,
#gbm-insights-article article[data-post="poa"] .gbm-poa-basics-list > div,
#gbm-insights-article article[data-post="poa"] .gbm-poa-basics-list b {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

#gbm-insights-article article[data-post="poa"] .gbm-poa-process {
  margin: 24px 0 18px;
  padding: 20px;
  border: 1px solid var(--gbm-poa-line);
  border-radius: 20px;
  background: rgba(20, 20, 41, .76);
}

#gbm-insights-article article[data-post="poa"] .gbm-poa-process h3 {
  margin: 0 0 17px;
  color: var(--gbm-poa-text);
  font-size: 22px;
  text-align: right;
}

.gbm-poa-process-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px minmax(0, 1fr) 32px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  direction: rtl;
}

.gbm-poa-process-step {
  display: flex;
  min-height: 84px;
  padding: 12px 10px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  border-radius: 15px;
  background: var(--gbm-poa-panel-soft);
  color: var(--gbm-poa-text);
  text-align: center;
  line-height: 1.4;
}

.gbm-poa-process-step svg {
  width: 25px;
  height: 25px;
  stroke: var(--gbm-poa-gold);
  stroke-width: 1.7;
  fill: none;
}

.gbm-poa-process-arrow {
  color: var(--gbm-poa-gold);
  font-size: 24px;
  text-align: center;
}

.gbm-poa-questionnaire-launch-wrap {
  margin: 0 0 22px;
  text-align: center;
}

.gbm-poa-questionnaire-launch {
  min-height: 48px;
  padding: 11px 24px;
  border: 1px solid var(--gbm-poa-gold);
  border-radius: 999px;
  background: var(--gbm-poa-gold);
  color: #141429;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.gbm-poa-preview-note {
  margin: 8px 0 0;
  color: var(--gbm-poa-muted);
  font-size: 13px;
}

.gbm-poa-dialog {
  width: min(720px, calc(100% - 28px));
  max-height: min(92dvh, 900px);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--gbm-poa-line);
  border-radius: 24px;
  background: var(--gbm-poa-bg);
  color: var(--gbm-poa-text);
  font-family: Assistant, Arial, sans-serif;
  direction: rtl;
  box-shadow: 0 30px 90px rgba(4, 4, 15, .58);
}

.gbm-poa-dialog::backdrop {
  background: rgba(8, 8, 22, .82);
  backdrop-filter: blur(3px);
}

.gbm-poa-dialog-shell {
  display: flex;
  max-height: min(92dvh, 900px);
  flex-direction: column;
}

.gbm-poa-dialog-header {
  position: relative;
  padding: 23px 60px 16px 24px;
  border-bottom: 1px solid var(--gbm-poa-line);
}

.gbm-poa-dialog-header h2 {
  margin: 0 0 8px;
  color: var(--gbm-poa-text);
  font-size: clamp(22px, 4vw, 30px);
  line-height: 1.3;
}

.gbm-poa-dialog-header p {
  margin: 0;
  color: var(--gbm-poa-muted);
  line-height: 1.6;
}

.gbm-poa-dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--gbm-poa-line);
  border-radius: 50%;
  background: transparent;
  color: var(--gbm-poa-text);
  font-size: 24px;
  cursor: pointer;
}

.gbm-poa-progress {
  height: 5px;
  background: rgba(255, 255, 255, .08);
}

.gbm-poa-progress > span {
  display: block;
  width: 12.5%;
  height: 100%;
  background: linear-gradient(to left, #edcf80, #bd9449);
  transition: width .22s ease;
}

.gbm-poa-questionnaire {
  overflow: auto;
  padding: 24px;
  overscroll-behavior: contain;
}

.gbm-poa-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

.gbm-poa-step[hidden] {
  display: none !important;
}

.gbm-poa-step {
  border: 0;
  margin: 0;
  padding: 0;
}

.gbm-poa-step legend,
.gbm-poa-step-title {
  display: block;
  width: 100%;
  margin: 0 0 8px;
  color: var(--gbm-poa-text);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.45;
}

.gbm-poa-step-hint {
  margin: 0 0 16px;
  color: var(--gbm-poa-muted);
  font-size: 14px;
}

.gbm-poa-options {
  display: grid;
  gap: 10px;
}

.gbm-poa-option {
  position: relative;
  display: flex;
  min-height: 50px;
  padding: 12px 42px 12px 14px;
  align-items: center;
  border: 1px solid rgba(220, 203, 135, .25);
  border-radius: 14px;
  background: var(--gbm-poa-panel-soft);
  color: var(--gbm-poa-text);
  cursor: pointer;
  line-height: 1.5;
}

.gbm-poa-option input {
  position: absolute;
  right: 15px;
  width: 18px;
  height: 18px;
  accent-color: var(--gbm-poa-gold);
}

.gbm-poa-option:has(input:checked) {
  border-color: var(--gbm-poa-gold);
  background: rgba(220, 203, 135, .12);
}

.gbm-poa-conditional,
.gbm-poa-other-field {
  margin: 12px 0 0;
  padding: 12px 14px;
  border-right: 3px solid var(--gbm-poa-gold);
  border-radius: 9px;
  background: rgba(220, 203, 135, .08);
  color: var(--gbm-poa-muted);
  line-height: 1.6;
}

.gbm-poa-other-field label,
.gbm-poa-field label {
  display: block;
  margin-bottom: 6px;
  color: var(--gbm-poa-text);
  font-weight: 600;
}

.gbm-poa-dialog input[type="text"],
.gbm-poa-dialog input[type="email"],
.gbm-poa-dialog input[type="tel"],
.gbm-poa-dialog textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  box-sizing: border-box;
  border: 1px solid var(--gbm-poa-line);
  border-radius: 11px;
  background: #101025;
  color: var(--gbm-poa-text);
  font: inherit;
  text-align: right;
}

.gbm-poa-dialog textarea {
  min-height: 116px;
  resize: vertical;
}

.gbm-poa-char-count {
  display: block;
  margin-top: 5px;
  color: var(--gbm-poa-muted);
  font-size: 12px;
}

.gbm-poa-fields {
  display: grid;
  gap: 14px;
}

.gbm-poa-contact-choice {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.gbm-poa-copy-option {
  margin-top: 16px;
}

.gbm-poa-copy-confirm {
  margin: 12px 0 0;
  padding: 11px 13px;
  border-right: 3px solid var(--gbm-poa-gold);
  border-radius: 9px;
  background: rgba(220, 203, 135, .08);
  color: var(--gbm-poa-muted);
  line-height: 1.55;
}

.gbm-poa-field-error {
  margin: 0;
  color: #ffb8ad;
  font-size: 14px;
}

.gbm-poa-privacy-note {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--gbm-poa-line);
  color: var(--gbm-poa-muted);
  font-size: 13px;
  line-height: 1.65;
}

.gbm-poa-privacy-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--gbm-poa-gold);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.gbm-poa-nav {
  display: flex;
  margin-top: 22px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.gbm-poa-nav button {
  min-height: 44px;
  padding: 9px 19px;
  border: 1px solid var(--gbm-poa-gold);
  border-radius: 999px;
  background: transparent;
  color: var(--gbm-poa-text);
  font: inherit;
  cursor: pointer;
}

.gbm-poa-nav .gbm-poa-next,
.gbm-poa-nav .gbm-poa-submit {
  background: var(--gbm-poa-gold);
  color: #141429;
  font-weight: 700;
}

.gbm-poa-nav button[disabled] {
  cursor: not-allowed;
  opacity: .48;
}

.gbm-poa-status {
  min-height: 24px;
  margin-top: 12px;
  color: var(--gbm-poa-muted);
  font-size: 14px;
}

.gbm-poa-status[data-state="sending"] {
  color: var(--gbm-poa-gold);
}

.gbm-poa-status[data-state="success"] {
  color: #bfe5c6;
}

.gbm-poa-status[data-state="error"] {
  color: #ffb8ad;
}

/* Keep the desktop podcast filter beside Forms & Links. */
@media (min-width: 701px) {
  html body #gbm-desk nav.filters button[data-go="podcast"] {
    grid-column: auto !important;
    justify-self: stretch !important;
  }
}

@media (max-width: 700px) {
  html body #gbm-desk nav.filters {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  html body #gbm-desk nav.filters button {
    width: 100% !important;
    min-width: 0 !important;
    padding: 8px 6px !important;
    line-height: 1.25 !important;
    white-space: normal !important;
  }

  html body #gbm-desk nav.filters button[data-go="podcast"] {
    grid-column: auto !important;
    justify-self: stretch !important;
  }

  .gbm-poa-quick-link-row {
    margin: 10px 0 13px !important;
  }

  .gbm-poa-quick-link {
    width: 100%;
    max-width: 100%;
  }

  #gbm-insights-article article[data-post="poa"] .byline {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) 68px;
    gap: 10px;
    align-items: center;
  }

  #gbm-insights-article article[data-post="poa"] .gbm-poa-byline-photo {
    grid-column: 3;
    width: 68px;
    height: 68px;
    margin: 0;
    border-radius: 18px;
  }

  .gbm-poa-process-flow {
    grid-template-columns: 1fr;
  }

  .gbm-poa-process-arrow {
    font-size: 0;
  }

  .gbm-poa-process-arrow::before {
    content: "↓";
    font-size: 22px;
  }

  .gbm-poa-dialog {
    width: calc(100% - 14px);
    max-height: 96dvh;
    border-radius: 19px;
  }

  .gbm-poa-dialog-shell {
    max-height: 96dvh;
  }

  .gbm-poa-dialog-header {
    padding: 18px 52px 14px 17px;
  }

  .gbm-poa-questionnaire {
    padding: 18px 15px 22px;
  }

  .gbm-poa-step legend,
  .gbm-poa-step-title {
    font-size: 20px;
  }
}

/* English presentation of the same published content and questionnaire. */
html[lang^="en"] .gbm-poa-dialog,
html[lang^="en"] .gbm-poa-process-flow { direction:ltr; }
html[lang^="en"] .gbm-poa-dialog { text-align:left; }
html[lang^="en"] .gbm-poa-option { padding:12px 14px 12px 42px; }
html[lang^="en"] .gbm-poa-option input { left:15px;right:auto; }
html[lang^="en"] .gbm-poa-dialog :is(input,textarea) { text-align:left; }
html[lang^="en"] .gbm-poa-conditional,
html[lang^="en"] .gbm-poa-other-field { border-right:0;border-left:3px solid var(--gbm-poa-gold); }
html[lang^="en"] #popmake-765 .gbm-poa-quick-link-row,
html[lang^="en"] .gbm-team-eliana-slide .gbm-poa-quick-link-row { text-align:left!important; }
html[lang^="en"] .gbm-poa-quick-link { max-width:100%;box-sizing:border-box;white-space:normal; }
html[lang^="en"] #gbm-insights-article article[data-post="poa"] .gbm-poa-process h3 { text-align:left; }
html[lang^="en"] body #gbm-desk #gbm-insights-article :is(article[data-post="poa"],article.gbm-ai-ethics) :is(.content p,.content .quick,.poa-list>div,.cover>p) { text-align:justify!important;text-align-last:left!important; }
html[lang^="en"] body #gbm-desk #gbm-insights-article article.gbm-ai-ethics { direction:ltr;text-align:left; }
html[lang^="en"] body #gbm-desk article :is(.byline,.cover,.cover h2,.cover .tag,.article-subtitle) { text-align:left!important;text-align-last:left!important; }
html[lang^="en"] body #gbm-desk .rail :is(.rail-title,.rail-note) { display:none!important; }
html[lang^="en"] body #gbm-desk .avatar { background:transparent url("https://gilbm-law.com/wp-content/plugins/gbm-logo-mobile-preview/logo-dark.jpg") center/contain no-repeat!important;mask:none!important;-webkit-mask:none!important;mix-blend-mode:screen!important;color:transparent!important;font-size:0!important; }
html[lang^="en"] body #gbm-desk #gbm-rights-dialog,
html[lang^="en"] body #gbm-desk #gbm-rights-dialog :is(form,p,h3,label,input,select) { direction:ltr!important;text-align:left!important; }
html[lang^="en"] body #gbm-desk nav.filters { display:flex!important;flex-wrap:wrap!important;gap:8px!important;max-width:100%!important; }
html[lang^="en"] body #gbm-desk nav.filters button { min-width:0!important;max-width:100%!important;white-space:normal!important;overflow-wrap:break-word; }
@media(max-width:600px){
  html[lang^="en"] body #gbm-desk nav.filters { display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important; }
html[lang^="en"] body #gbm-desk nav.filters button { grid-column:span 2!important;margin:0!important;padding:10px 8px!important;font-size:14px!important;width:100%!important; }
html[lang^="en"] body #gbm-desk nav.filters button:is([data-go="links"],[data-go="podcast"]) { grid-column:span 3!important; }
html[lang^="en"] body #gbm-desk #gbm-insights-article article .cover h2 { font-size:32px!important;line-height:1.2!important;overflow-wrap:break-word; }
  html[lang^="en"] .gbm-poa-dialog-header h2 { font-size:21px; }
  html[lang^="en"] .gbm-poa-dialog-header p { font-size:14px;line-height:1.45; }
  html[lang^="en"] .gbm-poa-dialog-header { flex-shrink:0; }
}
