﻿.nexopulse-attachments-media-ui {
  order: 35 !important;
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(118, 211, 230, 0.24);
  border-radius: 18px;
  background: rgba(4, 17, 21, 0.94);
  box-sizing: border-box;
}

.nexopulse-attachments-heading {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
}

.nexopulse-attachments-eyebrow {
  color: rgba(115, 218, 238, 0.96);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nexopulse-attachments-heading strong {
  color: #f5f9fa;
  font-size: 0.98rem;
}

.nexopulse-attachments-heading > span:last-child {
  color: rgba(224, 235, 237, 0.65);
  font-size: 0.75rem;
  line-height: 1.4;
}

.nexopulse-attachment-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.nexopulse-attachment-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.nexopulse-attachment-action {
  display: grid;
  gap: 4px;
  min-height: 58px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: #f2f7f8;
  text-align: left;
  cursor: pointer;
}

.nexopulse-attachment-action span {
  color: #55e1c6;
  font-size: 0.66rem;
}

.nexopulse-attachment-action:disabled {
  opacity: 0.52;
  cursor: not-allowed;
}

.nexopulse-attachment-action:disabled span {
  color: #e8bc59;
}

.nexopulse-attachment-status {
  margin-top: 9px;
  padding: 9px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  color: rgba(226, 236, 237, 0.68);
  font-size: 0.7rem;
}

.nexopulse-attachment-previews {
  display: grid;
  gap: 8px;
  margin-top: 9px;
}

.nexopulse-attachment-preview {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.028);
}

.nexopulse-attachment-preview-visual {
  display: grid;
  place-items: center;
  width: 58px;
  height: 48px;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.24);
  color: rgba(230, 239, 240, 0.68);
  font-size: 0.6rem;
  font-weight: 800;
}

.nexopulse-attachment-preview-visual img,
.nexopulse-attachment-preview-visual video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nexopulse-attachment-preview-visual audio {
  width: 54px;
}

.nexopulse-attachment-preview-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.nexopulse-attachment-preview-copy strong {
  overflow: hidden;
  color: #f4f8f9;
  font-size: 0.73rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nexopulse-attachment-preview-copy span {
  color: rgba(223, 234, 236, 0.56);
  font-size: 0.64rem;
}

.nexopulse-attachment-remove {
  border: 1px solid rgba(239, 116, 116, 0.24);
  border-radius: 8px;
  background: rgba(239, 116, 116, 0.06);
  color: #f2d7d7;
  cursor: pointer;
}

.nexopulse-attachment-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.nexopulse-attachment-footer span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(225, 235, 237, 0.68);
  font-size: 0.68rem;
}

.nexopulse-attachment-footer em {
  color: #e8bc59;
  font-style: normal;
  font-weight: 800;
}

.nexopulse-attachment-send {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(232, 188, 89, 0.22);
  border-radius: 9px;
  background: rgba(232, 188, 89, 0.055);
  color: rgba(241, 224, 181, 0.7);
}

.nexopulse-root[data-state="retracted"] .nexopulse-attachments-media-ui,
.nexopulse-root[data-state="closed"] .nexopulse-attachments-media-ui {
  display: none !important;
}

@media (max-width: 680px) {
  .nexopulse-attachment-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nexopulse-attachment-footer {
    grid-template-columns: 1fr;
  }
}
