/* .section-dialog {
  background-color: #f0f8ff;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
} */
/* Styles for the native <dialog> element */
.dialog {
  z-index: 9999;
}
.extra-charge {
    position: absolute;
    top: -8px;
    /* Adjust as needed */
    right: -8px;
    /* Adjust as needed */
    background-color: #ffc107;
    /* Yellow background */
    color: #333;
    font-size: 1em;
    padding: 2px 6px;
    border-radius: 5px;
    font-weight: bold;
    white-space: nowrap;
    /* Prevent text wrapping */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.text-small{
  font-size: 12px;
}

dialog {
  border: none;
  padding: 20px;
  background-color: #ffffff;
  /* White background for the dialog */
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  max-width: 400px;
  width: 90%;
  /* Responsive width */
  text-align: center;
  border: 2px solid #007bff;
  /* Blue border */
  /* Explicit centering for the dialog */
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  /* Override any default margins */
  opacity: 0;
  /* Start hidden */
  /* Slightly scaled down for animation */
  transform: translate(-50%, -50%) scale(0.95);
  /* Slightly scaled down for animation */
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
  /* 0.5s transition */
}

dialog::backdrop {
  background-color: rgba(0, 0, 0, 0.5);
  transition: background-color 0.5s ease-out;
  /* Backdrop fade transition */
}

/* Hide dialog by default, show with JS */
dialog[open] {
  opacity: 1;
  /* Fade in when open */
  transform: translate(-50%, -50%) scale(1);
  /* Scale up to normal size */
}

dialog:not([open]) {
  display: none;
}

.striked-price {
  text-decoration: line-through;
  color: #888;
  opacity: 0.69;
  font-size: 22px;
  margin-right: 5px;
}

.button-payment, .button-close-dialog {
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

.button-container {
  display: flex;
  flex-direction: column;
  /* gap: 10px; */
  /* Space between buttons */
  margin-top: 20px;
}

.primary-button {
  background-color: #007bff;
  /* Blue button */
  color: white;
  font-weight: normal;
  transform: translateZ(0);
}

.primary-button:hover {
  background-color: #0056b3;
  /* Darker blue on hover */
}

.secondary-button {
  background-color: #e0e0e0;
  /* Light gray button */
  color: #333;
  border: 1px solid #ccc;
}

.secondary-button:hover {
  background-color: #c0c0c0;
  /* Darker gray on hover */
}
