.gsee-wrap {
  width: 100%;
}

.gsee-align-left {
  text-align: left;
}

.gsee-align-center {
  text-align: center;
}

.gsee-align-right {
  text-align: right;
}

.gsee-button {
  text-decoration: none;
  vertical-align: middle;
  isolation: isolate;
  --gsee-glass-tint: #ffffff;
  --gsee-glass-tint-opacity: 0.16;
  --gsee-border-color: rgba(255,255,255,0.35);
  --gsee-border-size: 1px;
}

.glass-surface {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 0.26s ease-out;
}

.glass-surface__filter {
  width: 100%;
  height: 100%;
  pointer-events: none;
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: -1;
}

.glass-surface__content {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border-radius: inherit;
  position: relative;
  z-index: 2;
}

.gsee-button::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: color-mix(in srgb, var(--gsee-glass-tint) calc(var(--gsee-glass-tint-opacity) * 100%), transparent);
  pointer-events: none;
  z-index: 1;
}

.gsee-button::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: var(--gsee-border-size) solid var(--gsee-border-color);
  pointer-events: none;
  z-index: 3;
  box-sizing: border-box;
}

.glass-surface--svg {
  background: light-dark(hsl(0 0% 100% / var(--glass-frost, 0)), hsl(0 0% 0% / var(--glass-frost, 0)));
  backdrop-filter: var(--filter-id, url(#glass-filter)) saturate(var(--glass-saturation, 1));
  box-shadow:
    0 0 2px 1px light-dark(color-mix(in oklch, black, transparent 85%), color-mix(in oklch, white, transparent 65%)) inset,
    0 0 10px 4px light-dark(color-mix(in oklch, black, transparent 90%), color-mix(in oklch, white, transparent 85%)) inset,
    0px 4px 16px rgba(17, 17, 26, 0.05),
    0px 8px 24px rgba(17, 17, 26, 0.05),
    0px 16px 56px rgba(17, 17, 26, 0.05),
    0px 4px 16px rgba(17, 17, 26, 0.05) inset,
    0px 8px 24px rgba(17, 17, 26, 0.05) inset,
    0px 16px 56px rgba(17, 17, 26, 0.05) inset;
}

.glass-surface--fallback {
  background: color-mix(in srgb, var(--gsee-glass-tint) calc((var(--gsee-glass-tint-opacity) + 0.09) * 100%), transparent);
  backdrop-filter: blur(12px) saturate(1.8) brightness(1.1);
  -webkit-backdrop-filter: blur(12px) saturate(1.8) brightness(1.1);
  border: var(--gsee-border-size) solid var(--gsee-border-color);
  box-shadow:
    0 8px 32px 0 rgba(31, 38, 135, 0.2),
    0 2px 16px 0 rgba(31, 38, 135, 0.1),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 0 rgba(255, 255, 255, 0.2);
}

@media (prefers-color-scheme: dark) {
  .glass-surface--fallback {
    background: color-mix(in srgb, var(--gsee-glass-tint) calc((var(--gsee-glass-tint-opacity) + 0.04) * 100%), transparent);
    backdrop-filter: blur(12px) saturate(1.8) brightness(1.2);
    -webkit-backdrop-filter: blur(12px) saturate(1.8) brightness(1.2);
    border: var(--gsee-border-size) solid var(--gsee-border-color);
    box-shadow:
      inset 0 1px 0 0 rgba(255, 255, 255, 0.2),
      inset 0 -1px 0 0 rgba(255, 255, 255, 0.1);
  }
}

@supports not (backdrop-filter: blur(10px)) {
  .glass-surface--fallback {
    background: color-mix(in srgb, var(--gsee-glass-tint) calc((var(--gsee-glass-tint-opacity) + 0.14) * 100%), transparent);
    box-shadow:
      inset 0 1px 0 0 rgba(255, 255, 255, 0.5),
      inset 0 -1px 0 0 rgba(255, 255, 255, 0.3);
  }

  .glass-surface--fallback::before {
    content: '';
    position: absolute;
    inset: 0;
    background: color-mix(in srgb, var(--gsee-glass-tint) 15%, transparent);
    border-radius: inherit;
    z-index: -1;
  }
}

@supports not (backdrop-filter: blur(10px)) {
  @media (prefers-color-scheme: dark) {
    .glass-surface--fallback::before {
      background: color-mix(in srgb, var(--gsee-glass-tint) 5%, transparent);
    }
  }
}

.glass-surface:focus-visible {
  outline: 2px solid light-dark(#007aff, #0a84ff);
  outline-offset: 2px;
}
