#pwTool,
#pwTool * {
  box-sizing: border-box;
}

.tool-shell {
  max-width: 980px;
  margin: 0 auto;
  padding: 22px;
  border-radius: 18px;
  border: 1px solid var(--berry-black-60-opacity10);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(253, 247, 255, 0.78));
  box-shadow: 0 18px 44px rgba(10, 5, 35, 0.10);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.tool-meta {
  color: var(--dark-berry-40-60);
  font-size: 14px;
  margin-top: 18px;
}

.pw-output-label {
  display: block;
  margin: 0 0 12px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: var(--berry-black-60);
  font-size: 18px;
  user-select: none;
}

.pw-output-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
}

@media (max-width: 720px) {
  .pw-output-row {
    grid-template-columns: 1fr;
  }
}

.pw-output-input {
  width: 100%;
  min-width: 0;
  height: 74px;
  border-radius: 16px;
  border: 1px solid rgba(10, 5, 35, 0.14);
  background: rgba(255, 255, 255, 0.98);
  overflow: hidden;
  color: var(--berry-black-60);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.2px;
  padding: 14px 18px;
  box-shadow: 0 10px 24px rgba(10, 5, 35, 0.08);
  user-select: text;
}

@media (max-width: 560px) {
  .pw-output-input {
    font-size: 22px;
    height: 66px;
  }
}

.pw-output-input:focus {
  outline: none;
  border-color: rgba(0, 106, 255, 0.65);
  box-shadow: 0 0 0 4px rgba(0, 106, 255, 0.12), 0 10px 22px rgba(10, 5, 35, 0.08);
}

.pw-icon-btn {
  height: 56px;
  width: 56px;
  border-radius: 16px;
  border: 1px solid rgba(10, 5, 35, 0.14);
  background: rgba(255, 255, 255, 0.98);
  color: var(--berry-black-60);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(10, 5, 35, 0.08);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  user-select: none;
}

.pw-icon-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(10, 5, 35, 0.10);
}

.pw-icon-btn:active {
  transform: translateY(0);
}

.pw-icon-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(0, 106, 255, 0.14), 0 14px 28px rgba(10, 5, 35, 0.10);
}

.pw-copy-btn {
  height: 56px;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.00)), var(--turquoise-specialdark);
  color: var(--white);
  font-weight: 700;
  font-size: 18px;
  padding: 0 26px;
  box-shadow: 0 16px 30px rgba(10, 5, 35, 0.14);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  user-select: none;
}

.pw-copy-btn:hover {
  transform: translateY(-1px);
  filter: brightness(0.96) saturate(1.05);
  box-shadow: 0 20px 38px rgba(10, 5, 35, 0.18);
}

.pw-copy-btn:active {
  transform: translateY(0);
  filter: brightness(0.94) saturate(1.05);
}

.pw-copy-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(0, 184, 222, 0.20), 0 20px 38px rgba(10, 5, 35, 0.18);
}

@media (max-width: 720px) {
  .pw-copy-btn {
    width: 100%;
    justify-content: center;
  }
}

.pw-strength {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
}

@media (max-width: 560px) {
  .pw-strength {
    grid-template-columns: 1fr;
  }
}

.pw-strength-bar {
  height: 12px;
  border-radius: 999px;
  border: 1px solid rgba(10, 5, 35, 0.12);
  background: rgba(10, 5, 35, 0.06);
  overflow: hidden;
}

.pw-strength-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: rgba(10, 5, 35, 0.20);
  transition: width 0.2s ease;
}

.pw-strength-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--berry-black-60);
  white-space: nowrap;
  border: 1px solid rgba(10, 5, 35, 0.12);
  background: rgba(255, 255, 255, 0.95);
  border-radius: 999px;
  padding: 6px 10px;
  justify-self: end;
  box-shadow: 0 10px 22px rgba(10, 5, 35, 0.06);
  user-select: none;
}

@media (max-width: 560px) {
  .pw-strength-text {
    justify-self: start;
    width: fit-content;
  }
}

.pw-strength-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Strength tones (match screenshots: red/orange/green) */
.pw-strength-text.is-weak {
  color: #b42318;
}

.pw-strength-text.is-average {
  color: #9a5b00;
}

.pw-strength-text.is-strong {
  color: #0f7a3d;
}

.pw-strength-fill.is-weak {
  background: #b42318;
}

.pw-strength-fill.is-average {
  background: #9a5b00;
}

.pw-strength-fill.is-strong {
  background: #0f7a3d;
}

.pw-status {
  min-height: 18px;
  user-select: none;
}

.pw-settings {
  margin-top: 18px;
  position: relative;
  border-radius: 16px;
  border: 1px solid rgba(10, 5, 35, 0.08);
  background: rgba(220, 239, 220, 0.95);
  padding: 26px;
  box-shadow: 0 14px 34px rgba(10, 5, 35, 0.08);
}

/* Middle pointer cone (top center) */
.pw-settings::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-bottom: 12px solid rgba(220, 239, 220, 0.95);
}

.pw-settings::after {
  content: "";
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 13px solid transparent;
  border-right: 13px solid transparent;
  border-bottom: 13px solid rgba(10, 5, 35, 0.08);
  z-index: -1;
}

.pw-settings-row + .pw-settings-row {
  margin-top: 18px;
}

.pw-settings-title {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 6px;
  font-weight: 700;
  color: var(--berry-black-60);
  font-size: 18px;
  letter-spacing: 0;
}

.pw-settings-value {
  font-weight: 700;
  color: var(--berry-black-60);
}

.pw-range {
  margin-top: 12px;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(10, 5, 35, 0.22);
  background: linear-gradient(
    90deg,
    rgba(10, 5, 35, 0.92) 0%,
    rgba(10, 5, 35, 0.92) var(--range-pct, 0%),
    rgba(10, 5, 35, 0.28) var(--range-pct, 0%),
    rgba(10, 5, 35, 0.28) 100%
  );
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  -webkit-appearance: none;
  appearance: none;
  outline: none;
}

.pw-range::-webkit-slider-runnable-track {
  height: 10px;
  background: transparent;
  border: 0;
  border-radius: 999px;
}

.pw-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.98);
  border: 2px solid rgba(10, 5, 35, 0.10);
  box-shadow: 0 10px 22px rgba(10, 5, 35, 0.18);
  margin-top: -10px;
}

.pw-range::-moz-range-track {
  height: 10px;
  background: transparent;
  border: 0;
  border-radius: 999px;
}

.pw-range::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.98);
  border: 2px solid rgba(10, 5, 35, 0.10);
  box-shadow: 0 10px 22px rgba(10, 5, 35, 0.18);
}

.pw-range:focus-visible {
  box-shadow: 0 0 0 4px rgba(10, 5, 35, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.pw-checks {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.pw-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--berry-black-60);
  user-select: none;
  font-size: 16px;
}

.pw-check input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: var(--berry-black-60);
}

/* --- Post-tool content (match SERP Preview Tool typography) --- */
.content-card {
  margin-top: 100px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.content-card h2 {
  margin: 0 0 12px 0;
  color: black;
  font-size: 30px;
  line-height: 1.25;
  font-weight: 700;
}

.content-card h3 {
  margin: 18px 0 8px;
  color: black;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 600;
}

.content-card p {
  margin: 0 0 12px;
  color: black;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
}

.content-card ol,
.content-card ul {
  margin: 0 0 12px;
  padding-left: 26px;
  list-style-position: outside;
  color: black;
  line-height: 1.55;
}

.content-card ul {
  list-style: disc;
}

.content-card ol {
  list-style: decimal;
}

.content-card li {
  margin: 0 0 8px;
  color: black;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  display: list-item;
  padding-left: 6px;
}

/* --- FAQ accordion (match SERP Preview Tool styling) --- */
.pw-faq.FaqSection .FaqTitle h2 {
  margin-bottom: 30px;
}

.pw-faq.first-faq-block .accordian-wrapper {
  background: linear-gradient(138deg, #fff0 0%, #fff0 100%);
  padding: .15rem;
  border-radius: 15px;
  position: relative;
}

.pw-faq.first-faq-block .faq-boxes {
  background-color: #fff;
  backdrop-filter: blur(10px);
  padding: 0;
  border-radius: 15px;
  border: 2px solid #a200ff38;
}

.pw-faq.first-faq-block .faq-boxes.active {
  background-color: #FBF4FF;
  border: 2px solid #A200FF;
}

.pw-faq .accordion-body {
  padding: 0 15px 18px 22px;
  font-size: 20px;
  font-weight: 400;
  color: #000;
}

.pw-faq .accordion-button {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  padding: 18px 15px 18px 22px;
  font-size: 1rem;
  color: #212529;
  text-align: left;
  background-color: #fff0;
  border: 0;
  border-radius: 0;
  overflow-anchor: none;
  transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out, border-radius .15s ease;
}

.pw-faq .accordion-button h3 {
  font-weight: 600;
  font-size: 20px;
  margin: 0;
  line-height: 1.3;
}

.pw-faq .accordion-button:not(.collapsed) {
  color: #212529;
  background-color: #fff0;
  transition: 0.2s ease-in all;
  padding-bottom: 12px;
  border: 0;
  box-shadow: none;
}

.pw-faq .accordion-button h3 {
  color: #000;
}

.pw-faq .accordion-button:focus {
  z-index: 3;
  border-color: #cecbdc;
  outline: 0;
  box-shadow: 0 0 0 .25rem #fff0;
}

.pw-faq.first-faq-block .accordion-item {
  background-color: #fff0;
  border: 0 solid rgb(0 0 0 / .125);
  margin-bottom: 20px;
}

.pw-faq.first-faq-block .accordion-body p {
  font-size: 16px;
  color: #000;
  font-weight: 400;
  margin-bottom: 0;
  padding-right: 11%;
  line-height: 26px;
}

.pw-faq.first-faq-block .accordion-body p a {
  color: #4A2574;
  font-size: 18px;
  line-height: 32px;
  text-decoration: none;
  font-weight: 400;
}

.pw-faq.first-faq-block .accordion-button:not(.collapsed)::after {
  content: "–";
  transform: none;
}

.pw-faq.first-faq-block .accordion-button::after {
  margin-left: auto;
  content: "+";
  width: 24px;
  height: 24px;
  min-width: 24px;
  flex: 0 0 24px;
  align-self: center;
  margin-right: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  font-weight: 700;
  color: #4A2574;
}

.pw-faq .accordion-collapse {
  display: none;
}

.pw-faq .accordion-collapse.show {
  display: block;
}

@media (max-width: 480px) {
  .pw-faq.first-faq-block .faq-boxes {
    padding-right: 18px;
  }
}
/* Remove the global container bottom gap for this tool page */
        .main > .container{
          margin-bottom: 0;
        }