/*==========================================================
  Checkout (ep-site-v23): /checkout/, /checkout/order.php and
  /checkout/office.php. Loaded after custom-refined.css and uses
  its colours and type (--ep-ink, --ep-coral, Newsreader, Inter).
==========================================================*/

.epc-page-header .ep-page-header-sub {
  margin-bottom: 0;
}
.epc-page-header h1 {
  text-transform: none;
}
.ep-page-body.epc-body {
  max-width: 860px;
  padding-top: 56px;
  font-size: 16px;
  line-height: 1.7;
}
.epc-body p {
  margin: 0 0 14px;
}
.epc-body a {
  color: var(--ep-teal);
  border-bottom: 1px solid rgba(28, 40, 86, 0.25);
}
.epc-body a:hover {
  border-bottom-color: var(--ep-coral-dark);
}

/* Cards */
.epc-form {
  margin-top: 28px;
}
.epc-card {
  margin: 0 0 26px;
  padding: 28px 32px 26px;
  background: var(--ep-paper);
  border: 1px solid var(--ep-line);
  border-radius: 16px;
  box-shadow: 0 24px 48px rgba(20, 20, 26, 0.05);
}
.epc-card-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px !important;
  padding: 0 !important;
  border: 0 !important;
  font-family: var(--ep-font-display);
  font-size: 22px !important;
  font-weight: 500;
  color: var(--ep-ink);
}
.epc-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ep-paper-alt);
  color: var(--ep-teal);
  font-family: var(--ep-font-body);
  font-size: 14px;
  font-weight: 600;
}

/* Fields */
.epc-field {
  margin: 0 0 20px;
  padding: 0;
  border: 0;
  min-width: 0;
}
.epc-field:last-child {
  margin-bottom: 0;
}
.epc-field > label,
.epc-field > legend {
  display: block;
  width: auto;
  margin: 0 0 9px;
  padding: 0;
  border: 0;
  font-family: var(--ep-font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ep-ink-soft);
}
.epc-field-row {
  display: flex;
  gap: 18px;
}
.epc-field-row > .epc-field {
  flex: 1;
  min-width: 0;
}
.epc-body .form-control,
.epc-body .form-select {
  display: block;
  width: 100%;
  height: 46px;
  padding: 0 14px;
  margin: 0;
  font-family: var(--ep-font-body);
  font-size: 15px;
  color: var(--ep-ink);
  background-color: var(--ep-paper);
  border: 1px solid var(--ep-line);
  border-radius: 10px;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
}
.epc-body select.form-select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a5d70' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 38px;
}
.epc-body .form-control:focus,
.epc-body .form-select:focus,
.epc-choice input:focus-visible + .epc-choice-box {
  outline: none;
  border-color: var(--ep-coral);
  box-shadow: 0 0 0 3px rgba(248, 169, 147, 0.25);
}
.epc-body .form-control[disabled],
.epc-body .form-select[disabled] {
  background-color: var(--ep-paper-alt);
  color: var(--ep-ink);
  opacity: 1;
}
.epc-hint {
  margin: 7px 0 0 !important;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ep-ink-soft);
}
.epc-stripe-note {
  margin: 12px 0 0 !important;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ep-ink-soft);
}
.epc-error {
  margin: 7px 0 0 !important;
  font-size: 13.5px;
  line-height: 1.5;
  color: #b23a1d;
}

/* Choices: stream, turnaround and method as tiles */
.epc-choice-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.epc-choice-row-3 {
  grid-template-columns: 1fr 1fr 1fr;
}
.epc-choice {
  position: relative;
  display: block;
  margin: 0;
  font-weight: 400;
  cursor: pointer;
}
.epc-choice input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.epc-choice-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  padding: 15px 16px 14px;
  border: 1px solid var(--ep-line);
  border-radius: 12px;
  background: var(--ep-paper);
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.epc-choice:hover .epc-choice-box {
  border-color: #cfd0d8;
}
.epc-choice input:checked + .epc-choice-box {
  border-color: var(--ep-ink);
  box-shadow: inset 0 0 0 1px var(--ep-ink);
}
.epc-choice-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ep-ink);
  line-height: 1.35;
}
.epc-choice-extra {
  margin-left: 4px;
  font-weight: 500;
  color: var(--ep-coral-dark);
}
.epc-choice-note {
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ep-ink-soft);
}
.epc-choice-state {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ep-ink-soft);
}
.epc-choice-request .epc-choice-state {
  color: var(--ep-coral-dark);
  font-weight: 600;
}
.epc-choice-off {
  cursor: not-allowed;
}
.epc-choice-off .epc-choice-box {
  background: var(--ep-paper-alt);
  opacity: 0.65;
}
.epc-choice input:disabled + .epc-choice-box {
  cursor: not-allowed;
}
.epc-choice [data-amount] {
  font-size: 18px;
  font-weight: 600;
  color: var(--ep-ink);
}
.epc-choice [data-amount]:empty {
  display: none;
}

/* Global South and discount code */
.epc-gs {
  margin: 4px 0 20px;
  padding: 16px 18px;
  background: var(--ep-paper-alt);
  border-left: 3px solid var(--ep-coral);
  border-radius: 0 10px 10px 0;
  font-size: 14.5px;
}
.epc-gs-text {
  margin-bottom: 10px !important;
}
.epc-gs-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.epc-gs-code {
  display: inline-flex;
  gap: 10px;
}
.epc-gs-code[hidden] {
  display: none;
}
.epc-gs-code .form-control {
  width: 140px;
  height: 40px;
}
.epc-gs-status {
  margin: 8px 0 0 !important;
  font-size: 13.5px;
}
.epc-gs-status:empty {
  display: none;
}
.epc-btn-small {
  height: 40px;
  padding: 0 18px;
  border: 1px solid var(--ep-ink);
  border-radius: 999px;
  background: var(--ep-paper);
  color: var(--ep-ink);
  font-family: var(--ep-font-body);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}
.epc-btn-small:hover {
  background: var(--ep-ink);
  color: #fff;
}
.epc-btn-small:disabled {
  opacity: 0.5;
  cursor: default;
}

/* Price */
.epc-price {
  margin: 0 0 22px;
}
.epc-price-empty {
  margin: 0 !important;
  color: var(--ep-ink-soft);
  font-size: 15px;
}
.epc-price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.epc-price-table td {
  padding: 9px 0;
  border-bottom: 1px solid var(--ep-line);
  vertical-align: top;
  color: var(--ep-ink-soft);
}
.epc-price-table td:last-child {
  padding-left: 16px;
  text-align: right;
  white-space: nowrap;
  color: var(--ep-ink);
}
.epc-price-total td {
  border-bottom: 0;
  padding-top: 12px;
  font-weight: 600;
  font-size: 17px;
  color: var(--ep-ink) !important;
}

/* Contract */
.epc-contract-box {
  max-height: 560px;
  overflow-y: auto;
  margin: 0 0 22px;
  padding: 30px 34px;
  border: 1px solid var(--ep-line);
  border-radius: 12px;
  background: #fffefb;
  -webkit-overflow-scrolling: touch;
}
.epc-contract-box:focus {
  outline: none;
  border-color: var(--ep-coral);
}
.epc-contract {
  font-family: var(--ep-font-display);
  font-size: 15.5px;
  line-height: 1.55;
  color: #222;
}
.epc-c-title {
  margin: 0 0 14px !important;
  padding: 0 !important;
  border: 0 !important;
  font-family: var(--ep-font-display);
  font-size: 22px !important;
  font-weight: 600;
  text-align: center;
  color: #111;
}
.epc-c-title2 {
  margin-top: 40px !important;
}
.epc-c-parties {
  margin: 0 0 26px !important;
  text-align: center;
  line-height: 1.6;
}
.epc-c-amp {
  font-style: italic;
}
.epc-c-section {
  margin: 0 0 18px;
}
.epc-c-head {
  margin: 0 0 6px !important;
  font-weight: 600;
}
.epc-c-clause,
.epc-c-head {
  position: relative;
  padding-left: 34px;
}
.epc-c-clause {
  margin: 0 0 7px !important;
}
.epc-c-nda {
  margin-bottom: 14px !important;
}
.epc-c-num {
  position: absolute;
  left: 0;
  width: 26px;
  text-align: center;
  font-size: 0.92em;
}
.epc-c-para {
  margin: 0 0 16px !important;
  padding-left: 34px;
}
.epc-c-sign {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 18px;
  margin-top: 28px;
  text-align: center;
  font-size: 14px;
}
.epc-c-sign p {
  margin: 0 !important;
}
.epc-c-line {
  display: block;
  min-height: 30px;
  margin-bottom: 6px;
  padding: 0 4px 4px;
  border-bottom: 1px solid #333;
  font-size: 16px;
  overflow-wrap: anywhere;
}
.epc-c-signature {
  font-style: italic;
  font-size: 19px;
}

/* Signing */
.epc-signature-input {
  font-family: var(--ep-font-display) !important;
  font-style: italic;
  font-size: 19px !important;
}
.epc-date {
  margin: 0 !important;
  height: 46px;
  line-height: 46px;
  font-size: 15px;
  color: var(--ep-ink);
}
.epc-check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 6px 0 0;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ep-ink);
  cursor: pointer;
}
.epc-check input {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--ep-ink);
}
.epc-request-note {
  margin: 0 0 4px !important;
  padding: 14px 18px;
  background: var(--ep-paper-alt);
  border-left: 3px solid var(--ep-coral);
  font-size: 15px;
}
/* v23: the label may run to two lines on phones (the longer labels of
   v23), so the button grows in height instead of the label running past
   its edge. On one line it is 52 px high, as before. */
.epc-body .epc-submit {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  min-height: 52px;
  margin-top: 24px;
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--ep-coral);
  color: #fff !important;
  font-family: var(--ep-font-body);
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.03em;
  text-transform: none;
  white-space: normal;
}
.epc-body .epc-submit:hover {
  background: var(--ep-coral-dark);
}
.epc-body .epc-submit:disabled {
  background: #e7e7e3;
  color: var(--ep-ink-soft) !important;
  cursor: default;
}
.epc-body .epc-submit-quiet {
  background: var(--ep-paper);
  border: 1px solid var(--ep-ink);
  color: var(--ep-ink) !important;
}
.epc-body .epc-submit-quiet:hover {
  background: var(--ep-paper-alt);
}
.epc-message {
  margin: 14px 0 0 !important;
  padding: 12px 16px;
  background: #fdf1ee;
  border-radius: 10px;
  color: #8d2c14;
  font-size: 14.5px;
}
.epc-small {
  margin-top: 8px !important;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ep-ink-soft);
}

/* Order and office pages */
.epc-summary {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.epc-summary th,
.epc-summary td {
  padding: 9px 0;
  border-bottom: 1px solid var(--ep-line);
  vertical-align: top;
}
.epc-summary th {
  width: 150px;
  padding-right: 16px;
  font-weight: 600;
  color: var(--ep-ink-soft);
}
.epc-summary td {
  color: var(--ep-ink);
  overflow-wrap: anywhere;
}
.epc-body .epc-docs {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.epc-body .epc-docs li {
  margin: 0 0 8px;
  padding: 0;
}
.epc-doc {
  font-weight: 600;
}
.epc-doc-gone {
  color: var(--ep-ink-soft);
  font-weight: 400;
}
.epc-doc-meta {
  font-size: 13px;
  color: var(--ep-ink-soft);
}
.epc-bank {
  font-size: 15px;
}
.epc-bank-section {
  margin: 0 0 18px;
}
.epc-bank-title {
  margin: 0 0 8px !important;
  font-weight: 600;
  color: var(--ep-ink);
}
.epc-bank dl {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 6px 16px;
  margin: 0;
}
.epc-bank dt {
  font-weight: 500;
  color: var(--ep-ink-soft);
}
.epc-bank dd {
  margin: 0;
  color: var(--ep-ink);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.epc-bank-ref {
  margin: 4px 0 10px !important;
}
.epc-bank-note {
  font-size: 13.5px;
  color: var(--ep-ink-soft);
}
.epc-uploader h3 {
  text-transform: none;
  margin: 0 0 8px;
  font-family: var(--ep-font-display);
  font-size: 20px;
  font-weight: 500;
  color: var(--ep-ink);
}
.epc-upload-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.epc-file {
  flex: 1;
  min-width: 0;
  font-size: 14px;
}
.epc-progress {
  height: 6px;
  margin: 12px 0 0;
  border-radius: 999px;
  background: var(--ep-paper-alt);
  overflow: hidden;
}
.epc-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--ep-coral);
  transition: width 0.2s;
}
.epc-upload-status {
  margin: 8px 0 0 !important;
  font-size: 14px;
}
.epc-upload-status:empty {
  display: none;
}
.epc-paycard p {
  margin: 0 !important;
}
.epc-office-form {
  margin: 0 0 18px;
}
.epc-office-form p {
  margin: 0 !important;
}

@media (max-width: 767px) {
  .ep-page-body.epc-body {
    padding: 40px 16px;
  }
  .epc-card {
    padding: 22px 18px 20px;
    border-radius: 14px;
  }
  .epc-field-row {
    flex-direction: column;
    gap: 0;
  }
  .epc-field-row > .epc-field {
    margin-bottom: 20px;
  }
  .epc-choice-row,
  .epc-choice-row-3 {
    grid-template-columns: 1fr;
  }
  .epc-contract-box {
    padding: 20px 18px;
    max-height: 460px;
  }
  .epc-c-sign {
    grid-template-columns: 1fr;
  }
  .epc-bank dl {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .epc-bank dd {
    margin-bottom: 8px;
  }
  .epc-summary th {
    width: 110px;
  }
}
