/*
 * MARGO - EasyOrders order confirmation layer
 * Version: 1.1.0
 */

html.margo-eo-lock,
html.margo-eo-lock body {
  overflow: hidden !important;
}

#margo-eo-confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  direction: rtl;
}

#margo-eo-confirm-overlay.margo-eo-show {
  display: flex;
}

.margo-eo-confirm-card {
  position: relative;
  width: min(100%, 440px);
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  box-sizing: border-box;
  padding: 28px 22px 22px;
  border: 1px solid rgba(182, 138, 80, 0.38);
  border-radius: 20px;
  background: #ffffff;
  color: #151515;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  text-align: center;
  font-family: inherit;
}

.margo-eo-close {
  position: absolute;
  top: 10px;
  left: 14px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #555;
  font-size: 29px;
  line-height: 1;
  cursor: pointer;
}

.margo-eo-close:hover {
  background: #f4f4f4;
}

.margo-eo-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 13px;
  border-radius: 50%;
  background: #111111;
  color: #ffffff;
  font-size: 29px;
  font-weight: 800;
}

.margo-eo-confirm-card h2 {
  margin: 0 0 7px;
  font-size: 24px;
  line-height: 1.35;
  font-weight: 800;
  color: #111111;
}

.margo-eo-subtitle {
  margin: 0 auto 18px;
  max-width: 360px;
  color: #6b6b6b;
  font-size: 14px;
  line-height: 1.7;
}

.margo-eo-details {
  overflow: hidden;
  margin: 0 0 17px;
  border: 1px solid #e8e8e8;
  border-radius: 14px;
  background: #fafafa;
  text-align: right;
}

.margo-eo-row {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 11px 13px;
  border-bottom: 1px solid #e8e8e8;
  line-height: 1.55;
}

.margo-eo-row:last-child {
  border-bottom: 0;
}

.margo-eo-row span {
  color: #777777;
  font-size: 13px;
}

.margo-eo-row strong {
  min-width: 0;
  color: #191919;
  font-size: 14px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.margo-eo-agree {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 3px 0 7px;
  padding: 12px;
  border: 1px solid #e7e1d9;
  border-radius: 12px;
  background: #fcfaf7;
  color: #242424;
  text-align: right;
  font-size: 14px;
  line-height: 1.65;
  cursor: pointer;
}

.margo-eo-agree input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: #111111;
  cursor: pointer;
}

.margo-eo-error {
  min-height: 22px;
  margin: 0 0 4px;
  color: #b42318;
  font-size: 13px;
  font-weight: 600;
}

.margo-eo-confirm,
.margo-eo-edit {
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
  cursor: pointer;
}

.margo-eo-confirm {
  min-height: 51px;
  border: 0;
  border-radius: 12px;
  background: #111111;
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  transition: transform 0.12s ease, opacity 0.12s ease;
}

.margo-eo-confirm:hover {
  opacity: 0.93;
}

.margo-eo-confirm:active {
  transform: scale(0.99);
}

.margo-eo-edit {
  margin-top: 7px;
  min-height: 43px;
  border: 0;
  background: transparent;
  color: #555555;
  font-size: 14px;
  text-decoration: underline;
}

.margo-eo-note {
  margin: 4px 5px 0;
  color: #7a7a7a;
  font-size: 12px;
  line-height: 1.65;
}



.margo-eo-total {
  background: #f7f7f7;
}

.margo-eo-total span,
.margo-eo-total strong {
  color: #111111;
  font-weight: 800;
}

.margo-eo-delivery {
  background: #fbfbfb;
}

.margo-eo-delivery strong {
  font-weight: 800;
}

@media (max-width: 520px) {
  #margo-eo-confirm-overlay {
    padding: 12px;
    align-items: flex-end;
  }

  .margo-eo-confirm-card {
    width: 100%;
    max-height: calc(100vh - 24px);
    padding: 25px 17px 18px;
    border-radius: 20px 20px 14px 14px;
  }

  .margo-eo-confirm-card h2 {
    font-size: 21px;
  }

  .margo-eo-row {
    grid-template-columns: 112px minmax(0, 1fr);
    padding: 10px 11px;
  }
}
