/* Mr. Knafah - Checkout page (clone of mrknafah.co.uk/checkout/) */

#main-content,
#main-content .et-l--body {
  background: #fff;
}

#mrk-checkout {
  --mrk-green: #169e35;
  --mrk-red: #ff0000;
  --mrk-pink: #fef1ee;
  --mrk-text: #333;
  box-sizing: border-box;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 0 36px;
  font-family: 'Open Sans', Arial, sans-serif;
  color: var(--mrk-text);
  text-align: left;
}

#mrk-checkout *,
#mrk-checkout *::before,
#mrk-checkout *::after {
  box-sizing: border-box;
}

/* ---------- Page heading ---------- */
#mrk-checkout .mrk-checkout__title {
  margin: 0;
  padding: 29px 0 10px;
  color: var(--mrk-green);
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 30px;
  font-weight: 800;
  line-height: 36px;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
}

#mrk-checkout .mrk-checkout__drink {
  margin: 0;
  padding: 0 0 33px;
  font-size: 16px;
  line-height: 27.2px;
  color: var(--mrk-green);
  text-align: center;
}

#mrk-checkout .mrk-checkout__drink--bottom {
  padding: 31px 0 32px;
}

#mrk-checkout .mrk-free-drink {
  color: var(--mrk-green);
  font-weight: 700;
  text-decoration: underline;
}

/* ---------- Bars ---------- */
#mrk-checkout .mrk-bar {
  padding: 20px 10px;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  line-height: 27.2px;
  text-align: center;
}

#mrk-checkout .mrk-bar--green {
  background: var(--mrk-green);
  text-transform: uppercase;
  letter-spacing: 0;
}

#mrk-checkout .mrk-bar--red {
  background: var(--mrk-red);
  font-size: 22px;
  font-weight: 400;
}

#mrk-checkout .mrk-bar u,
#mrk-checkout .mrk-refund-box u {
  text-decoration: underline;
}

#mrk-checkout .mrk-bar--inner {
  margin: 0;
}

/* ---------- Cards ---------- */
#mrk-checkout .mrk-card {
  background: #fff;
  box-shadow: 0 2px 18px rgba(0, 0, 0, 0.3);
  padding: 27px 20px;
}

#mrk-checkout .mrk-card--order {
  margin-top: 20px;
}

#mrk-checkout .mrk-heading {
  margin: 0 0 69px;
  padding: 0;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 19px;
  font-weight: 700;
  line-height: 27.2px;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #000;
}

/* ---------- Collection details ---------- */
#mrk-checkout .mrk-details {
  display: flex;
  gap: 64px;
  align-items: flex-start;
}

#mrk-checkout .mrk-details__col {
  flex: 0 0 548px;
  max-width: 100%;
}

#mrk-checkout .mrk-details__col--refund {
  flex: 1 1 auto;
  padding-top: 0;
}

#mrk-checkout .mrk-field {
  display: block;
  width: 100%;
  margin: 0 0 12px;
  padding: 0;
  float: none;
  clear: both;
}

#mrk-checkout .mrk-field label {
  display: block;
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 32px;
  color: #000;
}

#mrk-checkout .mrk-field abbr.required {
  color: #e2401c;
  border: 0;
  text-decoration: none;
  visibility: visible;
}

#mrk-checkout .mrk-field input.input-text {
  display: block;
  width: 100%;
  height: 56px;
  margin: 0;
  padding: 16px;
  border: 0;
  border-radius: 0;
  background: var(--mrk-pink);
  font-family: inherit;
  font-size: 14px;
  color: #000;
  box-shadow: none;
  outline: none;
}

#mrk-checkout .mrk-field input.input-text:focus {
  background: #fbe6e0;
  box-shadow: 0 0 0 1px rgba(27, 158, 58, 0.55);
}

#mrk-checkout .mrk-field--half {
  width: 258px;
  max-width: 100%;
}

#mrk-checkout .mrk-field--country strong {
  display: block;
  font-size: 16px;
  line-height: 27.2px;
  font-weight: 700;
  color: #000;
}

#mrk-checkout .mrk-field--account {
  margin-bottom: 12px;
}

#mrk-checkout .mrk-field--account label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 16px;
  line-height: 32px;
  cursor: pointer;
}

#mrk-checkout .mrk-field--account input[type='checkbox'] {
  width: 13px;
  height: 13px;
  margin: 0;
}

#mrk-checkout .mrk-field.mrk-invalid input.input-text {
  background: #fcd9d2;
  box-shadow: inset 0 0 0 1px #c0392b;
}

#mrk-checkout .mrk-field .mrk-field-error {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  color: #c0392b;
}

/* ---------- Non-refundable box ---------- */
#mrk-checkout .mrk-refund-title {
  margin: 0;
  padding: 20px 10px;
  text-align: center;
  font-family: 'Poppins', Helvetica, Arial, sans-serif;
  font-size: 22px;
  font-weight: 800;
  line-height: 27.2px;
  letter-spacing: 0;
  color: var(--mrk-red);
  text-transform: uppercase;
}

#mrk-checkout .mrk-refund-box {
  padding: 20px 10px;
  background: var(--mrk-red);
  color: #fff;
  font-size: 20px;
  line-height: 27.2px;
}

/* ---------- Order review ---------- */
#mrk-checkout #order_review_heading {
  margin: 0;
  padding: 0 0 10px;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 22px;
  font-weight: 500;
  line-height: 26.4px;
  letter-spacing: 0;
  text-transform: none;
  color: #333;
}

#mrk-checkout table.shop_table {
  width: 100%;
  margin: 0 0 32px;
  border: 1px solid #ddd;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 4px;
  font-size: 16px;
  color: #333;
}

#mrk-checkout table.shop_table th,
#mrk-checkout table.shop_table td {
  padding: 9px 12px;
  border: 0;
  border-top: 1px solid #e7e7e7;
  background: transparent;
  font-size: 16px;
  line-height: 24px;
  text-align: left;
  vertical-align: top;
  color: #333;
}

#mrk-checkout table.shop_table thead th {
  border-top: 0;
  font-weight: 700;
  color: #000;
}

#mrk-checkout table.shop_table tbody td.product-name {
  line-height: 24px;
}

#mrk-checkout table.shop_table tbody td.product-name .product-quantity {
  font-weight: 700;
}

#mrk-checkout table.shop_table tbody td.product-name dl.variation {
  margin: 0;
  padding: 0;
}

#mrk-checkout table.shop_table tbody td.product-name dl.variation div {
  margin: 0;
}

#mrk-checkout table.shop_table tbody td.product-name dl.variation dt,
#mrk-checkout table.shop_table tbody td.product-name dl.variation dd {
  display: inline;
  margin: 0;
  padding: 0;
  font-size: 16px;
  line-height: 24px;
}

#mrk-checkout table.shop_table tbody td.product-name dl.variation dt {
  font-weight: 700;
  color: #000;
}

#mrk-checkout table.shop_table tbody td.product-name dl.variation dd p {
  display: inline;
  margin: 0;
  padding: 0;
}

#mrk-checkout table.shop_table tbody td.product-total {
  vertical-align: middle;
}

#mrk-checkout table.shop_table tfoot th {
  font-weight: 700;
  color: #000;
}

#mrk-checkout table.shop_table tfoot tr.cart-subtotal td {
  font-weight: 700;
}

#mrk-checkout table.shop_table tfoot tr.shipping td {
  font-weight: 700;
}

#mrk-checkout table.shop_table tfoot tr.order-total td,
#mrk-checkout table.shop_table tfoot tr.order-total td strong {
  font-weight: 700;
}

#mrk-checkout table.shop_table tfoot tr.cart-discount td,
#mrk-checkout table.shop_table tfoot tr.cart-discount th {
  color: #2e7d32;
}

/* ---------- Payment / place order ---------- */
#mrk-checkout #payment {
  margin: 0;
  padding: 16px;
  background: var(--mrk-pink);
  border-radius: 0;
}

#mrk-checkout #payment .place-order {
  display: block;
  margin: 0;
  padding: 36px 11px 14px;
  float: none;
  width: auto;
}

#mrk-checkout .woocommerce-terms-and-conditions-wrapper {
  margin: 0;
}

#mrk-checkout .woocommerce-privacy-policy-text p {
  margin: 0;
  padding: 0;
  font-size: 16px;
  line-height: 27.2px;
  color: #333;
}

#mrk-checkout .woocommerce-privacy-policy-text a {
  color: #333;
  text-decoration: underline;
}

#mrk-checkout #place_order {
  display: block;
  margin: 0 0 0 auto;
  padding: 6px 20px;
  border: 2px solid var(--mrk-green);
  border-radius: 0;
  background: var(--mrk-green);
  color: #fff;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 34px;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
  box-shadow: none;
  transition: background-color 0.2s ease;
}

#mrk-checkout #place_order::after,
#mrk-checkout #place_order::before {
  display: none;
  content: none;
}

#mrk-checkout #place_order:hover {
  background: #158632;
  border-color: #158632;
  padding: 6px 20px;
}

#mrk-checkout #place_order:disabled,
#mrk-checkout #place_order.is-loading {
  opacity: 0.7;
  cursor: not-allowed;
}

#mrk-checkout #place_order .mrk-spinner {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 8px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  vertical-align: -1px;
  animation: mrk-spin 0.8s linear infinite;
}

/* ---------- Errors / closed notice ---------- */
#mrk-checkout .mrk-error {
  margin: 10px 0 12px;
  padding: 10px 12px;
  border-left: 3px solid #c0392b;
  background: #fff;
  font-size: 12.5px;
  line-height: 1.5em;
  color: #9b1c1c;
}

#mrk-checkout .mrk-hours-notice {
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid #ffd591;
  background: #fff8e6;
  font-size: 13px;
  line-height: 1.5em;
  color: #873800;
}

#mrk-checkout .mrk-error[hidden],
#mrk-checkout .mrk-hours-notice[hidden],
#mrk-checkout tr[hidden] {
  display: none;
}

/* ---------- Bottom section ---------- */
#mrk-checkout .mrk-refund-heading {
  margin: 32px 0 -2px;
  padding: 20px 10px;
  font-family: 'Poppins', Helvetica, Arial, sans-serif;
  font-size: 30px;
  font-weight: 800;
  line-height: 27.2px;
  letter-spacing: 0;
  text-align: center;
  color: var(--mrk-red);
  text-transform: uppercase;
}

#mrk-checkout .woocommerce-form-login-toggle {
  margin-top: 80px;
}

#mrk-checkout .woocommerce-form-login-toggle .woocommerce-info {
  margin: 0;
  padding: 12px 11px;
  border: 0;
  border-radius: 0;
  background: #000;
  color: #fff;
  font-size: 13px;
  line-height: 1.5em;
}

#mrk-checkout .woocommerce-form-login-toggle .woocommerce-info::before {
  display: none;
  content: none;
}

#mrk-checkout .woocommerce-form-login-toggle .woocommerce-info a {
  color: #fff;
  text-decoration: none;
}

/* ---------- Empty / return states ---------- */
#mrk-checkout .mrk-state {
  max-width: 650px;
  margin: 40px auto;
  padding: 36px 24px;
  text-align: center;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

#mrk-checkout .mrk-state h2 {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 800;
  color: var(--mrk-green);
  text-transform: uppercase;
}

#mrk-checkout .mrk-state p {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.6em;
}

#mrk-checkout .mrk-state .mrk-btn {
  display: inline-block;
  padding: 9px 22px;
  background: var(--mrk-green);
  border: 0;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
}

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  /* Divi's mobile rows: full width, 30px 20px padding; type sizes stay as on desktop */
  #mrk-checkout .mrk-card {
    padding: 30px 20px;
  }

  #mrk-checkout .mrk-details {
    flex-direction: column;
    gap: 29px;
  }

  #mrk-checkout .mrk-details__col,
  #mrk-checkout .mrk-details__col--refund {
    flex: 1 1 auto;
    width: 100%;
  }

  #mrk-checkout .mrk-heading {
    margin-bottom: 67px;
  }
}

/* ---------- Fixes after visual comparison ---------- */
#mrk-checkout table.shop_table thead th,
#mrk-checkout table.shop_table tfoot th {
  text-transform: none;
  letter-spacing: 0;
}

#mrk-checkout table.shop_table tbody td.product-name dl.variation dt {
  margin-right: 4px;
}


#mrk-checkout #payment,
#mrk-checkout #payment .place-order {
  float: none !important;
  clear: both;
}

#mrk-checkout #payment {
  overflow: hidden;
}

#mrk-checkout #payment .place-order {
  margin-top: 32px;
  padding: 0;
}

#mrk-checkout #payment #place_order {
  float: none !important;
  margin: 0 0 0 auto;
}

#mrk-checkout .woocommerce-form-login-toggle .woocommerce-info {
  margin-bottom: 36px !important;
  padding: 15px !important;
  font-size: 18px !important;
  line-height: 27.2px !important;
  background: #050507 !important;
  color: #fff !important;
}
