/* General classes for any page. Use these rather than styling a page's own
   copy of the same thing. Loaded after app.css (layouts/application), so
   they win over Foundation's rules of the same name. Values: tokens.css. */


/* A hint or explanation: under a field, a setting, a heading or a list.
   Small and grey, with the space after it built in.
     <p class="help-text">Ingen valgt betyder alle.</p>
   Foundation's .help-text was italic and black; earlier pages also used
   .explanation, .label-explanation, .helper-text and .segmented-note. */
.help-text {
  margin: 0 0 1rem;
  font-size: var(--font-size-small);
  font-style: normal;
  font-weight: normal;
  color: var(--color-text-muted);
}
/* Right under a field: closer to it, as Foundation has it. */
input + .help-text,
select + .help-text,
textarea + .help-text {
  margin-top: -0.44444rem;
}


/* Secondary text inside something: a value's source in a table cell, a
   "(uændret)", a row that no longer applies. Grey and a little smaller,
   with no space of its own (a hint on its own line is .help-text).
     <td>1.200 kr. <span class="muted">(uændret)</span></td> */
.muted {
  font-size: 0.85em;
  color: var(--color-text-muted);
}


/* A page's main part, under the menu or the banner: a line above it and
   room around it (more from medium screens).
     <div class="page-section orderflow">
   A page that needs other room combines the classes (in app.css:
   .page-section.orderflow), as this file loads after app.css. */
.page-section {
  border-top: 1px solid var(--color-light-gray);
  padding: 2rem;
  text-align: left;
}
@media print, screen and (min-width: 40em) {
  .page-section {
    padding: 4rem;
  }
}


/* A heading on a dark bar, above a list, a box, or each column of a table
   made of divs.
     <p class="bar-heading">Din ordre</p> */
.bar-heading {
  margin: 0;
  padding: 0.5rem;
  background: var(--color-dark-gray);
  color: var(--color-white);
  font-weight: bold;
}
.bar-heading a {
  color: var(--color-light-gray);
}


/* A list of choices as rows: each a radio button or checkbox (hidden) and
   its label, with a check box, a name, a price and "more information", and
   a description that folds out. The booking flow's products
   (orders/_select_product), extra products (orders/_extra_order_items) and
   the pickup service (orders/_pickup_and_delivery_service).
     <div class="choice-list">
       <div class="choice-list__item">
         <input type="radio" name="product" id="product_x" value="x">
         <label for="product_x">
           <div class="choice-list__check">&#10003;</div>
           <div class="choice-list__name">...</div>
           <div class="choice-list__price">...</div>
           <div class="choice-list__more-info"><a href="#">Mere information</a></div>
         </label>
         <div class="choice-list__description">
           <div class="choice-list__description-inner">...</div>
         </div>
       </div>
     </div>
   The page's script opens the description (functions.js); it finds the
   parts by their page's own classes (.orderflow__..., .extra-products__...),
   which the tests use too. */
.choice-list input {
  display: none;
}
.choice-list label {
  width: 100%;
  margin: 0;
  padding: 1rem;
  border: 1px solid transparent;
  align-items: center;
  cursor: pointer;
}
@media print, screen and (max-width: 39.99875em) {
  .choice-list label {
    text-align: center;
  }
}
@media print, screen and (min-width: 40em) {
  .choice-list label {
    display: flex;
  }
}
.choice-list label:hover {
  background: var(--color-light-gray);
}
.choice-list input:checked ~ label {
  background: rgba(0, 127, 78, 0.1);  /* the green, --color-secondary, at 10 % */
}
.choice-list__item {
  width: 100%;
}
.choice-list__check {
  width: 20px;
  height: 20px;
  margin-right: 1rem;
  border: 1px solid var(--color-secondary);
  line-height: 20px;
  text-align: center;
  font-weight: bold;
  color: transparent;
}
.choice-list input:checked ~ label .choice-list__check {
  color: var(--color-secondary);
}
.choice-list__name {
  font-size: 1rem;
  font-weight: bold;
  color: var(--color-secondary);
}
.choice-list__price {
  font-size: 1rem;
  font-weight: bold;
  white-space: nowrap;
}
@media print, screen and (min-width: 40em) {
  .choice-list__more-info {
    text-align: right;
  }
}
.choice-list__description {
  display: none;
  border: 1px solid var(--color-light-gray);
}
.choice-list__description-inner {
  padding: 1rem;
}
