/* ================================
   VoIPstudio DDI Pricing UI
   ================================ */

.vdp {
  max-width: 100%;
}

/* Controls row */
.vdp .vdp-controls {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

/* Label blocks */
.vdp .vdp-controls > label {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;

  font-size: 16px;
  margin: 0;
  padding: 0;

  /* keeps all controls aligned even if text wraps */
  min-height: 76px;
}

/* Select normalisation + width fix */
.vdp .vdp-controls select {
  min-width: 260px;        /* wider to accommodate long country names */
  height: 44px;
  line-height: 44px;

  padding: 0 40px 0 12px;  /* right padding protects chevron */
  margin: 0;

  box-sizing: border-box;
  font-size: 16px;
  border-radius: 8px;
  font-weight: 400;
  border-color: #9595954F;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Status line */
.vdp-status {
  margin: 8px 0 12px;
  font-size: 14px;
  opacity: 0.85;
}

/* Table */
.vdp-table {
  width: 100%;
  border-collapse: collapse;
}

.vdp-table th,
.vdp-table td {
  border-bottom: 1px solid #eee;
  padding: 10px 8px;
  text-align: left;
  vertical-align: top;
}

.vdp-table thead th {
  border-bottom: 2px solid #ddd;
}

/* Mobile: stack controls */
@media (max-width: 768px) {
  .vdp .vdp-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .vdp .vdp-controls select {
    width: 100%;
    min-width: 100%;
  }
}
