.gsc-wrap {
  max-width: 760px;
  margin: 0 auto;
}

.gsc-form {
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
}

.gsc-input-row {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 14px;
  align-items: center;
}

@media (max-width: 640px) {
  .gsc-input-row { grid-template-columns: 1fr; }
  .gsc-button { width: 100%; }
}

.gsc-input {
  width: 100%;
  padding: 16px 16px;
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 16px;
  font-size: 16px;
  background: rgba(255,255,255,.85);
  outline: none;
  transition: box-shadow .18s ease, border-color .18s ease, transform .18s ease;
}

.gsc-input:focus {
  border-color: rgba(0,0,0,.22);
  box-shadow: 0 10px 30px rgba(0,0,0,.10);
  transform: translateY(-1px);
}

.gsc-button {
  padding: 16px 18px;
  border: 0;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(135deg, #0f172a, #111827);
  color: #fff;
  transition: transform .08s ease, box-shadow .18s ease, opacity .15s ease;
  box-shadow: 0 10px 24px rgba(0,0,0,.14);
}

.gsc-button:active { transform: scale(.98); }
.gsc-button[disabled] { opacity: .65; cursor: not-allowed; box-shadow: none; }

.gsc-button.is-loading::after {
  content: "";
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.45);
  border-top-color: rgba(255,255,255,1);
  border-radius: 50%;
  display: inline-block;
  margin-left: 10px;
  vertical-align: middle;
  animation: gscspin .8s linear infinite;
}
@keyframes gscspin { to { transform: rotate(360deg); } }

.gsc-help {
  margin-top: 10px;
  color: rgba(0,0,0,.55);
  font-size: 13px;
  text-align: center;
}

/* Results container */
.gsc-result {
  margin-top: 18px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.75);
  box-shadow: 0 16px 40px rgba(0,0,0,.08);
}

.gsc-result.is-success {
  border-color: rgba(16, 185, 129, .30);
  background: linear-gradient(180deg, rgba(16,185,129,.10), rgba(255,255,255,.75));
}

.gsc-result.is-warning {
  border-color: rgba(245, 158, 11, .35);
  background: linear-gradient(180deg, rgba(245,158,11,.12), rgba(255,255,255,.75));
}

.gsc-result.is-error {
  border-color: rgba(239, 68, 68, .30);
  background: linear-gradient(180deg, rgba(239,68,68,.10), rgba(255,255,255,.75));
}

.gsc-headline {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 6px;
  text-align: center;
}

.gsc-reason {
  color: rgba(0,0,0,.72);
  margin-bottom: 14px;
  text-align: center;
}

/* Product cards */
.gsc-prod-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 720px) {
  .gsc-prod-list { grid-template-columns: 1fr; }
}

.gsc-prod {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(0,0,0,.07);
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
  transition: transform .14s ease, box-shadow .14s ease;
}

.gsc-prod:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(0,0,0,.10);
}

.gsc-prod-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.gsc-prod-name {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -.01em;
}

.gsc-prod-meta {
  color: rgba(0,0,0,.62);
  font-size: 13px;
  margin-top: 8px;
  line-height: 1.35;
}

.gsc-speed {
  margin-top: 8px;
  font-weight: 700;
  color: rgba(0,0,0,.72);
}

.gsc-badge {
  font-size: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.10);
  font-weight: 800;
  letter-spacing: -.01em;
}

.gsc-badge.is-yes {
  background: rgba(16, 185, 129, .12);
  border-color: rgba(16, 185, 129, .28);
}

.gsc-badge.is-no {
  background: rgba(239, 68, 68, .10);
  border-color: rgba(239, 68, 68, .22);
}


/* Hard reset for themes that add bullets/pseudo bullets */
.gsc-prod-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 16px 0 0 !important;
}

.gsc-prod-list li,
.gsc-prod {
  list-style: none !important;
}

.gsc-prod::marker,
.gsc-prod-list li::marker {
  content: "" !important;
}

/* Some themes add bullets via ::before */
.gsc-prod::before,
.gsc-prod-list li::before {
  content: none !important;
  display: none !important;
}

/* === Force product cards into rows/columns (override theme) === */
.gsc-result .gsc-prod-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 16px 0 0 !important;

  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 16px !important;

  /* prevent weird theme behaviors */
  width: 100% !important;
  max-width: 100% !important;
}

@media (max-width: 980px) {
  .gsc-result .gsc-prod-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  .gsc-result .gsc-prod-list {
    grid-template-columns: 1fr !important;
  }
}

/* Make each LI act like a normal grid item (themes often force 100% width / floats) */
.gsc-result .gsc-prod-list > li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;

  float: none !important;
  width: auto !important;
  max-width: none !important;
  display: block !important;
}

/* Remove any theme bullets/pseudo bullets */
.gsc-result .gsc-prod-list > li::marker,
.gsc-result .gsc-prod-list > li::before {
  content: none !important;
  display: none !important;
}

/* Ensure the card fills the grid cell nicely */
.gsc-result .gsc-prod {
  height: 100%;
  width: 100%;
  box-sizing: border-box;
}


/* === Premium card layout === */
.gsc-prod {
  padding: 0 !important;
  margin: 0 !important;
}

.gsc-card {
  height: 100%;
  padding: 16px 16px 14px;
  border-radius: 18px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 12px 28px rgba(0,0,0,.06);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform .14s ease, box-shadow .14s ease;
}

.gsc-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(0,0,0,.10);
}

.gsc-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.gsc-card-title {
  font-weight: 850;
  font-size: 15px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: rgba(0,0,0,.88);
  margin: 0;
  text-align: left;
  /* prevent awkward wrapping */
  word-break: break-word;
}

.gsc-card-meta {
  font-size: 13px;
  line-height: 1.3;
  color: rgba(0,0,0,.60);
  text-align: left;
}

.gsc-card-speed {
  margin-top: 2px;
  font-size: 13px;
  font-weight: 800;
  color: rgba(0,0,0,.76);
  text-align: left;
}

.gsc-card-foot {
  margin-top: auto; /* pushes footer to bottom for consistent card heights */
  font-size: 12px;
  color: rgba(0,0,0,.52);
  border-top: 1px solid rgba(0,0,0,.06);
  padding-top: 10px;
  line-height: 1.25;
  text-align: left;
}

/* Badges */
.gsc-badge {
  white-space: nowrap;
  font-size: 12px;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.10);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.gsc-badge.is-yes {
  background: rgba(16, 185, 129, .12);
  border-color: rgba(16, 185, 129, .28);
  color: rgba(5, 90, 60, .95);
}

.gsc-badge.is-no {
  background: rgba(239, 68, 68, .10);
  border-color: rgba(239, 68, 68, .22);
  color: rgba(140, 20, 40, .95);
}


/* ========= GSC: grid + tiles (theme-proof) ========= */
.gsc-result .gsc-grid{
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 16px !important;
  margin-top: 16px !important;
  width: 100% !important;
  max-width: 100% !important;
}

@media (max-width: 980px){
  .gsc-result .gsc-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px){
  .gsc-result .gsc-grid{
    grid-template-columns: 1fr !important;
  }
}

.gsc-result .gsc-tile{
  background: rgba(255,255,255,.92) !important;
  border: 1px solid rgba(0,0,0,.06) !important;
  border-radius: 18px !important;
  box-shadow: 0 12px 28px rgba(0,0,0,.06) !important;
  padding: 16px !important;
  box-sizing: border-box !important;

  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;

  min-width: 0 !important; /* prevents overflow */
}

.gsc-result .gsc-tile-top{
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 12px !important;
}

.gsc-result .gsc-tile-title{
  font-weight: 800 !important;
  font-size: 15px !important;
  line-height: 1.2 !important;
  letter-spacing: -0.01em !important;
  color: rgba(0,0,0,.88) !important;
  margin: 0 !important;
  min-width: 0 !important;

  /* nice wrapping without “weird” breaks */
  word-break: normal !important;
  overflow-wrap: anywhere !important;
}

.gsc-result .gsc-tile-meta{
  font-size: 13px !important;
  line-height: 1.35 !important;
  color: rgba(0,0,0,.60) !important;
  margin: 0 !important;
}

.gsc-result .gsc-tile-speed{
  font-size: 13px !important;
  font-weight: 800 !important;
  color: rgba(0,0,0,.75) !important;
  margin: 0 !important;
}

/* Pills */
.gsc-result .gsc-pill{
  white-space: nowrap !important;
  font-size: 12px !important;
  padding: 7px 11px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(0,0,0,.10) !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em !important;
}

.gsc-result .gsc-pill.is-yes{
  background: rgba(16, 185, 129, .12) !important;
  border-color: rgba(16, 185, 129, .28) !important;
  color: rgba(5, 90, 60, .95) !important;
}

.gsc-result .gsc-pill.is-no{
  background: rgba(239, 68, 68, .10) !important;
  border-color: rgba(239, 68, 68, .22) !important;
  color: rgba(140, 20, 40, .95) !important;
}


/* === Status bar across the top of the card === */
.gsc-result .gsc-tile{
  padding: 0 !important;              /* status bar sits flush */
  overflow: hidden !important;        /* rounds the bar with the card */
}

.gsc-result .gsc-statusbar{
  width: 100% !important;
  padding: 10px 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 900 !important;
  font-size: 12px !important;
  letter-spacing: -0.01em !important;
  border-bottom: 1px solid rgba(0,0,0,.06) !important;
}

.gsc-result .gsc-statusbar.is-yes{
  background: rgba(16, 185, 129, .14) !important;
  color: rgba(5, 90, 60, .95) !important;
  border-bottom-color: rgba(16, 185, 129, .18) !important;
}

.gsc-result .gsc-statusbar.is-no{
  background: rgba(239, 68, 68, .12) !important;
  color: rgba(140, 20, 40, .95) !important;
  border-bottom-color: rgba(239, 68, 68, .16) !important;
}

.gsc-result .gsc-statusbar-text{
  white-space: nowrap !important;
}

/* Re-add padding for the content area now that tile padding is 0 */
.gsc-result .gsc-tile-title,
.gsc-result .gsc-tile-meta,
.gsc-result .gsc-tile-speed{
  padding-left: 16px !important;
  padding-right: 16px !important;
}

.gsc-result .gsc-tile-title{
  padding-top: 14px !important;
}

.gsc-result .gsc-tile-speed{
  padding-bottom: 16px !important;
}

button.gsc-button {
    background: #0eb7ed !important;
}
