/*
 * Copyright 2017 The Chromium Authors
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

.widget {
  box-sizing: border-box;
  max-width: 400px;
  overflow: hidden;
}

.header {
  display: flex;
  margin: var(--sys-size-5) var(--sys-size-5) var(--sys-size-5) var(--sys-size-8);
  padding-top: var(--sys-size-3);
  font: var(--sys-typescale-body2-medium);
}

.message {
  font: var(--sys-typescale-body4-regular);
  white-space: pre;
  margin: 0 var(--sys-size-8);
}

/* Center-align text and added margin to the button class */
.button {
  text-align: center;
  margin: var(--sys-size-6) var(--sys-size-8) var(--sys-size-8) var(--sys-size-8);
  display: flex;
  flex-direction: row-reverse;
  gap: var(--sys-size-5);
}

/* Ensure the button has a minimum width */
.button button {
  min-width: 100px; /* Increased minimum width for better appearance */
}

.reason {
  color: var(--sys-color-error);
  margin-top: 10px; /* Added top margin for better spacing */
}

/* Added white-space property to handle text overflow */
.message span {
  white-space: normal;
  overflow-wrap: break-word; /* Allow long words to break and wrap to the next line */
  max-width: 100%;
  display: inline-block;
  overflow: hidden;
  text-overflow: ellipsis;
}
