/*
 * Loaded automatically by YOOtheme (~theme/css/custom.css).
 */

/* Course dates table on mobile: one block per date, with label/value rows.
   The labels come from the data-label attribute added by modules/chamex/templates/fs_table_item.php. */
@media (max-width: 639px) {
  #dates-mobile .uk-table thead {
    display: none;
  }

  #dates-mobile .uk-table,
  #dates-mobile .uk-table tbody,
  #dates-mobile .uk-table tr,
  #dates-mobile .uk-table td {
    display: block;
    width: auto !important;
    min-width: 0;
    max-width: none;
  }

  #dates-mobile .uk-table tr {
    margin-bottom: 15px;
    padding: 5px 15px 15px;
    border: 1px solid #e5e5e5;
  }

  #dates-mobile .uk-table > tbody > tr + tr {
    border-top: 1px solid #e5e5e5;
  }

  #dates-mobile .uk-table td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 8px 0;
    text-align: right;
    white-space: normal;
  }

  #dates-mobile .uk-table td + td {
    border-top: 1px solid #f0f0f0;
  }

  #dates-mobile .uk-table td[data-label]::before {
    content: attr(data-label);
    flex: none;
    font-size: 13px;
    font-weight: 600;
    text-align: left;
  }

  #dates-mobile .uk-table td > div,
  #dates-mobile .uk-table td > div > * {
    text-align: right !important;
  }

  /* The enquiry button has no heading: full width, without a label */
  #dates-mobile .uk-table td.fs-table-link {
    display: block;
    padding-top: 12px;
  }

  #dates-mobile .uk-button.uk-button-small {
    padding: 8px 15px;
  }
}
