/* ==================================================
   MAIL SENDER — SKYCHARGE FINAL TYPO FIX
   One scale, no chaos
   ================================================== */

/* Overlay */
.mail-sender-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,29,76,0.55);
  backdrop-filter: blur(3px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Modal */
.mail-sender-modal {
  position: relative;
  background: #fff;
  width: 100%;
  max-width: 460px;
  padding: 18px 20px;
  border-radius: 16px;

  font-family: inherit;
  color: #001d4c;

  box-shadow:
    0 18px 48px rgba(0,29,76,0.32),
    inset 0 0 0 1px rgba(0,0,0,0.04);
}

/* ================= TYPOGRAPHY ================= */

/* Title */
.mail-sender-modal h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 12px;
}

/* Labels */
.mail-sender-modal label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin: 10px 0 4px;
}

/* Helper / hints */
.mail-sender-hint,
.mail-sender-files__top {
  font-size: 13px;
  line-height: 1.4;
  color: rgba(0,29,76,0.65);
}

/* ================= CLOSE ================= */

.mail-sender-close {
  position: absolute;
  top: 10px;
  right: 10px;

  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;

  background: rgba(0,29,76,0.08);
  color: #001d4c;
  font-size: 18px;

  cursor: pointer;
}

.mail-sender-close:hover {
  background: rgba(30,135,240,0.18);
  color: rgb(30,135,240);
}

/* ================= INPUTS ================= */

#mail-subject,
#mail-message {
  width: 100%;
  padding: 14px 16px;

  font-size: 16px;
  line-height: 1.4;

  color: #001d4c;
  border-radius: 14px;
  border: none;

  background: rgba(0,29,76,0.045);
  box-shadow: inset 0 0 0 1px rgba(0,29,76,0.18);
}

#mail-message {
  min-height: 140px;
  resize: vertical;
}

#mail-subject:focus,
#mail-message:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px rgba(30,135,240,0.55);
}

#mail-subject::placeholder,
#mail-message::placeholder {
  font-size: 16px;
  color: rgba(0,29,76,0.45);
}

/* Hide native clear */
input::-webkit-search-cancel-button,
input::-webkit-clear-button,
input::-ms-clear {
  display: none;
}

/* ================= FILES ================= */

.mail-files-input,
input[type="file"] {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.mail-sender-files__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.mail-files-add {
  background: none;
  border: none;
  padding: 0;

  font-size: 14px;
  font-weight: 500;
  color: rgb(30,135,240);
  cursor: pointer;
}

/* Files list */
.mail-sender-files__list {
  margin-top: 8px;
  display: grid;
  gap: 6px;
}

.mail-file {
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(0,29,76,0.04);
  box-shadow: inset 0 0 0 1px rgba(0,29,76,0.14);
}

.mail-file__name {
  font-size: 14px;
}

.mail-file__size {
  font-size: 13px;
  opacity: 0.6;
}

/* ================= STATUS ================= */

.mail-sender-status {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;

  font-size: 16px;
  line-height: 1.4;
}

.mail-sender-status.is-success {
  background: rgba(0,160,110,0.15);
  color: #004d35;
}

/* ================= ACTIONS ================= */

.mail-sender-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 14px;
}

.mail-sender-actions button {
  height: 46px;
  padding: 0 28px;
  border-radius: 999px;
  border: none;

  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
}

/* Cancel */
#mail-cancel-btn {
  background: transparent;
  color: rgba(0,29,76,0.75);
}

/* Send */
#mail-send-btn {
  min-width: 170px;
  background: rgba(0,29,76,0.18);
  color: rgba(0,29,76,0.6);
  cursor: not-allowed;
}

#mail-send-btn.is-enabled {
  background: #001d4c;
  color: #ffffff;
  cursor: pointer;
}

#mail-send-btn.is-enabled:hover {
  background: rgb(30,135,240);
}
