/* Google Photos Delete Tool Storefront Brand & Companion Overrides (DESIGN.md Parity) */
:root {
  --gpdt-surface: #F7F6F3;
  --gpdt-surface-raised: #FFFFFF;
  --gpdt-surface-sunken: #EDEBE6;
  --gpdt-on-surface: #1A1920;
  --gpdt-on-surface-muted: #5C5A66;
  --gpdt-outline: #D6D3CC;
  --gpdt-primary: #4B32C3;
  --gpdt-primary-hover: #3D27A6;
  --gpdt-on-primary: #FFFFFF;
  --gpdt-primary-container: #ECE8FB;
  --gpdt-on-primary-container: #2A1A7A;
  --gpdt-keep: #16794A;
  --gpdt-keep-container: #E3F4EA;
  --gpdt-caution: #8A5300;
  --gpdt-caution-container: #FDF1DC;
  font-feature-settings: "tnum" 1, "cv02" 1, "cv03" 1;
}

@media (prefers-color-scheme: dark) {
  :root {
    --gpdt-surface: #141318;
    --gpdt-surface-raised: #1F1E25;
    --gpdt-surface-sunken: #282630;
    --gpdt-on-surface: #EDEBF2;
    --gpdt-on-surface-muted: #A7A4B3;
    --gpdt-outline: #38363F;
    --gpdt-primary: #B7A9FF;
    --gpdt-primary-hover: #C8BDFF;
    --gpdt-on-primary: #1E1259;
    --gpdt-primary-container: #292249;
    --gpdt-on-primary-container: #E4DDFF;
    --gpdt-keep: #5FD39A;
    --gpdt-keep-container: #162B22;
    --gpdt-caution: #F2B866;
    --gpdt-caution-container: #2E2312;
  }
}

/* Tabular figures on all pricing, ratings, seat counts, and metrics */
.sf-proof-pill,
[data-keel-money-checkout],
#gpdt-credits,
#storefront-root table {
  font-variant-numeric: tabular-nums;
}

/* Companion panels inherit the storefront palette without changing activation behavior. */
#gpdt-credits {
  max-width: 1120px !important;
  margin: 0 auto 20px !important;
  padding: 20px !important;
  background: var(--gpdt-surface-raised) !important;
  color: var(--gpdt-on-surface) !important;
  border: 1px solid var(--gpdt-outline) !important;
  border-radius: 12px !important;
  box-shadow: none !important;
}
#gpdt-credits h2 {
  color: var(--gpdt-on-surface) !important;
  letter-spacing: -0.01em !important;
}
#gpdt-credits p,
#gpdt-credits label[for="gpdt-credits-waiver"] {
  color: var(--gpdt-on-surface-muted) !important;
}
#gpdt-credits fieldset {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
}
@media (max-width: 640px) {
  #gpdt-credits fieldset {
    grid-template-columns: 1fr !important;
  }
}
#gpdt-credits fieldset legend {
  color: var(--gpdt-on-surface) !important;
}
#gpdt-credits label[for^="gpdt-offer-"] {
  background: var(--gpdt-surface) !important;
  border: 1px solid var(--gpdt-outline) !important;
  border-radius: 8px !important;
  color: var(--gpdt-on-surface) !important;
}
#gpdt-credits label[for^="gpdt-offer-"]:has(input:checked) {
  background: var(--gpdt-primary-container) !important;
  border-color: var(--gpdt-primary) !important;
}
#gpdt-credits input[type="email"] {
  background: var(--gpdt-surface) !important;
  color: var(--gpdt-on-surface) !important;
  border: 1px solid var(--gpdt-outline) !important;
}
#gpdt-credits button[type="submit"] {
  background: var(--gpdt-primary) !important;
  color: var(--gpdt-on-primary) !important;
  font-weight: 600 !important;
}
#gpdt-policy-gate {
  background: var(--gpdt-surface-sunken) !important;
  color: var(--gpdt-on-surface) !important;
  border: 1px solid var(--gpdt-outline) !important;
  border-radius: 8px !important;
}
#gpdt-activation-status {
  margin-top: 12px !important;
  padding: 12px 14px !important;
  border-radius: 8px !important;
  background: var(--gpdt-primary-container) !important;
  border: 1px solid var(--gpdt-primary) !important;
  color: var(--gpdt-on-surface) !important;
  font-weight: 600 !important;
}
#gpdt-wallet-connect-form {
  background: var(--gpdt-primary-container) !important;
  border: 1px solid var(--gpdt-primary) !important;
  border-radius: 10px !important;
  color: var(--gpdt-on-surface) !important;
}
#gpdt-wallet-connect-form h3 {
  color: var(--gpdt-on-surface) !important;
}
#gpdt-wallet-connect-form label[for="gpdt-connect-consent"] {
  color: var(--gpdt-on-surface-muted) !important;
}
#gpdt-bridge-box {
  background: var(--gpdt-surface-raised) !important;
  border: 1px solid var(--gpdt-outline) !important;
  color: var(--gpdt-on-surface) !important;
}
#gpdt-bridge-box #key-value {
  background: var(--gpdt-surface) !important;
  border: 1px solid var(--gpdt-outline) !important;
  color: var(--gpdt-on-surface) !important;
}
#gpdt-bridge-box #gpdt-bridge-action {
  background: var(--gpdt-primary) !important;
  color: var(--gpdt-on-primary) !important;
}
#gpdt-bridge-box #gpdt-copy-key {
  background: var(--gpdt-surface) !important;
  border: 1px solid var(--gpdt-outline) !important;
  color: var(--gpdt-on-surface) !important;
}
/* Override Keel fixed height (48px) on accordion triggers so wrapped questions on narrow viewports never clip. */
#storefront-root .sf-faq-list summary,
#storefront-root details.sf-recover-disclosure > summary {
  height: auto !important;
  min-height: 48px !important;
  padding: 0.8rem 1rem !important;
  line-height: 1.45 !important;
  white-space: normal !important;
  text-align: left !important;
  justify-content: space-between !important;
  align-items: center !important;
}
#storefront-root .sf-faq-list summary > span,
#storefront-root details.sf-recover-disclosure > summary > span {
  font-size: 0.9375rem !important;
  line-height: 1.45 !important;
  white-space: normal !important;
  text-align: left !important;
  min-width: 0;
  flex: 1 1 auto;
}
#storefront-footer-links {
  gap: 0.25rem 0.75rem !important;
}
#storefront-footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  white-space: nowrap;
}
