.tpk-card-consult-entry,
.tpk-card-consult-guide {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
  margin-block: 1.3rem;
  padding: clamp(1rem, 4vw, 1.65rem);
  border-radius: 16px;
  color: var(--wp--preset--color--dark-gray, #0d0d0d);
  scroll-margin-top: 6rem;
  overflow-wrap: anywhere;
}

.tpk-card-consult-entry {
  background: var(--wp--preset--color--custom-secondary, #efd626);
}

.tpk-card-consult-guide {
  background: var(--wp--preset--color--bg-light, #f0f0f0);
}

.tpk-card-consult-entry h2,
.tpk-card-consult-guide > h2 {
  color: inherit;
  margin: 0 0 .45rem;
  font-size: clamp(1.25rem, 3.4vw, 1.65rem);
  line-height: 1.25;
  letter-spacing: normal;
}

.tpk-card-consult-entry p {
  margin: 0 0 .85rem;
  font-size: .95rem;
  line-height: 1.5;
}

.tpz .tpz-chapter-1 > .tpk-card-consult-entry {
  margin: 0 0 1.4rem;
  padding: clamp(.9rem, 2.4vw, 1.3rem);
  border: 1px solid #e9e2a3;
  border-radius: 14px;
  background: #fffbd4;
  color: var(--tpz-ink, #151b14);
}

.tpz .tpz-chapter-1 > .tpk-card-consult-entry > h2 {
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  letter-spacing: -.02em;
}

.tpz .tpz-chapter-1 > .tpk-card-consult-entry > p {
  margin: 0 0 .85rem;
  font-size: .95rem;
  line-height: 1.5;
}

.tpz .tpz-chapter-1 > .tpk-card-consult-entry .tpk-card-consult-fields button {
  background: var(--tpz-ink, #151b14);
}

.tpk-card-consult-guide p,
.tpk-card-consult-guide li {
  line-height: 1.6;
}

.tpk-card-consult-guide p {
  margin: .65rem 0;
}

.tpk-card-consult-guide ol {
  margin: .9rem 0;
  padding-inline-start: 1.4rem;
}

.tpk-card-consult-guide li + li {
  margin-top: .45rem;
}

.tpk-card-consult-guide h3 {
  margin: 1.25rem 0 .5rem;
  line-height: 1.3;
}

.tpk-card-consult-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: .7rem;
  margin: 0;
}

.tpk-card-consult-fields label {
  display: grid;
  min-width: 0;
  gap: .25rem;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.3;
}

.tpk-card-consult-fields input[type="text"],
.tpk-card-consult-fields button,
a.tpk-card-consult-button {
  box-sizing: border-box;
  min-height: 48px;
  border-radius: 10px;
  font: inherit;
  letter-spacing: normal;
}

.tpk-card-consult-fields input[type="text"] {
  width: 100%;
  min-width: 0;
  padding: .6rem .8rem;
  border: 1px solid #8a7d0a;
  background: #fff;
  color: #111;
  font-weight: 400;
}

.tpk-card-consult-fields button,
.tpk-card-consult-guide a.tpk-card-consult-button,
.tpk-card-consult-guide a.tpk-card-consult-button:hover {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .3rem;
  padding: .6rem 1rem;
  border: 1px solid transparent;
  background: var(--wp--preset--color--custom-main, #1a237e);
  color: #fff;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
}

.tpk-card-consult-fields :is(input, button):focus-visible,
a.tpk-card-consult-button:focus-visible {
  outline: 3px solid #26285d;
  outline-offset: 3px;
}

.tpk-card-consult-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
  margin-top: 1rem;
}

.tpk-card-consult-options > section {
  min-width: 0;
  padding: 1rem;
  border-radius: 12px;
  background: #fff;
}

.tpk-card-consult-options h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.3;
}

a.tpk-card-rx-link {
  text-decoration: underline;
  text-underline-offset: .16em;
}

.tpk-card-form-note {
  margin: .4rem 0;
  font-weight: 600;
  line-height: 1.5;
}

.tpk-drug-editorial .entry-content .jetpack-likes-widget-wrapper {
  box-sizing: border-box;
  display: grid;
  justify-items: center;
  margin: 1.5rem auto;
  padding-inline: .75rem;
  text-align: center;
}

.tpk-drug-editorial .entry-content .jetpack-likes-widget-wrapper iframe.post-likes-widget {
  width: min(100%, 18rem);
  margin-inline: auto;
}

@media (max-width: 760px) {
  .tpk-card-consult-options { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 620px) {
  .tpk-card-consult-fields { grid-template-columns: minmax(0, 1fr); }
  .tpk-card-consult-fields button { width: 100%; }
}
