/* Customer area (portal) */

.eb-portal {
  max-width: 760px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
  box-sizing: border-box;
}

.eb-portal--login {
  max-width: 440px;
  background: #fff;
  border: 1px solid #ece7f5;
  border-radius: 20px;
  box-shadow: 0 14px 40px rgba(60, 20, 110, 0.1);
  padding: 1.75rem 1.5rem;
  text-align: center;
}

.eb-portal--login h2 {
  margin: 0 0 0.5rem;
  color: #3a0f66;
  font-family: "Fredoka", "Poppins", system-ui, sans-serif;
}

.eb-portal__intro {
  color: #6b6180;
  font-size: 0.95rem;
  margin: 0 0 1.25rem;
}

.eb-portal__login-form {
  text-align: left;
}

.eb-portal__login-form .btn {
  width: 100%;
  margin-top: 0.5rem;
}

.eb-portal__header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.eb-portal__eyebrow {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8a7aa3;
}

.eb-portal__header h2 {
  margin: 0.15rem 0;
  color: #3a0f66;
  font-family: "Fredoka", "Poppins", system-ui, sans-serif;
  font-size: 1.6rem;
}

.eb-portal__email {
  margin: 0;
  color: #6b6180;
  font-size: 0.92rem;
}

.eb-portal__logout {
  color: #6b6180;
  font-size: 0.9rem;
  text-decoration: underline;
  white-space: nowrap;
}

.eb-portal__notice {
  padding: 0.75rem 1rem;
  border-radius: 12px;
  margin: 0 0 1rem;
  font-size: 0.95rem;
}

.eb-portal__notice--success {
  background: #eefaf1;
  color: #1a7f37;
}

.eb-portal__notice--error {
  background: #fdf0f0;
  color: #b32d2e;
}

.eb-portal__tabs {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin: 0 0 1.25rem;
  border-bottom: 1px solid #ece7f5;
  padding-bottom: 0.35rem;
}

.eb-portal__tab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  text-decoration: none;
  color: #6b6180;
  font-weight: 600;
  font-size: 0.92rem;
}

.eb-portal__tab.is-active {
  background: #3a0f66;
  color: #fff;
}

.eb-portal__badge {
  display: inline-flex;
  min-width: 1.2rem;
  height: 1.2rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: #e8a317;
  color: #1d2327;
  font-size: 0.72rem;
  align-items: center;
  justify-content: center;
}

.eb-portal__tab.is-active .eb-portal__badge {
  background: #fff;
  color: #3a0f66;
}

.eb-portal-section {
  margin: 0 0 1.75rem;
}

.eb-portal-section h3 {
  margin: 0 0 0.75rem;
  color: #3a0f66;
  font-size: 1.1rem;
}

.eb-portal__empty {
  color: #6b6180;
  margin: 0;
  font-size: 0.95rem;
}

.eb-portal-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.eb-portal-card {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  background: #fff;
  border: 1px solid #ece7f5;
  border-radius: 14px;
  flex-wrap: wrap;
}

.eb-portal-card__main {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
  flex: 1;
}

.eb-portal-card__main strong {
  color: #3a0f66;
}

.eb-portal-card__main span,
.eb-portal-card__main code {
  color: #6b6180;
  font-size: 0.88rem;
}

.eb-portal-card__side {
  display: grid;
  gap: 0.35rem;
  justify-items: end;
  align-content: start;
}

.eb-portal-card__amount {
  font-weight: 700;
  color: #3a0f66;
}

.eb-portal-pill {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: #f3f0f8;
  color: #6b6180;
  font-size: 0.75rem;
  font-weight: 600;
}

.eb-portal-pill--paid {
  background: #eefaf1;
  color: #1a7f37;
}

.eb-portal-link {
  font-size: 0.85rem;
  color: #3a0f66;
}

.eb-portal-download {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
  text-decoration: none;
}

.eb-portal-thread {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: grid;
  gap: 0.65rem;
  max-height: 420px;
  overflow-y: auto;
}

.eb-portal-bubble {
  max-width: 85%;
  padding: 0.7rem 0.9rem;
  border-radius: 14px;
}

.eb-portal-bubble--me {
  margin-left: auto;
  background: #3a0f66;
  color: #fff;
}

.eb-portal-bubble--them {
  margin-right: auto;
  background: #f3f0f8;
  color: #1d2327;
}

.eb-portal-bubble__meta {
  font-size: 0.72rem;
  opacity: 0.75;
  margin-bottom: 0.25rem;
}

.eb-portal-bubble__body {
  font-size: 0.95rem;
  line-height: 1.45;
  word-break: break-word;
}

.eb-portal__compose textarea {
  width: 100%;
  border: 1px solid #d9d2e8;
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  font: inherit;
  box-sizing: border-box;
  resize: vertical;
  margin-bottom: 0.6rem;
}

.eb-portal__compose .btn {
  width: auto;
}

/* Song requests */
.eb-songs__intro {
  margin-bottom: 1rem;
}

.eb-songs__booking {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1.1rem;
}

.eb-songs__booking label {
  font-weight: 600;
  color: #3a0f66;
  font-size: 0.9rem;
}

.eb-songs__booking select,
.eb-songs__add-row input,
.eb-songs__add-row select,
.eb-songs__search input {
  border: 1px solid #d9d2e8;
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  font: inherit;
  background: #fff;
}

.eb-songs__search {
  margin-bottom: 1.25rem;
}

.eb-songs__search label {
  display: block;
  font-weight: 600;
  color: #3a0f66;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.eb-songs__search input {
  width: 100%;
  box-sizing: border-box;
}

.eb-songs__status {
  margin: 0.5rem 0 0;
  font-size: 0.88rem;
  color: #6b6180;
  min-height: 1.1em;
}

.eb-songs__results {
  list-style: none;
  margin: 0.6rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
  max-height: 340px;
  overflow-y: auto;
}

.eb-songs__result {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.6rem;
  border: 1px solid #ece7f5;
  border-radius: 12px;
  background: #fff;
}

.eb-songs__result-meta {
  display: grid;
  gap: 0.1rem;
  flex: 1;
  min-width: 0;
}

.eb-songs__result-meta strong {
  color: #3a0f66;
  font-size: 0.95rem;
}

.eb-songs__result-meta span {
  color: #6b6180;
  font-size: 0.85rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.eb-songs__result-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.eb-songs__preview {
  border: 1px solid #d9d2e8;
  background: #fff;
  color: #3a0f66;
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  font-size: 0.8rem;
  cursor: pointer;
}

.eb-songs__choose {
  padding: 0.35rem 0.9rem;
  font-size: 0.82rem;
}

.eb-songs__art {
  border-radius: 8px;
  flex-shrink: 0;
}

.eb-songs__add {
  padding: 0.9rem 1rem;
  border: 1px solid #ece7f5;
  border-radius: 14px;
  background: #faf8fd;
  margin-bottom: 1.5rem;
}

.eb-songs__chosen {
  margin: 0 0 0.6rem;
  font-weight: 600;
  color: #3a0f66;
  font-size: 0.92rem;
}

.eb-songs__add-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.eb-songs__add-row input[type="text"] {
  flex: 1;
  min-width: 12rem;
}

.eb-songs__list {
  margin-bottom: 1.5rem;
}

.eb-songs__list h4 {
  margin: 0 0 0.6rem;
  color: #3a0f66;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.eb-songs__count {
  background: #f3f0f8;
  color: #6b6180;
  border-radius: 999px;
  padding: 0.05rem 0.5rem;
  font-size: 0.75rem;
}

.eb-songs__item {
  align-items: center;
}

.eb-songs__note {
  font-style: italic;
}

.eb-songs__remove {
  margin: 0;
}

.eb-songs__remove-btn {
  background: none;
  border: 0;
  padding: 0;
  color: #b32d2e;
  font-size: 0.82rem;
  cursor: pointer;
  text-decoration: underline;
}

@media (max-width: 600px) {
  .eb-portal-card__side {
    justify-items: start;
    width: 100%;
  }

  .eb-songs__result-actions {
    flex-direction: column;
    align-items: stretch;
  }
}
