/* Filmögon – order form. Follows content/code/index.css (Helvetica Neue, underlined headings, 1px black borders). */

.order-form,
.order-done {
  max-width: 420px;
  margin: 0 0 2.4rem;
}

.order-form fieldset {
  border: 0;
  margin: 0 0 1.4rem;
  padding: 0;
  min-width: 0;
}

.order-form legend,
.order-done h3 {
  font-weight: normal;
  text-decoration: underline;
  margin: 0 0 .6rem;
  padding: 0;
}

.of-book {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .5rem 0;
  border-bottom: 1px solid #000;
}

.of-book:first-of-type {
  border-top: 1px solid #000;
}

.of-book .of-title {
  flex: 1 1 auto;
}

.of-book .of-price {
  white-space: nowrap;
}

.order-form select,
.order-form input[type="text"],
.order-form input[type="email"],
.order-form textarea {
  font: inherit;
  color: inherit;
  background: transparent;
  border: 1px solid #000;
  border-radius: 3px;
  height: auto;
  padding: .3rem .5rem;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
}

.order-form select {
  width: 4.2rem;
  padding-right: 1.4rem;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23000'/%3E%3C/svg%3E") no-repeat right .5rem center;
  cursor: pointer;
}

.order-form textarea {
  min-height: 4.5rem;
  resize: vertical;
}

.order-form input:focus,
.order-form select:focus,
.order-form textarea:focus {
  outline: none;
  border-color: blue;
}

.of-field {
  margin-bottom: .8rem;
}

.of-row {
  display: flex;
  gap: .8rem;
}

.of-zip {
  flex: 0 0 7rem;
}

.of-city {
  flex: 1 1 auto;
}

.of-field label {
  display: block;
  margin-bottom: .2rem;
}

.of-zone {
  display: flex;
  gap: 1.4rem;
  margin-bottom: .8rem;
}

.of-zone label {
  cursor: pointer;
}

.of-zone input {
  -webkit-appearance: radio;
  appearance: radio;
  width: auto;
  height: auto;
  margin-right: .35rem;
  accent-color: #000;
}

.of-hidden {
  display: none !important;
}

.of-summary {
  border-top: 1px solid #000;
  border-bottom: 1px solid #000;
  padding: .5rem 0;
  margin-bottom: 1.4rem;
}

.of-summary div {
  display: flex;
  justify-content: space-between;
  padding: .15rem 0;
}

.of-summary .of-total {
  font-weight: bold;
}

.of-summary .of-warn {
  display: block;
  color: #6B0505;
  padding-top: .4rem;
}

.of-error {
  color: #6B0505;
  margin-bottom: 1rem;
}

.of-submit {
  display: inline-block;
  border: 1px solid #000;
  border-radius: 3px;
  padding: .45rem 1.4rem;
  cursor: pointer;
  text-decoration: none;
}

.of-submit:hover,
.of-submit:focus {
  color: blue;
  border-color: blue;
}

.of-submit[disabled] {
  opacity: .5;
  cursor: wait;
}

.of-honey {
  position: absolute;
  left: -5000px;
}

/* Confirmation */
.order-done table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.4rem;
}

.order-done td {
  padding: .25rem 0;
  vertical-align: top;
}

.order-done td:last-child {
  text-align: right;
  white-space: nowrap;
}

.order-done tr.od-total td {
  border-top: 1px solid #000;
  font-weight: bold;
}

.od-pay {
  margin-bottom: 1.4rem;
}

.od-pay p {
  margin-bottom: .6rem;
}

.od-qr {
  width: 180px;
  height: 180px;
  border: 1px solid #000;
  display: block;
  margin: .6rem 0;
}

.od-mobile {
  display: none;
}

.od-swish-btn {
  display: inline-block;
  border: 1px solid #000;
  border-radius: 3px;
  padding: .45rem 1.4rem;
  text-decoration: none;
  margin: .4rem 0 .8rem;
}

.od-swish-btn:hover {
  color: blue;
  border-color: blue;
}

@media (hover: none) and (pointer: coarse) {
  .od-mobile {
    display: block;
  }

  .od-desktop {
    display: none;
  }
}

.od-muted {
  opacity: .7;
}
