@charset "UTF-8";

body {
  padding: 50px;
  font:
    14px "Lucida Grande",
    Helvetica,
    Arial,
    sans-serif;
  color: #553d27;
  background-color: #c0e3e0;
}

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

.flex {
  display: flex;
  align-items: center;
}

input,
textarea {
  max-width: 100%;
}

.vertical-centering {
  vertical-align: middle;
}

/* order */
.input-field {
  background-color: #fff;
  padding: 8px 12px;
  border-radius: 3px;
}
.gray-out {
  background-color: #e0e0e0;
  cursor: not-allowed;
}

.input-field:disabled {
  background-color: #e0e0e0;
  cursor: not-allowed;
}

/* button */
.btn-box {
  margin-top: 60px;
  display: flex;
  align-items: center;
}

/* error */
.error {
  display: none;
  color: red;
  font-weight: bold;
  font-size: 12px;
  margin-bottom: 10px;
}

/* dialog */
.dialog-wrap {
  border: none;
  border-radius: 15px;
  padding: 30px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 400px;
  transition: all 0.3s ease-in-out;
  text-align: center;
}

.confirm-img {
  width: 70px;
  margin: 0 auto;
}

/* dialog h2 {
  margin-top: 0;
  font-size: 1.5rem;
  color: #333;
} */

dialog p {
  margin: 20px 0;
  color: #666;
  font-size: 1rem;
}

/* dialog input {
  width: 100%;
  padding: 12px;
  margin: 10px 0 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
} */

dialog button {
  /* width: calc(50% - 10px); */
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  width: 100px;
}

/* dialog #email-error {
  color: #ff4d4d;
  font-size: 0.9rem;
  margin: 0 0 15px 5px;
  display: none;
}

dialog #share-success {
  color: #4caf50;
  font-size: 1rem;
  text-align: center;
  margin: 0 0 15px 5px;
  display: none;
} */

/* dialog #share-order{
  background: #009d90;
  color: #fff;
  margin-right: 10px;
} */

/* dialog #share-order:hover {
  background: #006f6b;
} */

dialog .close-dialog {
  background: #e0e0e0;
  color: #333;
}

dialog .close-dialog:hover {
  background: #ccc;
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 768px) {
  body {
    padding: 20px;
  }

  dialog {
    padding: 15px;
  }

  dialog h2 {
    font-size: 1.25rem;
  }

  dialog p {
    font-size: 0.9rem;
  }

  dialog button {
    font-size: 0.9rem;
    padding: 10px;
  }
}

.success-message {
  display: none;
}

/* 新しいボタンのベーススタイル */
.order-button {
  position: relative;
  border: none;
  cursor: pointer;
}

.order-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* 一時保存ボタン */
.save-draft-btn {
  color: #fff;
  font-size: 20px;
  background-color: #009d90;
  padding: 10px 20px;
  border-radius: 8px;
  margin-right: 10px;
}

.save-draft-btn:hover {
  background-color: #00b8a3;
}

/* 送信ボタン */
.submit-btn {
  color: #fff;
  font-size: 20px;
  background-color: #009d90;
  padding: 10px 20px;
  border-radius: 8px;
  margin-right: 10px;
}

.submit-btn:hover {
  background-color: #00b8a3;
}

/* 破棄ボタン */
.delete-draft-btn {
  color: #fff;
  font-size: 20px;
  background-color: #d32f2f;
  padding: 10px 20px;
  border-radius: 8px;
  margin-left: auto;
}

.delete-draft-btn:hover {
  background-color: #f44336;
}

/* ヘッダー部分のレイアウト */
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logout-button {
  color: #fff;
  font-size: 20px;
  background-color: #d32f2f;
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  position: relative;
}

.logout-button:hover {
  background-color: #f44336;
}

.logout-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* ローディングオーバーレイ */
.loading-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.loading-overlay.active {
  display: flex;
}

.loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
  box-sizing: border-box;
}
