/* Awqaf Donation Suite — Multi-cause allocation widget */

.awqaf-alloc {
  border: 1px solid #e6e9ff;
  border-radius: 12px;
  padding: 16px;
  margin: 16px 0;
  background: #f8faff;
}

.awqaf-alloc__title {
  font-weight: 900;
  font-size: 16px;
  margin: 0 0 12px;
  color: #0f172a;
}

.awqaf-alloc__toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #475569;
  cursor: pointer;
  user-select: none;
  margin-bottom: 12px;
}

.awqaf-alloc__toggle input[type="checkbox"] {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1px solid #d1d5db;
  cursor: pointer;
  accent-color: #ef463b;
}

.awqaf-alloc__rows {
  display: none;
}
.awqaf-alloc__rows.is-open {
  display: block;
}

.awqaf-alloc__row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.awqaf-alloc__select {
  width: 100%;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  outline: none;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #111827 50%),
    linear-gradient(135deg, #111827 50%, transparent 50%);
  background-position: calc(100% - 14px) 50%, calc(100% - 8px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 36px;
}

.awqaf-alloc__amount {
  display: flex;
  align-items: center;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  width: 110px;
}
.awqaf-alloc__currency {
  padding: 0 8px;
  background: #ef463b;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  height: 100%;
  display: flex;
  align-items: center;
  self-align: stretch;
  padding-top: 10px;
  padding-bottom: 10px;
}
.awqaf-alloc__amount input {
  border: none;
  outline: none;
  width: 70px;
  padding: 10px 8px;
  font-size: 14px;
  background: #fff;
}

.awqaf-alloc__remove {
  background: none;
  border: none;
  color: #ef463b;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}
.awqaf-alloc__remove:hover {
  color: #d93b31;
}

.awqaf-alloc__add {
  background: none;
  border: 1px dashed #94a3b8;
  border-radius: 8px;
  color: #475569;
  padding: 8px 14px;
  font-size: 13px;
  cursor: pointer;
  margin-top: 4px;
  width: 100%;
  text-align: left;
}
.awqaf-alloc__add:hover {
  border-color: #ef463b;
  color: #ef463b;
}

.awqaf-alloc__summary {
  font-size: 12px;
  color: #6b7280;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #e5e7eb;
}
.awqaf-alloc__summary strong {
  color: #0f172a;
}
.awqaf-alloc__over {
  color: #ef463b;
  font-weight: 700;
}

@media (max-width: 600px) {
  .awqaf-alloc__row {
    grid-template-columns: 1fr 1fr auto;
  }
  .awqaf-alloc__select {
    grid-column: 1 / -1;
  }
}
