/* === E&D CHECKOUT SHELL v3.0.1 === */

.ed-flow-dialog {
  width: min(100% - 18px, 760px);
  max-height: calc(100dvh - 18px);
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(215, 169, 40, 0.35);
  border-radius: 28px;
  background:
    radial-gradient(
      circle at top right,
      rgba(215, 169, 40, 0.12),
      transparent 34%
    ),
    #080b10;
  color: #f7f4ea;
}

.ed-flow-dialog::backdrop {
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(9px);
}

.ed-flow-shell {
  display: flex;
  flex-direction: column;
  min-height: min(720px, calc(100dvh - 18px));
}

.ed-flow-header {
  position: sticky;
  top: 0;
  z-index: 3;
  padding:
    max(18px, env(safe-area-inset-top, 0px))
    20px
    16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 11, 16, 0.93);
  backdrop-filter: blur(18px);
}

.ed-flow-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.ed-flow-brand small {
  display: block;
  color: #d7a928;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.ed-flow-brand strong {
  display: block;
  margin-top: 4px;
  font-size: 21px;
}

.ed-flow-close {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  background: #111722;
  color: white;
  font-size: 22px;
}

.ed-flow-progress {
  height: 5px;
  margin-top: 16px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
}

.ed-flow-progress span {
  display: block;
  width: 16.666%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #b78310, #f3d66f);
  transition: width 0.3s ease;
}

.ed-flow-steps {
  display: flex;
  gap: 7px;
  margin-top: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.ed-flow-steps::-webkit-scrollbar {
  display: none;
}

.ed-flow-step {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  color: #8f99a8;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.ed-flow-step.is-active {
  border-color: rgba(215, 169, 40, 0.55);
  background: rgba(215, 169, 40, 0.12);
  color: #f2cf68;
}

.ed-flow-step.is-complete {
  color: #c8d0da;
}

.ed-flow-content {
  flex: 1;
  padding: 24px 20px;
  overflow-y: auto;
}

.ed-flow-panel {
  animation: edFlowEnter 0.25s ease;
}

.ed-flow-panel h2 {
  margin: 0 0 8px;
  font-size: clamp(25px, 7vw, 34px);
}

.ed-flow-panel > p {
  margin: 0;
  color: #a8b0bd;
  line-height: 1.6;
}

.ed-flow-placeholder {
  margin-top: 24px;
  padding: 22px;
  border: 1px dashed rgba(215, 169, 40, 0.32);
  border-radius: 20px;
  background: rgba(215, 169, 40, 0.05);
}

.ed-flow-placeholder strong {
  display: block;
  margin-bottom: 7px;
  color: #f2cf68;
}

.ed-flow-placeholder span {
  color: #a8b0bd;
  font-size: 13px;
  line-height: 1.55;
}

.ed-flow-footer {
  position: sticky;
  bottom: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  padding:
    14px
    20px
    max(14px, env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 11, 16, 0.95);
  backdrop-filter: blur(18px);
}

.ed-flow-footer button {
  min-height: 50px;
  border-radius: 15px;
  font-weight: 900;
}

.ed-flow-back {
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #111722;
  color: white;
}

.ed-flow-next {
  border: 0;
  background: linear-gradient(135deg, #f5d96c, #c7951d);
  color: #0a0b0e;
}

.ed-flow-footer button:disabled {
  opacity: 0.45;
}

@keyframes edFlowEnter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 720px) {
  .ed-flow-content {
    padding: 34px;
  }

  .ed-flow-header,
  .ed-flow-footer {
    padding-left: 34px;
    padding-right: 34px;
  }
}

/* === FASE 1.2 PREMIUM UI === */

.ed-flow-dialog,
.ed-flow-dialog * {
  box-sizing: border-box;
}

.ed-flow-dialog {
  width: min(100% - 16px, 780px);
  height: min(920px, calc(100dvh - 16px));
  max-height: calc(100dvh - 16px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(226, 185, 72, 0.42);
  border-radius: 30px;
  background:
    radial-gradient(
      circle at 90% 0%,
      rgba(215, 169, 40, 0.16),
      transparent 28%
    ),
    linear-gradient(
      180deg,
      #090c12 0%,
      #0b1017 100%
    );
  box-shadow:
    0 35px 100px rgba(0, 0, 0, 0.82),
    inset 0 1px rgba(255, 255, 255, 0.04);
}

.ed-flow-shell {
  min-height: 0;
  height: 100%;
  background: transparent;
}

.ed-flow-header {
  flex: 0 0 auto;
  padding:
    max(20px, env(safe-area-inset-top, 0px))
    20px
    16px;
  border-bottom: 1px solid rgba(215, 169, 40, 0.22);
  background:
    linear-gradient(
      180deg,
      rgba(8, 11, 16, 0.99),
      rgba(8, 11, 16, 0.94)
    );
}

.ed-flow-brand small {
  color: #c9d0dc;
  font-size: 10px;
  letter-spacing: 0.18em;
}

.ed-flow-brand strong {
  margin-top: 6px;
  font-size: clamp(23px, 6vw, 31px);
  letter-spacing: -0.025em;
}

.ed-flow-close {
  appearance: none;
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid rgba(215, 169, 40, 0.42);
  border-radius: 18px;
  background: rgba(215, 169, 40, 0.07);
  color: #efc94d;
  font-size: 27px;
  line-height: 1;
}

.ed-flow-progress {
  height: 6px;
  margin-top: 20px;
  background: rgba(255, 255, 255, 0.065);
}

.ed-flow-progress span {
  box-shadow: 0 0 18px rgba(228, 181, 48, 0.38);
}

.ed-flow-steps {
  gap: 9px;
  margin-top: 16px;
  padding: 0 1px 3px;
}

.ed-flow-step {
  min-height: 40px;
  padding: 10px 14px;
  border-color: rgba(255, 255, 255, 0.075);
  background: rgba(255, 255, 255, 0.025);
  color: #8993a3;
  font-size: 11px;
}

.ed-flow-step.is-active {
  border-color: rgba(215, 169, 40, 0.62);
  background:
    linear-gradient(
      135deg,
      rgba(215, 169, 40, 0.18),
      rgba(215, 169, 40, 0.07)
    );
  color: #f2d16d;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.ed-flow-step.is-complete {
  border-color: rgba(215, 169, 40, 0.18);
  color: #bac2ce;
}

.ed-flow-content {
  min-height: 0;
  padding: 24px 20px 34px;
  overscroll-behavior: contain;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.018),
      transparent 40%
    );
}

.ed-flow-footer {
  flex: 0 0 auto;
  grid-template-columns: minmax(105px, 0.36fr) minmax(0, 1fr);
  padding:
    14px
    20px
    max(16px, env(safe-area-inset-bottom, 0px));
  border-top-color: rgba(215, 169, 40, 0.17);
  background: rgba(8, 11, 16, 0.985);
}

.ed-flow-footer button {
  appearance: none;
  min-width: 0;
  min-height: 54px;
  margin: 0;
  padding: 0 17px;
  border-radius: 17px;
  font-size: 14px;
}

.ed-flow-back {
  border-color: rgba(255, 255, 255, 0.085);
  background: #111722;
}

.ed-flow-next {
  background:
    linear-gradient(
      135deg,
      #f7da68 0%,
      #e1ae25 62%,
      #c58e12 100%
    );
  box-shadow: 0 12px 32px rgba(197, 142, 18, 0.2);
}

.ed-step-heading,
.ed-account-intro {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 15px;
  align-items: flex-start;
}

.ed-step-heading-icon,
.ed-account-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid rgba(215, 169, 40, 0.3);
  border-radius: 17px;
  background:
    linear-gradient(
      145deg,
      rgba(215, 169, 40, 0.16),
      rgba(215, 169, 40, 0.055)
    );
  font-size: 25px;
}

.ed-step-heading small,
.ed-account-intro small {
  color: #e0b83f;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.ed-step-heading h2,
.ed-account-intro h2 {
  margin: 5px 0 8px;
  color: #fafbfe;
  font-size: clamp(25px, 7vw, 35px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.ed-step-heading p,
.ed-account-intro p {
  margin: 0;
  color: #a8b1bf;
  font-size: 14px;
  line-height: 1.58;
}

.ed-account-screen,
.ed-address-screen {
  display: grid;
  gap: 22px;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
}

.ed-account-options {
  display: grid;
  gap: 11px;
}

.ed-account-option {
  appearance: none;
  grid-template-columns: 44px minmax(0, 1fr) 24px;
  min-height: 78px;
  margin: 0;
  padding: 15px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 19px;
  background:
    linear-gradient(
      145deg,
      rgba(19, 26, 38, 0.96),
      rgba(13, 18, 27, 0.96)
    );
  color: #f7f9fc;
}

.ed-account-option.is-selected {
  border-color: rgba(215, 169, 40, 0.55);
  background:
    linear-gradient(
      145deg,
      rgba(215, 169, 40, 0.13),
      rgba(14, 19, 27, 0.97)
    );
}

.ed-account-option strong {
  overflow-wrap: anywhere;
  font-size: 14px;
  line-height: 1.3;
}

.ed-account-option small {
  font-size: 11px;
}

.ed-account-form,
.ed-address-form {
  display: grid;
  gap: 15px;
  width: 100%;
}

.ed-account-form label,
.ed-field {
  display: grid;
  min-width: 0;
  gap: 7px;
  margin: 0;
}

.ed-account-form label > span,
.ed-field > span {
  color: #e8ebf1;
  font-size: 12px;
  font-weight: 800;
}

.ed-account-form input,
.ed-field input,
.ed-field select,
.ed-field textarea {
  appearance: none;
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.095);
  border-radius: 15px;
  outline: 0;
  background: #101722;
  color: #f8f9fb;
  font-family: inherit;
  font-size: 16px;
}

.ed-account-form input,
.ed-field input,
.ed-field select {
  min-height: 52px;
  padding: 0 14px;
}

.ed-field textarea {
  min-height: 100px;
  padding: 14px;
  resize: vertical;
  line-height: 1.45;
}

.ed-field select {
  padding-right: 38px;
  background-image:
    linear-gradient(45deg, transparent 50%, #d7a928 50%),
    linear-gradient(135deg, #d7a928 50%, transparent 50%);
  background-position:
    calc(100% - 19px) 22px,
    calc(100% - 14px) 22px;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}

.ed-account-form input:focus,
.ed-field input:focus,
.ed-field select:focus,
.ed-field textarea:focus {
  border-color: rgba(215, 169, 40, 0.72);
  box-shadow: 0 0 0 3px rgba(215, 169, 40, 0.105);
}

.ed-account-form input::placeholder,
.ed-field input::placeholder,
.ed-field textarea::placeholder {
  color: #707b8c;
}

.ed-address-card {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 23px;
  background:
    linear-gradient(
      145deg,
      rgba(17, 24, 35, 0.95),
      rgba(11, 16, 24, 0.95)
    );
  box-shadow:
    0 20px 55px rgba(0, 0, 0, 0.2),
    inset 0 1px rgba(255, 255, 255, 0.025);
}

.ed-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.ed-card-heading > div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.ed-card-heading strong {
  font-size: 14px;
}

.ed-card-heading > small {
  color: #8d97a7;
  font-size: 9px;
}

.ed-address-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 12px;
}

.ed-address-grid-numbers {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ed-field > small {
  color: #7f8998;
  font-size: 10px;
  line-height: 1.45;
}

.ed-address-default {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 11px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid rgba(215, 169, 40, 0.18);
  border-radius: 16px;
  background: rgba(215, 169, 40, 0.045);
}

.ed-address-default input {
  appearance: auto;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: #d7a928;
}

.ed-address-default b,
.ed-address-default small {
  display: block;
}

.ed-address-default b {
  color: #eef1f6;
  font-size: 12px;
}

.ed-address-default small {
  margin-top: 4px;
  color: #8e98a7;
  font-size: 10px;
  line-height: 1.4;
}

.ed-form-message,
.ed-account-message {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(215, 169, 40, 0.2);
  border-radius: 13px;
  background: rgba(215, 169, 40, 0.08);
  color: #e9ca6d;
  font-size: 11px;
}

.ed-checkout-trust,
.ed-account-security {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 11px;
  align-items: flex-start;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.025);
}

.ed-checkout-trust strong {
  display: block;
  color: #dfe4ec;
  font-size: 12px;
}

.ed-checkout-trust p,
.ed-account-security p {
  margin: 4px 0 0;
  color: #8993a2;
  font-size: 10px;
  line-height: 1.5;
}

@media (max-width: 430px) {
  .ed-flow-dialog {
    width: calc(100% - 10px);
    height: calc(100dvh - 10px);
    max-height: calc(100dvh - 10px);
    border-radius: 24px;
  }

  .ed-flow-header {
    padding-left: 15px;
    padding-right: 15px;
  }

  .ed-flow-content {
    padding: 20px 15px 30px;
  }

  .ed-flow-footer {
    padding-left: 15px;
    padding-right: 15px;
  }

  .ed-flow-close {
    flex-basis: 46px;
    width: 46px;
    height: 46px;
    border-radius: 15px;
  }

  .ed-address-card {
    padding: 15px;
  }

  .ed-address-grid,
  .ed-address-grid-numbers {
    grid-template-columns: 1fr;
  }

  .ed-account-option {
    grid-template-columns: 38px minmax(0, 1fr) 20px;
    padding: 14px 12px;
  }
}

@media (min-width: 720px) {
  .ed-flow-content {
    padding: 34px 38px 42px;
  }

  .ed-flow-header,
  .ed-flow-footer {
    padding-left: 38px;
    padding-right: 38px;
  }

  .ed-address-card {
    padding: 24px;
  }
}

/* === FASE 1.3: MÉTODO DE ENVÍO === */

.ed-shipping-screen {
  display: grid;
  gap: 22px;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
}

.ed-shipping-address {
  display: grid;
  grid-template-columns:
    40px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border: 1px solid
    rgba(215, 169, 40, 0.22);
  border-radius: 19px;
  background:
    linear-gradient(
      145deg,
      rgba(215, 169, 40, 0.09),
      rgba(15, 21, 31, 0.94)
    );
}

.ed-shipping-address > span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 13px;
  background: rgba(215, 169, 40, 0.12);
  font-size: 20px;
}

.ed-shipping-address small,
.ed-shipping-section-heading small {
  display: block;
  color: #d8b442;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.ed-shipping-address strong {
  display: block;
  margin-top: 4px;
  color: #f4f6f9;
  font-size: 13px;
  line-height: 1.4;
}

.ed-shipping-address p {
  margin: 3px 0 0;
  color: #929cab;
  font-size: 11px;
  line-height: 1.4;
}

.ed-shipping-address button {
  appearance: none;
  padding: 8px 10px;
  border: 1px solid
    rgba(215, 169, 40, 0.28);
  border-radius: 11px;
  background: rgba(215, 169, 40, 0.07);
  color: #e6c75c;
  font-size: 10px;
  font-weight: 900;
}

.ed-shipping-address.is-empty {
  border-style: dashed;
}

.ed-shipping-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}

.ed-shipping-section-heading strong {
  display: block;
  margin-top: 4px;
  color: #f5f7fa;
  font-size: 18px;
}

.ed-shipping-section-heading > span {
  color: #818b9b;
  font-size: 10px;
}

.ed-shipping-methods {
  display: grid;
  gap: 12px;
}

.ed-shipping-method {
  appearance: none;
  display: grid;
  grid-template-columns:
    48px minmax(0, 1fr) minmax(88px, auto);
  gap: 13px;
  align-items: center;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 16px;
  overflow: hidden;
  border: 1px solid
    rgba(255, 255, 255, 0.08);
  border-radius: 21px;
  background:
    linear-gradient(
      145deg,
      rgba(17, 24, 35, 0.97),
      rgba(11, 16, 24, 0.97)
    );
  color: #f5f7fa;
  text-align: left;
  transition:
    border-color 0.2s ease,
    transform 0.2s ease,
    background 0.2s ease;
}

.ed-shipping-method:active {
  transform: scale(0.99);
}

.ed-shipping-method.is-selected {
  border-color:
    rgba(215, 169, 40, 0.62);
  background:
    linear-gradient(
      145deg,
      rgba(215, 169, 40, 0.15),
      rgba(12, 17, 25, 0.98)
    );
  box-shadow:
    0 16px 38px rgba(0, 0, 0, 0.18),
    inset 0 1px rgba(255, 255, 255, 0.03);
}

.ed-shipping-method-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid
    rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  font-size: 23px;
}

.ed-shipping-method.is-selected
.ed-shipping-method-icon {
  border-color:
    rgba(215, 169, 40, 0.3);
  background:
    rgba(215, 169, 40, 0.1);
}

.ed-shipping-method-copy {
  display: block;
  min-width: 0;
}

.ed-shipping-method-topline {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.ed-shipping-method-topline strong {
  overflow-wrap: anywhere;
  color: #f5f7fb;
  font-size: 14px;
  line-height: 1.3;
}

.ed-shipping-method-topline small {
  flex: 0 0 auto;
  padding: 4px 7px;
  border-radius: 999px;
  background:
    rgba(215, 169, 40, 0.1);
  color: #e1bf52;
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}

.ed-shipping-method-copy > b {
  display: block;
  margin-top: 7px;
  color: #bec6d1;
  font-size: 11px;
  line-height: 1.35;
}

.ed-shipping-method-copy > p {
  margin: 5px 0 0;
  color: #818c9c;
  font-size: 10px;
  line-height: 1.45;
}

.ed-shipping-method-side {
  display: grid;
  justify-items: end;
  gap: 12px;
  min-width: 0;
}

.ed-shipping-method-side > strong {
  max-width: 105px;
  color: #e5c65b;
  font-size: 10px;
  line-height: 1.3;
  text-align: right;
}

.ed-shipping-method-side > i {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 1px solid
    rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #0b0d11;
  font-size: 13px;
  font-style: normal;
  font-weight: 1000;
}

.ed-shipping-method.is-selected
.ed-shipping-method-side > i {
  border-color: #e7c54f;
  background: #e7c54f;
}

.ed-shipping-note {
  display: grid;
  grid-template-columns:
    30px minmax(0, 1fr);
  gap: 11px;
  padding: 15px;
  border: 1px solid
    rgba(255, 255, 255, 0.055);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.025);
}

.ed-shipping-note strong {
  display: block;
  color: #dfe4eb;
  font-size: 12px;
}

.ed-shipping-note p {
  margin: 4px 0 0;
  color: #8993a2;
  font-size: 10px;
  line-height: 1.5;
}

@media (max-width: 520px) {
  .ed-shipping-method {
    grid-template-columns:
      42px minmax(0, 1fr);
  }

  .ed-shipping-method-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    font-size: 20px;
  }

  .ed-shipping-method-side {
    grid-column: 2;
    grid-template-columns:
      minmax(0, 1fr) 25px;
    align-items: center;
    justify-items: start;
    gap: 9px;
  }

  .ed-shipping-method-side > strong {
    max-width: none;
    text-align: left;
  }
}

@media (max-width: 390px) {
  .ed-shipping-address {
    grid-template-columns:
      38px minmax(0, 1fr);
  }

  .ed-shipping-address button {
    grid-column: 2;
    justify-self: start;
  }

  .ed-shipping-method-topline {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* === FASE 1.4: PAGO PREMIUM E&D === */

.ed-payment-screen {
  display: grid;
  gap: 22px;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
}

.ed-payment-development {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 11px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid rgba(89, 174, 255, 0.22);
  border-radius: 17px;
  background: rgba(89, 174, 255, 0.055);
}

.ed-payment-development > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: rgba(89, 174, 255, 0.08);
  font-size: 19px;
}

.ed-payment-development strong {
  display: block;
  color: #dcecff;
  font-size: 12px;
}

.ed-payment-development p {
  margin: 4px 0 0;
  color: #8ea4bc;
  font-size: 10px;
  line-height: 1.5;
}

.ed-payment-section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}

.ed-payment-section-title small {
  display: block;
  color: #d8b442;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.ed-payment-section-title strong {
  display: block;
  margin-top: 4px;
  color: #f5f7fa;
  font-size: 18px;
}

.ed-payment-section-title > span {
  color: #818b9b;
  font-size: 10px;
}

.ed-payment-methods {
  display: grid;
  gap: 12px;
}

.ed-payment-method {
  appearance: none;
  display: grid;
  grid-template-columns:
    48px minmax(0, 1fr) 28px;
  gap: 13px;
  align-items: center;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 16px;
  border: 1px solid
    rgba(255, 255, 255, 0.08);
  border-radius: 21px;
  background:
    linear-gradient(
      145deg,
      rgba(17, 24, 35, 0.97),
      rgba(11, 16, 24, 0.97)
    );
  color: #f5f7fa;
  text-align: left;
  transition:
    border-color 0.2s ease,
    transform 0.2s ease,
    opacity 0.2s ease;
}

.ed-payment-method:active:not(.is-disabled) {
  transform: scale(0.99);
}

.ed-payment-method.is-selected {
  border-color:
    rgba(215, 169, 40, 0.62);
  background:
    linear-gradient(
      145deg,
      rgba(215, 169, 40, 0.15),
      rgba(12, 17, 25, 0.98)
    );
  box-shadow:
    0 16px 38px rgba(0, 0, 0, 0.18);
}

.ed-payment-method.is-disabled {
  opacity: 0.48;
}

.ed-payment-method-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid
    rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  font-size: 23px;
}

.ed-payment-method.is-selected
.ed-payment-method-icon {
  border-color:
    rgba(215, 169, 40, 0.3);
  background:
    rgba(215, 169, 40, 0.1);
}

.ed-payment-method-copy {
  display: block;
  min-width: 0;
}

.ed-payment-method-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.ed-payment-method-title strong {
  overflow-wrap: anywhere;
  color: #f5f7fb;
  font-size: 14px;
  line-height: 1.3;
}

.ed-payment-method-title small {
  flex: 0 0 auto;
  padding: 4px 7px;
  border-radius: 999px;
  background:
    rgba(215, 169, 40, 0.1);
  color: #e1bf52;
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}

.ed-payment-method-copy p {
  margin: 7px 0 0;
  color: #8791a0;
  font-size: 10px;
  line-height: 1.45;
}

.ed-payment-method-copy b {
  display: block;
  margin-top: 6px;
  color: #bdc5d0;
  font-size: 10px;
}

.ed-payment-indicator {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 1px solid
    rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #0b0d11;
  font-size: 13px;
  font-weight: 1000;
}

.ed-payment-method.is-selected
.ed-payment-indicator {
  border-color: #e7c54f;
  background: #e7c54f;
}

.ed-payment-details {
  min-height: 110px;
}

.ed-payment-detail-card {
  display: grid;
  gap: 15px;
  padding: 17px;
  border: 1px solid
    rgba(215, 169, 40, 0.18);
  border-radius: 20px;
  background:
    linear-gradient(
      145deg,
      rgba(215, 169, 40, 0.07),
      rgba(14, 20, 29, 0.96)
    );
}

.ed-payment-detail-card.is-empty {
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  border-style: dashed;
}

.ed-payment-detail-heading {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 11px;
  align-items: flex-start;
}

.ed-payment-detail-heading > span,
.ed-payment-detail-card.is-empty > span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 13px;
  background: rgba(215, 169, 40, 0.09);
  font-size: 20px;
}

.ed-payment-detail-card strong {
  display: block;
  color: #edf0f5;
  font-size: 12px;
}

.ed-payment-detail-card p {
  margin: 4px 0 0;
  color: #8d97a6;
  font-size: 10px;
  line-height: 1.5;
}

.ed-payment-security-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.ed-payment-security-row span {
  padding: 7px 9px;
  border: 1px solid
    rgba(255, 255, 255, 0.065);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: #aab3bf;
  font-size: 9px;
}

.ed-payment-demo-warning {
  padding: 11px 12px;
  border-radius: 12px;
  background: rgba(255, 193, 74, 0.07);
  color: #d7b95b !important;
}

.ed-payment-instructions {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 21px;
  color: #a7b0bd;
  font-size: 10px;
  line-height: 1.45;
}

.ed-payment-benefits {
  display: grid;
  gap: 14px;
  padding: 17px;
  border: 1px solid
    rgba(255, 255, 255, 0.07);
  border-radius: 21px;
  background:
    linear-gradient(
      145deg,
      rgba(17, 24, 35, 0.96),
      rgba(11, 16, 24, 0.96)
    );
}

.ed-payment-coupon {
  display: grid;
  gap: 7px;
}

.ed-payment-coupon label {
  color: #e7eaf0;
  font-size: 11px;
  font-weight: 800;
}

.ed-payment-coupon > div {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr) auto;
  gap: 9px;
}

.ed-payment-coupon input {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  margin: 0;
  padding: 0 13px;
  border: 1px solid
    rgba(255, 255, 255, 0.095);
  border-radius: 14px;
  outline: 0;
  background: #101722;
  color: #f8f9fb;
  font-size: 15px;
  text-transform: uppercase;
}

.ed-payment-coupon input:focus {
  border-color:
    rgba(215, 169, 40, 0.72);
  box-shadow:
    0 0 0 3px rgba(215, 169, 40, 0.105);
}

.ed-payment-coupon button {
  appearance: none;
  min-height: 48px;
  margin: 0;
  padding: 0 15px;
  border: 1px solid
    rgba(215, 169, 40, 0.38);
  border-radius: 14px;
  background: rgba(215, 169, 40, 0.09);
  color: #e8ca67;
  font-size: 11px;
  font-weight: 900;
}

.ed-payment-coupon > p {
  margin: 0;
  padding: 9px 11px;
  border-radius: 11px;
  font-size: 10px;
}

.ed-payment-coupon > p.is-info {
  background: rgba(89, 174, 255, 0.07);
  color: #9ec7eb;
}

.ed-payment-coupon > p.is-error {
  background: rgba(255, 90, 90, 0.07);
  color: #ef9999;
}

.ed-payment-rewards {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 13px;
  padding: 13px;
  border: 1px solid
    rgba(215, 169, 40, 0.13);
  border-radius: 15px;
  background: rgba(215, 169, 40, 0.04);
}

.ed-payment-rewards > div {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 9px;
  align-items: flex-start;
}

.ed-payment-rewards p {
  margin: 0;
}

.ed-payment-rewards strong,
.ed-payment-rewards small {
  display: block;
}

.ed-payment-rewards strong {
  color: #e8ebf0;
  font-size: 11px;
}

.ed-payment-rewards small {
  margin-top: 3px;
  color: #818b99;
  font-size: 9px;
  line-height: 1.4;
}

.ed-payment-rewards > b {
  flex: 0 0 auto;
  color: #e1be50;
  font-size: 9px;
}

.ed-payment-rewards.is-future {
  opacity: 0.58;
}

.ed-payment-trust {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 11px;
  padding: 15px;
  border: 1px solid
    rgba(255, 255, 255, 0.055);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.025);
}

.ed-payment-trust strong {
  display: block;
  color: #dfe4eb;
  font-size: 12px;
}

.ed-payment-trust p {
  margin: 4px 0 0;
  color: #8993a2;
  font-size: 10px;
  line-height: 1.5;
}

@media (max-width: 430px) {
  .ed-payment-method {
    grid-template-columns:
      42px minmax(0, 1fr) 25px;
    padding: 14px 12px;
  }

  .ed-payment-method-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    font-size: 20px;
  }

  .ed-payment-method-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .ed-payment-coupon > div {
    grid-template-columns: 1fr;
  }

  .ed-payment-coupon button {
    width: 100%;
  }

  .ed-payment-rewards {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* === FASE 1.5: RESUMEN INTELIGENTE === */

.ed-summary-screen {
  display: grid;
  gap: 22px;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
}

.ed-summary-loading {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 130px;
  padding: 20px;
  border: 1px solid rgba(215, 169, 40, 0.18);
  border-radius: 21px;
  background:
    linear-gradient(
      145deg,
      rgba(215, 169, 40, 0.07),
      rgba(13, 19, 28, 0.96)
    );
}

.ed-summary-loading strong {
  display: block;
  color: #eef1f5;
  font-size: 14px;
}

.ed-summary-loading p {
  margin: 5px 0 0;
  color: #8d97a6;
  font-size: 10px;
  line-height: 1.5;
}

.ed-summary-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(215, 169, 40, 0.15);
  border-top-color: #dfb637;
  border-radius: 50%;
  animation: ed-summary-spin 0.8s linear infinite;
}

@keyframes ed-summary-spin {
  to {
    transform: rotate(360deg);
  }
}

.ed-summary-section {
  display: grid;
  gap: 14px;
}

.ed-summary-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.ed-summary-section-heading small,
.ed-summary-total-title small {
  display: block;
  color: #d8b442;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.ed-summary-section-heading strong,
.ed-summary-total-title strong {
  display: block;
  margin-top: 4px;
  color: #f5f7fa;
  font-size: 18px;
}

.ed-summary-section-heading > span {
  color: #818b9b;
  font-size: 10px;
}

.ed-summary-products,
.ed-summary-info-list {
  display: grid;
  gap: 11px;
}

.ed-summary-product {
  display: grid;
  grid-template-columns:
    52px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 19px;
  background:
    linear-gradient(
      145deg,
      rgba(17, 24, 35, 0.97),
      rgba(11, 16, 24, 0.97)
    );
}

.ed-summary-product-image {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid rgba(215, 169, 40, 0.18);
  border-radius: 16px;
  background: rgba(215, 169, 40, 0.07);
  font-size: 25px;
}

.ed-summary-product-copy {
  min-width: 0;
}

.ed-summary-product-copy small {
  display: block;
  color: #b79530;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.ed-summary-product-copy strong {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
  color: #eef1f5;
  font-size: 13px;
  line-height: 1.35;
}

.ed-summary-product-copy p,
.ed-summary-product-copy span {
  display: block;
  margin: 4px 0 0;
  color: #8791a0;
  font-size: 10px;
  line-height: 1.4;
}

.ed-summary-product > b {
  color: #e3c04e;
  font-size: 12px;
}

.ed-summary-empty-cart {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 17px;
  border: 1px dashed rgba(215, 169, 40, 0.25);
  border-radius: 19px;
  background: rgba(215, 169, 40, 0.045);
}

.ed-summary-empty-cart > span {
  font-size: 24px;
}

.ed-summary-empty-cart strong {
  display: block;
  color: #e9edf3;
  font-size: 12px;
}

.ed-summary-empty-cart p {
  margin: 4px 0 0;
  color: #8993a2;
  font-size: 10px;
  line-height: 1.45;
}

.ed-summary-info-card {
  display: grid;
  grid-template-columns:
    42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: flex-start;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 19px;
  background:
    linear-gradient(
      145deg,
      rgba(17, 24, 35, 0.96),
      rgba(11, 16, 24, 0.96)
    );
}

.ed-summary-info-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  background: rgba(215, 169, 40, 0.08);
  font-size: 20px;
}

.ed-summary-info-copy small {
  display: block;
  color: #b99631;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.ed-summary-info-copy strong {
  display: block;
  margin-top: 4px;
  color: #edf0f5;
  font-size: 12px;
  line-height: 1.4;
}

.ed-summary-info-copy p {
  margin: 4px 0 0;
  color: #8993a2;
  font-size: 10px;
  line-height: 1.45;
}

.ed-summary-info-copy address {
  display: grid;
  gap: 2px;
  margin-top: 7px;
  color: #9aa4b2;
  font-size: 10px;
  font-style: normal;
  line-height: 1.4;
}

.ed-summary-info-card button {
  appearance: none;
  margin: 0;
  padding: 7px 9px;
  border: 1px solid rgba(215, 169, 40, 0.25);
  border-radius: 10px;
  background: rgba(215, 169, 40, 0.065);
  color: #e1c25a;
  font-size: 9px;
  font-weight: 900;
}

.ed-summary-coupon {
  display: inline-flex !important;
  width: fit-content;
  margin-top: 8px !important;
  padding: 6px 8px;
  border-radius: 9px;
  background: rgba(215, 169, 40, 0.08);
  color: #dfc15c !important;
}

.ed-summary-total-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(215, 169, 40, 0.28);
  border-radius: 23px;
  background:
    radial-gradient(
      circle at 100% 0%,
      rgba(215, 169, 40, 0.12),
      transparent 35%
    ),
    linear-gradient(
      145deg,
      rgba(18, 25, 36, 0.98),
      rgba(10, 15, 23, 0.98)
    );
}

.ed-summary-total-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3px;
}

.ed-summary-total-row {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  color: #939dac;
  font-size: 10px;
}

.ed-summary-total-row b {
  color: #dfe4eb;
  font-size: 10px;
}

.ed-summary-total-row.is-benefit {
  color: #c7a73e;
}

.ed-summary-total-row.is-benefit b {
  color: #dfbf52;
}

.ed-summary-grand-total {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  padding-top: 4px;
}

.ed-summary-grand-total small {
  display: block;
  color: #9da6b4;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.ed-summary-grand-total strong {
  display: block;
  margin-top: 4px;
  color: #f1cd55;
  font-size: clamp(25px, 8vw, 34px);
  line-height: 1;
}

.ed-summary-grand-total > span {
  color: #8d97a6;
  font-size: 10px;
  font-weight: 800;
}

.ed-summary-total-card > p {
  margin: 0;
  color: #7e8998;
  font-size: 9px;
  line-height: 1.45;
}

.ed-summary-confirmation {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 11px;
  align-items: flex-start;
  padding: 15px;
  border: 1px solid rgba(215, 169, 40, 0.19);
  border-radius: 17px;
  background: rgba(215, 169, 40, 0.045);
}

.ed-summary-confirmation input {
  appearance: auto;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: #d7a928;
}

.ed-summary-confirmation b,
.ed-summary-confirmation small {
  display: block;
}

.ed-summary-confirmation b {
  color: #eef1f5;
  font-size: 12px;
}

.ed-summary-confirmation small {
  margin-top: 4px;
  color: #8993a2;
  font-size: 10px;
  line-height: 1.4;
}

.ed-summary-security {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 11px;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.025);
}

.ed-summary-security strong {
  display: block;
  color: #dfe4eb;
  font-size: 12px;
}

.ed-summary-security p {
  margin: 4px 0 0;
  color: #8993a2;
  font-size: 10px;
  line-height: 1.5;
}

@media (max-width: 430px) {
  .ed-summary-product {
    grid-template-columns:
      46px minmax(0, 1fr) auto;
    padding: 13px;
  }

  .ed-summary-product-image {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    font-size: 22px;
  }

  .ed-summary-info-card {
    grid-template-columns:
      38px minmax(0, 1fr);
  }

  .ed-summary-info-card button {
    grid-column: 2;
    justify-self: start;
  }

  .ed-summary-info-icon {
    width: 38px;
    height: 38px;
  }
}

/* === FASE 1.6: MOTOR DE PEDIDOS === */

.ed-order-screen {
  display: grid;
  gap: 22px;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
}

.ed-order-loading {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 140px;
  padding: 20px;
  border: 1px solid rgba(215, 169, 40, 0.18);
  border-radius: 21px;
  background:
    linear-gradient(
      145deg,
      rgba(215, 169, 40, 0.07),
      rgba(13, 19, 28, 0.96)
    );
}

.ed-order-loading strong {
  display: block;
  color: #eef1f5;
  font-size: 14px;
}

.ed-order-loading p {
  margin: 5px 0 0;
  color: #8d97a6;
  font-size: 10px;
  line-height: 1.5;
}

.ed-order-success {
  display: grid;
  justify-items: center;
  text-align: center;
}

.ed-order-success-icon {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border: 1px solid rgba(215, 169, 40, 0.48);
  border-radius: 25px;
  background:
    radial-gradient(
      circle,
      rgba(215, 169, 40, 0.23),
      rgba(215, 169, 40, 0.07)
    );
  color: #f1cc55;
  font-size: 36px;
  font-weight: 1000;
  box-shadow:
    0 18px 45px rgba(215, 169, 40, 0.12);
}

.ed-order-success small {
  margin-top: 15px;
  color: #d8b442;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.ed-order-success h2 {
  margin: 7px 0 0;
  color: #f7f8fb;
  font-size: clamp(29px, 8vw, 39px);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.ed-order-success p {
  max-width: 420px;
  margin: 10px 0 0;
  color: #9aa4b3;
  font-size: 12px;
  line-height: 1.55;
}

.ed-order-folio-card {
  display: grid;
  gap: 9px;
  padding: 19px;
  border: 1px solid rgba(215, 169, 40, 0.38);
  border-radius: 23px;
  background:
    radial-gradient(
      circle at 100% 0%,
      rgba(215, 169, 40, 0.17),
      transparent 38%
    ),
    linear-gradient(
      145deg,
      rgba(19, 26, 38, 0.99),
      rgba(10, 15, 23, 0.99)
    );
}

.ed-order-folio-card > small {
  color: #b99a37;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.ed-order-folio-card > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 13px;
}

.ed-order-folio-card strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #f1cc55;
  font-size: clamp(18px, 5.7vw, 27px);
  letter-spacing: 0.025em;
}

.ed-order-folio-card button {
  appearance: none;
  flex: 0 0 auto;
  min-height: 38px;
  margin: 0;
  padding: 0 13px;
  border: 1px solid rgba(215, 169, 40, 0.33);
  border-radius: 12px;
  background: rgba(215, 169, 40, 0.08);
  color: #e6c75f;
  font-size: 10px;
  font-weight: 900;
}

.ed-order-folio-card > p {
  margin: 0;
  color: #8893a2;
  font-size: 9px;
  line-height: 1.5;
}

.ed-order-folio-card > span {
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(215, 169, 40, 0.07);
  color: #dec15d;
  font-size: 9px;
}

.ed-order-status-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 15px;
  border: 1px solid rgba(255, 193, 74, 0.16);
  border-radius: 19px;
  background: rgba(255, 193, 74, 0.045);
}

.ed-order-status-card > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 193, 74, 0.08);
  font-size: 20px;
}

.ed-order-status-card small {
  display: block;
  color: #b79a3b;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.ed-order-status-card strong {
  display: block;
  margin-top: 4px;
  color: #edf0f5;
  font-size: 13px;
}

.ed-order-status-card p {
  margin: 4px 0 0;
  color: #8993a2;
  font-size: 9px;
}

.ed-order-status-card > b {
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(89, 174, 255, 0.08);
  color: #9dc9ee;
  font-size: 8px;
}

.ed-order-section {
  display: grid;
  gap: 13px;
}

.ed-order-section-title small {
  display: block;
  color: #d8b442;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.ed-order-section-title strong {
  display: block;
  margin-top: 4px;
  color: #f5f7fa;
  font-size: 18px;
}

.ed-order-data-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.ed-order-data-grid article {
  display: grid;
  grid-template-columns: 35px minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 17px;
  background:
    linear-gradient(
      145deg,
      rgba(17, 24, 35, 0.96),
      rgba(11, 16, 24, 0.96)
    );
}

.ed-order-data-grid article > span {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border-radius: 12px;
  background: rgba(215, 169, 40, 0.075);
  font-size: 17px;
}

.ed-order-data-grid small {
  display: block;
  color: #ae9235;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.11em;
}

.ed-order-data-grid strong {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
  color: #edf0f5;
  font-size: 11px;
  line-height: 1.4;
}

.ed-order-data-grid p {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  color: #838e9d;
  font-size: 9px;
  line-height: 1.4;
}

.ed-order-products {
  display: grid;
  gap: 9px;
}

.ed-order-product {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.022);
}

.ed-order-product > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: rgba(215, 169, 40, 0.07);
}

.ed-order-product strong {
  display: block;
  overflow-wrap: anywhere;
  color: #e9edf2;
  font-size: 11px;
  line-height: 1.35;
}

.ed-order-product small {
  display: block;
  margin-top: 3px;
  color: #818b99;
  font-size: 9px;
}

.ed-order-product > b {
  color: #dfbd4d;
  font-size: 10px;
}

.ed-order-no-products {
  margin: 0;
  padding: 14px;
  border: 1px dashed rgba(215, 169, 40, 0.2);
  border-radius: 15px;
  color: #939dab;
  font-size: 10px;
  text-align: center;
}

.ed-order-total {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px 14px;
  align-items: end;
  padding: 18px;
  border: 1px solid rgba(215, 169, 40, 0.27);
  border-radius: 22px;
  background:
    linear-gradient(
      145deg,
      rgba(215, 169, 40, 0.1),
      rgba(11, 16, 24, 0.98)
    );
}

.ed-order-total small {
  display: block;
  color: #a98e34;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.ed-order-total strong {
  display: block;
  margin-top: 5px;
  color: #f1cc55;
  font-size: clamp(26px, 8vw, 35px);
  line-height: 1;
}

.ed-order-total > span {
  color: #8993a2;
  font-size: 10px;
  font-weight: 900;
}

.ed-order-total > p {
  grid-column: 1 / -1;
  margin: 5px 0 0;
  color: #7f8997;
  font-size: 9px;
  line-height: 1.45;
}

.ed-order-next-steps {
  display: grid;
  gap: 13px;
  padding: 17px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 20px;
  background:
    linear-gradient(
      145deg,
      rgba(17, 24, 35, 0.96),
      rgba(11, 16, 24, 0.96)
    );
}

.ed-order-next-title {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.ed-order-next-title > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: rgba(215, 169, 40, 0.08);
}

.ed-order-next-title strong {
  display: block;
  color: #edf0f5;
  font-size: 12px;
}

.ed-order-next-title p {
  margin: 3px 0 0;
  color: #838e9d;
  font-size: 9px;
}

.ed-order-next-steps ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 22px;
  color: #a0a9b6;
  font-size: 10px;
  line-height: 1.45;
}

.ed-order-development-note {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 11px;
  padding: 15px;
  border: 1px solid rgba(89, 174, 255, 0.16);
  border-radius: 17px;
  background: rgba(89, 174, 255, 0.04);
}

.ed-order-development-note strong {
  display: block;
  color: #dcecff;
  font-size: 11px;
}

.ed-order-development-note p {
  margin: 4px 0 0;
  color: #829bb2;
  font-size: 9px;
  line-height: 1.5;
}

.ed-order-error {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 14px;
  padding: 20px;
  border: 1px solid rgba(255, 90, 90, 0.2);
  border-radius: 21px;
  background: rgba(255, 90, 90, 0.055);
}

.ed-order-error > span {
  font-size: 30px;
}

.ed-order-error small {
  color: #d8b442;
  font-size: 9px;
  font-weight: 900;
}

.ed-order-error h2 {
  margin: 6px 0 0;
  color: #f5f7fa;
  font-size: 23px;
}

.ed-order-error p {
  margin: 8px 0 0;
  color: #d69a9a;
  font-size: 11px;
  line-height: 1.5;
}

@media (max-width: 460px) {
  .ed-order-data-grid {
    grid-template-columns: 1fr;
  }

  .ed-order-folio-card > div {
    align-items: flex-start;
    flex-direction: column;
  }

  .ed-order-folio-card button {
    width: 100%;
  }
}
