/**
 * @file
 * biz-listing-form
 *
 * Added through the .module file
**/

/* Hide table header */
[data-drupal-selector="edit-tickets-items"] thead {
  display: none;
}


/* Hide the invalid options */
.form--cworks-registration .form-item-tickets option[value="_other_"],
.form--cworks-registration .form-item-tickets option[value=""] {
  display: none;
}

/* Add "Ticket #" prefixes. Note: [ticket-delta] added through JS */
.form--cworks-registration [data-drupal-selector="edit-tickets-items"] label:before {
  content: 'Ticket #'attr(ticket-delta) ' - ';
}

/* Don't allow users to remove all tickets (enforced in Webform config: minimum items = 1) */
#tickets_table tr:first-child:last-child [name="tickets_table_remove_0"],
tr:first-child:last-child [name="tickets_table_remove_0"] {
  pointer-events: none;
  opacity: 0.2;
}

/* Continue to show (+) & (-) operations */
.form--cworks-registration .webform-multiple-table-responsive td {
  display: table-cell;
}

/* Max width for paypal button and total summary */
.webform-paypal-checkout--other-actions {
  max-width: 30em;
}

/* Hide form actions in modal */
.cworks-registration-form .webform-button--draft {
  display: none !important;
}

/* Bypass Payment Button */
input.wpb-bypass-payment {
  justify-content: center;
  margin: 0 auto 2em;
  background: #eee;
  font-weight: bold;
  cursor: pointer;
}

.wpb-bypass-payment.form-disabled {
  background: transparent;
  opacity: 0.8;
  font-weight: normal;
  cursor: default;
}
