/* WHOIS Lookup branding. Every brand-coloured rule uses literal hex (no
   CSS variables) plus !important — themes love to define `button[type=submit]`
   and `button` globally, and the wrong-coloured button is the #1 thing
   users notice on this page. */
.rgyd-whois { max-width: 1100px; margin: 0 auto; }
.rgyd-whois__intro h2 { margin: 0 0 8px; color: #101010; }
.rgyd-whois__intro p { margin: 0 0 16px; color: #524F4F; }

.rgyd-whois__form { margin: 12px 0 18px; }
.rgyd-whois__searchbar { display: flex; gap: 10px; align-items: stretch; }
.rgyd-whois__searchbar input {
  flex: 1;
  border: 1.5px solid #D1D5DB !important;
  border-radius: 12px !important;
  padding: 14px 16px !important;
  font-size: 16px;
  outline: none;
  background: #FFFFFF !important;
  transition: border-color .12s ease, box-shadow .12s ease;
}
.rgyd-whois__searchbar input:focus {
  border-color: #588E31 !important;
  box-shadow: 0 0 0 3px rgba(88, 142, 49, 0.18) !important;
}
.rgyd-whois__searchbar button,
.rgyd-whois__searchbar button[type="submit"] {
  background: #588E31 !important;
  background-image: none !important;
  color: #FFFFFF !important;
  border: 1.5px solid #588E31 !important;
  border-radius: 999px !important;
  padding: 12px 26px !important;
  cursor: pointer;
  font-weight: 600 !important;
  font-size: 14px;
  box-shadow: 0 2px 6px rgba(88, 142, 49, 0.22) !important;
  transition: transform .14s ease, background-color .14s ease, box-shadow .14s ease, border-color .14s ease;
  -webkit-appearance: none !important;
  appearance: none !important;
}
.rgyd-whois__searchbar button:hover,
.rgyd-whois__searchbar button[type="submit"]:hover {
  background: #467024 !important;
  border-color: #467024 !important;
  color: #FFFFFF !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(88, 142, 49, 0.30) !important;
}

.rgyd-whois__zones { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.rgyd-chip {
  background: rgba(88, 142, 49, 0.08) !important;
  border: 1px solid rgba(88, 142, 49, 0.18) !important;
  color: #467024 !important;
  padding: 6px 14px !important;
  border-radius: 999px !important;
  font-size: 13px;
  font-weight: 600;
}

.rgyd-notice { border-radius: 12px; padding: 12px 14px; margin: 12px 0; border: 1px solid #EDEFF1; }
.rgyd-notice--error { background: #fff5f5; border-color: #ffd6d6; color: #202224; }
.rgyd-notice--info { background: #F0F7E8; border-color: #C2DCA9; color: #202224; }

.rgyd-whois__tabs {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin: 14px 0 18px;
}
/* Result-section tabs (Information / Contacts / DNS / Raw). Force-green
   even when inactive so theme accent colours (pink/red on the user's site)
   can't beat the rules. */
.rgyd-tab,
.rgyd-whois .rgyd-tab,
.rgyd-whois button.rgyd-tab,
.rgyd-whois__tabs button {
  background: #FFFFFF !important;
  background-image: none !important;
  border: 1.5px solid #588E31 !important;
  color: #588E31 !important;
  padding: 10px 18px !important;
  border-radius: 999px !important;
  cursor: pointer;
  font-weight: 600 !important;
  font-size: 14px !important;
  font-family: inherit;
  transition: background-color .14s ease, color .14s ease, border-color .14s ease, box-shadow .14s ease;
  -webkit-appearance: none !important;
  appearance: none !important;
}
.rgyd-tab:hover,
.rgyd-whois .rgyd-tab:hover,
.rgyd-whois button.rgyd-tab:hover,
.rgyd-whois__tabs button:hover {
  background: rgba(88, 142, 49, 0.08) !important;
  border-color: #467024 !important;
  color: #467024 !important;
}
.rgyd-tab.is-active,
.rgyd-whois .rgyd-tab.is-active,
.rgyd-whois button.rgyd-tab.is-active,
.rgyd-whois__tabs button.is-active {
  background: #588E31 !important;
  background-image: none !important;
  color: #FFFFFF !important;
  border-color: #588E31 !important;
  box-shadow: 0 2px 6px rgba(88, 142, 49, 0.22) !important;
}

.rgyd-section { margin-bottom: 18px; scroll-margin-top: 90px; }

.rgyd-card {
  background: #fff;
  border: 1px solid #EDEFF1;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 14px;
}
.rgyd-card h3 { margin: 0 0 12px; color: #101010; }
.rgyd-card h4 { margin: 14px 0 8px; color: #101010; }

.rgyd-cta-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.rgyd-cta-pitch {
  margin-top: 10px;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.rgyd-cta-pitch p {
  margin: 0 0 8px;
}

.rgyd-cta-pitch p:last-child {
  margin-bottom: 0;
}

.rgyd-cta-big { font-size: 26px; font-weight: 800; color: #101010; line-height: 1.1; }

.rgyd-buy-form {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0;
}

.rgyd-label-inline { margin: 0; }

.rgyd-buy-years {
  border: 1px solid #EDEFF1;
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
}

.rgyd-buy-total { min-width: 160px; }

.rgyd-btn,
.rgyd-whois .rgyd-btn,
.rgyd-whois a.rgyd-btn,
.rgyd-whois button.rgyd-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #588E31 !important;
  background-image: none !important;
  color: #FFFFFF !important;
  border: 1.5px solid #588E31 !important;
  border-radius: 999px !important;
  padding: 11px 22px !important;
  cursor: pointer;
  font-weight: 600 !important;
  font-size: 14px !important;
  text-decoration: none !important;
  box-shadow: 0 2px 6px rgba(88, 142, 49, 0.22) !important;
  transition: transform .14s ease, background-color .14s ease, box-shadow .14s ease, border-color .14s ease;
  -webkit-appearance: none !important;
  appearance: none !important;
}
.rgyd-btn:hover,
.rgyd-whois .rgyd-btn:hover,
.rgyd-whois a.rgyd-btn:hover,
.rgyd-whois button.rgyd-btn:hover {
  background: #467024 !important;
  border-color: #467024 !important;
  color: #FFFFFF !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(88, 142, 49, 0.30) !important;
}

.rgyd-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
}
.rgyd-label { font-size: 12px; color: #524F4F; margin-bottom: 4px; }
.rgyd-value { color: #202224; word-break: break-word; overflow-wrap: anywhere; }

.rgyd-tablewrap { overflow-x: auto; }
.rgyd-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}
.rgyd-table th, .rgyd-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #EDEFF1;
  text-align: left;
  vertical-align: top;
}
.rgyd-table thead th { color: #202224; background: #F0F7E8; }
.rgyd-table tbody tr:nth-child(even) { background: #F8FBF4; }

.rgyd-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }

.rgyd-accordion summary {
  cursor: pointer;
  font-weight: 700;
  padding: 10px 12px;
  border: 1px solid #EDEFF1;
  border-radius: 12px;
  background: #F0F7E8;
}
.rgyd-accordion[open] summary { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.rgyd-pre {
  margin: 0;
  padding: 12px;
  border: 1px solid #EDEFF1;
  border-top: 0;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  max-height: 520px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
}

@media (max-width: 720px) {
  .rgyd-whois__searchbar { flex-direction: column; }
  .rgyd-grid { grid-template-columns: 1fr; }
  .rgyd-whois__tabs { gap: 8px; }
  .rgyd-tab { width: 100%; text-align: left; }
  .rgyd-table { min-width: 560px; }

  .rgyd-cta-row { align-items: stretch; }
  .rgyd-buy-form { width: 100%; }
  .rgyd-buy-years { flex: 1; min-width: 120px; }
  .rgyd-btn { width: 100%; }
}
