* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #0d1117;
  display: flex;
  justify-content: center;
  padding: 24px 12px;
}

.browser-shell {
  width: 100%;
  max-width: 980px;
  background: #1c2128;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  border: 1px solid #30363d;
}

.browser-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  background: #22272e;
  border-bottom: 1px solid #30363d;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}

.dot--red { background: #ff5f57; }
.dot--yellow { background: #febc2e; }
.dot--green { background: #28c840; }

.browser-title {
  margin-left: 8px;
  font-size: 12px;
  color: #8b949e;
}

.browser-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: #1c2128;
  border-bottom: 1px solid #30363d;
}

.urlbar {
  flex: 1;
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12.5px;
  color: #c9d1d9;
  font-family: "SFMono-Regular", Consolas, Menlo, monospace;
}

.toolbar-ext-btn {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  border: 1px solid #30363d;
  background: #262c35;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toolbar-ext-btn:hover {
  border-color: #2dd4bf;
}

.toolbar-ext-icon {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(135deg, #2dd4bf, #0f766e);
  display: block;
}

.browser-body {
  position: relative;
  background: #f4efe6;
  min-height: 560px;
}

/* Mock page: the site the extension is watching. Warm palette so it reads as "a page", not chrome. */
.mock-page {
  padding: 28px 36px 60px;
  color: #3a2f27;
}

.shop-header h1 {
  margin: 0 0 4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  color: #3a2f27;
}

.shop-header p {
  margin: 0 0 14px;
  color: #6b5d50;
  font-size: 13px;
}

.shop-nav {
  display: flex;
  gap: 22px;
  font-size: 12.5px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #8c5a3a;
  border-top: 1px solid #ddceb9;
  border-bottom: 1px solid #ddceb9;
  padding: 10px 0;
  margin-bottom: 24px;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
}

.shop-card {
  background: #fffdf8;
  border: 1px solid #e7dcc8;
  border-radius: 8px;
  padding: 10px;
}

.shop-card__swatch {
  width: 100%;
  height: 80px;
  border-radius: 6px;
  margin-bottom: 8px;
}

.shop-card__name {
  font-size: 12.5px;
  font-weight: 600;
  margin: 0 0 2px;
}

.shop-card__price {
  font-size: 12px;
  color: #8c5a3a;
  margin: 0;
}

/* Simulated cookie banner — intentionally lopsided so the dark pattern is visible before any audit. */
.mock-banner {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  background: #ffffff;
  border: 1px solid #d8d0c2;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.mock-banner.cg-dismissed {
  display: none;
}

.mock-banner__message {
  flex: 1 1 260px;
  font-size: 12.5px;
  color: #3a2f27;
  margin: 0;
}

.mock-banner__toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: #6b5d50;
  flex: 0 0 auto;
}

.mock-banner__actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 0 0 auto;
}

.mock-banner__reject {
  background: none;
  border: none;
  color: #8c8275;
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
  padding: 4px;
}

.mock-banner__accept {
  background: #2f8f5b;
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 11px 22px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(47, 143, 91, 0.35);
}

/* Simulated popup panel — embeds the real extension/popup.html markup over the mock page. */
.popup-panel {
  position: absolute;
  top: 8px;
  right: 16px;
  z-index: 20;
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  border: 1px solid #30363d;
}

.cg-hidden {
  display: none !important;
}

@media (max-width: 640px) {
  .mock-page {
    padding: 20px 16px 48px;
  }

  .mock-banner {
    flex-direction: column;
    align-items: stretch;
  }

  .popup-panel {
    left: 12px;
    right: 12px;
  }

  .cg-popup {
    width: 100%;
  }
}
