.amigoe-quake-widget {
  --amigoe-quake-border: #d9dee7;
  --amigoe-quake-border: color-mix(in srgb, currentColor 18%, transparent);
  --amigoe-quake-text: inherit;
  --amigoe-quake-muted: #667085;
  --amigoe-quake-muted: color-mix(in srgb, currentColor 68%, transparent);
  --amigoe-quake-surface: var(--wp--preset--color--base, transparent);
  --amigoe-quake-accent: var(--wp--preset--color--contrast, #1f2937);
  --amigoe-quake-button: var(--wp--preset--color--primary, #1f6feb);
  color: var(--amigoe-quake-text);
  font-family: inherit;
  margin-block: 1.5rem;
}

.amigoe-quake-header {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: flex-start;
  margin-bottom: 14px;
}

.amigoe-quake-titlewrap {
  width: 100%;
}

.amigoe-quake-actions {
  display: block;
  width: 100%;
  margin: 0 0 14px;
}

.amigoe-quake-actions-note {
  color: var(--amigoe-quake-muted);
  font-size: 0.84rem;
  line-height: 1.35;
  margin: 8px 0 0;
}

.amigoe-quake-header h2 {
  font-family: inherit;
  font-size: var(--wp--preset--font-size--large, 1.5rem);
  font-weight: inherit;
  line-height: 1.2;
  margin: 0 0 4px;
}

.amigoe-quake-header p,
.amigoe-quake-footer {
  color: var(--amigoe-quake-muted);
  font-size: 0.9rem;
  margin: 0;
}

.amigoe-quake-notify {
  display: block;
  background: var(--amigoe-quake-button);
  border: 1px solid var(--amigoe-quake-button);
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  min-height: 48px;
  padding: 10px 14px;
  white-space: normal;
  width: 100%;
  box-sizing: border-box;
}

.amigoe-quake-notify:disabled {
  background: var(--amigoe-quake-muted);
  border-color: transparent;
  cursor: default;
}

.amigoe-quake-alert {
  background: #b42318;
  border-radius: 4px;
  color: #fff;
  font-weight: 700;
  margin-bottom: 14px;
  padding: 12px 14px;
}

.amigoe-quake-alert span {
  display: block;
  font-weight: 500;
  margin-top: 4px;
}

.amigoe-tsunami-alert {
  background: #7c2d12;
}

.amigoe-quake-layout {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

.amigoe-quake-map {
  border: 1px solid var(--amigoe-quake-border);
  border-radius: 4px;
  min-height: 360px;
  overflow: hidden;
}

.amigoe-quake-list {
  border: 1px solid var(--amigoe-quake-border);
  border-radius: 4px;
  max-height: 360px;
  overflow: auto;
  background: var(--amigoe-quake-surface);
}

.amigoe-quake-item {
  align-items: flex-start;
  border-bottom: 1px solid var(--amigoe-quake-border);
  display: grid;
  gap: 12px;
  grid-template-columns: 58px 1fr;
  padding: 12px;
}

.amigoe-quake-item:last-child {
  border-bottom: 0;
}

.amigoe-quake-item h3 {
  font-family: inherit;
  font-size: 1rem;
  font-weight: inherit;
  line-height: 1.25;
  margin: 0 0 4px;
}

.amigoe-quake-item p {
  color: var(--amigoe-quake-muted);
  font-size: 0.88rem;
  line-height: 1.4;
  margin: 0 0 6px;
}

.amigoe-quake-item a {
  color: inherit;
  font-weight: 700;
  margin-right: 10px;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.amigoe-quake-mag {
  align-items: center;
  border-radius: 4px;
  color: #fff;
  display: flex;
  font-weight: 800;
  height: 42px;
  justify-content: center;
  width: 54px;
}

.amigoe-tsunami-badge {
  background: #7c2d12;
  border-radius: 4px;
  color: #fff;
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  padding: 4px 7px;
}

.amigoe-quake-marker {
  background: transparent;
  border: 0;
}

.amigoe-quake-marker span {
  align-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
  color: #fff;
  display: flex;
  font-size: 11px;
  font-weight: 800;
  justify-content: center;
}

.amigoe-island-marker {
  background: transparent;
  border: 0;
}

.amigoe-island-marker span {
  background: var(--amigoe-quake-accent);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
  color: #fff;
  display: inline-flex;
  font-size: 11px;
  font-weight: 800;
  justify-content: center;
  line-height: 1;
  min-width: 58px;
  padding: 6px 8px;
}

.amigoe-tsunami-map-marker {
  background: transparent;
  border: 0;
}

.amigoe-tsunami-map-marker span {
  align-items: center;
  background: #7c2d12;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
  color: #fff;
  display: flex;
  font-size: 11px;
  font-weight: 900;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.amigoe-tsunami-map-info span {
  background: #475467;
}

.amigoe-tsunami-map-advisory span,
.amigoe-tsunami-map-watch span {
  background: #f77f00;
}

.amigoe-tsunami-map-warning span {
  background: #b42318;
}

.amigoe-quake-empty {
  color: var(--amigoe-quake-muted);
  margin: 0;
  padding: 16px;
}

.amigoe-quake-footer {
  margin-top: 10px;
}

.amigoe-tsunami-panel {
  border-top: 1px solid var(--amigoe-quake-border);
  margin-top: 18px;
  padding-top: 16px;
}

.amigoe-tsunami-panel header {
  margin-bottom: 10px;
}

.amigoe-tsunami-panel h3,
.amigoe-tsunami-item h4 {
  font-family: inherit;
  font-weight: inherit;
  line-height: 1.25;
  margin: 0 0 4px;
}

.amigoe-tsunami-panel h3 {
  font-size: var(--wp--preset--font-size--medium, 1.2rem);
}

.amigoe-tsunami-panel p,
.amigoe-tsunami-item p {
  color: var(--amigoe-quake-muted);
  font-size: 0.9rem;
  line-height: 1.45;
  margin: 0 0 6px;
}

.amigoe-tsunami-item {
  border: 1px solid var(--amigoe-quake-border);
  border-left: 4px solid var(--amigoe-quake-muted);
  border-radius: 4px;
  margin-bottom: 10px;
  padding: 12px;
}

.amigoe-tsunami-item strong {
  display: inline-block;
  font-size: 0.78rem;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.amigoe-tsunami-item a {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.amigoe-tsunami-warning {
  border-left-color: #b42318;
}

.amigoe-tsunami-advisory,
.amigoe-tsunami-watch {
  border-left-color: #f77f00;
}

.amigoe-news-panel {
  border-top: 1px solid var(--amigoe-quake-border);
  margin-top: 18px;
  padding-top: 16px;
}

.amigoe-news-panel header {
  margin-bottom: 10px;
}

.amigoe-news-panel h3,
.amigoe-news-item h4 {
  font-family: inherit;
  font-weight: inherit;
  line-height: 1.25;
  margin: 0 0 4px;
}

.amigoe-news-panel h3 {
  font-size: var(--wp--preset--font-size--medium, 1.2rem);
}

.amigoe-news-panel p,
.amigoe-news-item p {
  color: var(--amigoe-quake-muted);
  font-size: 0.9rem;
  line-height: 1.45;
  margin: 0 0 6px;
}

.amigoe-news-item {
  border: 1px solid var(--amigoe-quake-border);
  border-left: 4px solid var(--amigoe-quake-button);
  border-radius: 4px;
  margin-bottom: 10px;
  padding: 12px;
}

.amigoe-news-item strong {
  display: inline-block;
  font-size: 0.78rem;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.amigoe-news-item a {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

@media (max-width: 760px) {
  .amigoe-quake-header {
    align-items: stretch;
    flex-direction: column;
  }

  .amigoe-quake-notify {
    width: 100%;
  }

  .amigoe-quake-layout {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1180px) {
  .amigoe-quake-widget[data-layout="wide"] .amigoe-quake-layout {
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  }
}
