/* SDM_V517_ATH_MOVIL_CUSTOMER_CSS */

body.sdm-ath-open-v517{overflow:hidden!important}

.sdm-ath-pay-v517{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  width:100%;
  min-height:54px;
  border:1px solid rgba(87,69,151,.20);
  border-radius:14px;
  padding:9px 14px;
  background:linear-gradient(135deg,#fff,#f5f2ff);
  color:#493e77!important;
  -webkit-text-fill-color:#493e77!important;
  cursor:pointer;
  font:inherit;
  box-shadow:0 8px 22px rgba(68,52,121,.07);
}

.sdm-ath-pay-v517>span{
  display:grid;
  place-items:center;
  width:34px;
  height:34px;
  flex:0 0 34px;
  border-radius:50%;
  background:#ece7ff;
  font-size:17px;
}

.sdm-ath-pay-v517>div{display:grid;gap:2px;text-align:left}
.sdm-ath-pay-v517 b{font-size:13px;color:inherit}
.sdm-ath-pay-v517 small{font-size:10px;color:#756c92}
.sdm-ath-pay-v517:hover{transform:translateY(-1px);border-color:rgba(87,69,151,.36);background:#faf8ff}
.sdm-ath-pay-v517.pending{background:#fff8e8;border-color:#ecd49a;color:#72571f!important;-webkit-text-fill-color:#72571f!important}
.sdm-ath-pay-v517.approved{background:#eff9f1;border-color:#bee0c6;color:#326342!important;-webkit-text-fill-color:#326342!important}
.sdm-ath-pay-v517.rejected{background:#fff4f4;border-color:#efc8cc;color:#8f3540!important;-webkit-text-fill-color:#8f3540!important}

.sdm-ath-overlay-v517{
  position:fixed;
  inset:0;
  z-index:100120;
  display:grid;
  place-items:center;
  padding:18px;
  background:rgba(34,23,27,.56);
  backdrop-filter:blur(9px);
}
.sdm-ath-overlay-v517.hidden{display:none!important}

.sdm-ath-modal-v517{
  width:min(660px,96vw);
  max-height:92dvh;
  overflow:hidden;
  display:grid;
  grid-template-rows:auto minmax(0,1fr);
  border:1px solid rgba(255,255,255,.76);
  border-radius:28px;
  background:#fffdfb;
  box-shadow:0 30px 90px rgba(42,24,29,.26);
}

.sdm-ath-modal-v517>header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  padding:22px 24px 18px;
  border-bottom:1px solid #eee3e5;
  background:radial-gradient(circle at 92% 0,rgba(214,196,255,.38),transparent 32%),linear-gradient(135deg,#fff,#fff8f7);
}
.sdm-ath-modal-v517>header small{font-size:9px;font-weight:900;letter-spacing:.15em;color:#674aa5}
.sdm-ath-modal-v517>header h2{margin:4px 0 3px;font:700 30px Georgia,serif;color:#352a2d}
.sdm-ath-modal-v517>header p{margin:0;color:#776a6e;font-size:11px;line-height:1.45}
.sdm-ath-modal-v517>header button{
  width:40px;height:40px;flex:0 0 40px;border:0;border-radius:50%;
  background:#fff;color:#8c3048!important;-webkit-text-fill-color:#8c3048!important;
  font-size:24px;cursor:pointer;box-shadow:0 5px 18px rgba(54,32,38,.08)
}

#sdmAthBodyV517{overflow:auto;padding:20px 22px 24px}

.sdm-ath-amount-v517{
  display:grid;
  gap:4px;
  padding:16px 18px;
  margin-bottom:14px;
  border:1px solid #e8def7;
  border-radius:18px;
  background:linear-gradient(135deg,#faf7ff,#fff);
}
.sdm-ath-amount-v517 small{font-size:9px;font-weight:900;letter-spacing:.1em;color:#785aa9}
.sdm-ath-amount-v517 strong{font-size:31px;color:#352b5f}
.sdm-ath-amount-v517 span{font-size:10px;color:#7d7288}

.sdm-ath-steps-v517{display:grid;gap:10px}
.sdm-ath-steps-v517 article{
  display:grid;
  grid-template-columns:36px 1fr;
  gap:11px;
  padding:13px 14px;
  border:1px solid #eee5e7;
  border-radius:16px;
  background:#fff;
}
.sdm-ath-steps-v517 article>i{
  display:grid;place-items:center;width:36px;height:36px;border-radius:50%;
  background:#f1ecff;color:#5c4491;font-style:normal;font-size:12px;font-weight:900
}
.sdm-ath-steps-v517 strong{display:block;font-size:12px;color:#493d42}
.sdm-ath-steps-v517 p{margin:4px 0;font-size:11px;line-height:1.45;color:#7c6d72}
.sdm-ath-steps-v517 code{
  display:inline-block;max-width:100%;overflow-wrap:anywhere;margin:3px 0;padding:6px 8px;
  border-radius:9px;background:#f8f3ff;color:#563c91;font-size:11px;font-weight:900
}
.sdm-ath-steps-v517 small{display:block;color:#887d91;font-size:10px}

.sdm-ath-pending-note-v517,.sdm-ath-wait-v517,.sdm-ath-paid-v517{
  margin:14px 0;
  padding:14px 15px;
  border:1px solid #e5e1bf;
  border-radius:16px;
  background:#fffced;
}
.sdm-ath-pending-note-v517{display:flex;gap:10px;align-items:flex-start}
.sdm-ath-pending-note-v517>span{font-size:22px}
.sdm-ath-pending-note-v517 strong,.sdm-ath-wait-v517 strong{font-size:12px;color:#655221}
.sdm-ath-pending-note-v517 p,.sdm-ath-wait-v517 p{margin:4px 0 0;font-size:10.5px;line-height:1.5;color:#7f7048}

.sdm-ath-form-v517{display:grid;gap:12px;margin-top:14px}
.sdm-ath-form-v517 label{display:grid;gap:6px}
.sdm-ath-form-v517 label>span{font-size:10px;font-weight:900;color:#514448}
.sdm-ath-form-v517 label>span small{font-weight:600;color:#95878b}
.sdm-ath-form-v517 input[type="text"],.sdm-ath-form-v517 textarea{
  width:100%;border:1px solid #e1d5d8;border-radius:12px;background:#fff;padding:11px 12px;
  color:#3f3437;font:inherit;font-size:12px;outline:none
}
.sdm-ath-form-v517 textarea{resize:vertical}

.sdm-ath-file-v517{
  position:relative;
  padding:16px;
  border:1.5px dashed #cfc0e9;
  border-radius:16px;
  background:#fbf9ff;
  cursor:pointer;
}
.sdm-ath-file-v517 input{position:absolute;inset:0;opacity:0;cursor:pointer}
.sdm-ath-file-v517>b{font-size:12px;color:#5d468f}
.sdm-ath-file-v517>small{font-size:10px;color:#867b91}

.sdm-ath-preview-v517{
  overflow:hidden;border:1px solid #e5dce8;border-radius:16px;background:#f7f3f5
}
.sdm-ath-preview-v517.hidden{display:none}
.sdm-ath-preview-v517 img{display:block;width:100%;max-height:280px;object-fit:contain}

.sdm-ath-form-v517>[data-ath-submit]{
  min-height:52px;border:0;border-radius:14px;padding:12px 16px;
  background:linear-gradient(135deg,#5e46a4,#8166ce);
  color:#fff!important;-webkit-text-fill-color:#fff!important;
  font:inherit;font-size:13px;font-weight:900;cursor:pointer;
  box-shadow:0 10px 24px rgba(83,61,151,.18)
}
.sdm-ath-form-v517>[data-ath-submit]:disabled{opacity:.6;cursor:wait}

.sdm-ath-status-v517{
  display:flex;gap:12px;align-items:flex-start;margin-bottom:14px;padding:15px;
  border:1px solid #eadfb9;border-radius:17px;background:#fffbed
}
.sdm-ath-status-v517>i{
  display:grid;place-items:center;width:38px;height:38px;flex:0 0 38px;border-radius:50%;
  background:#f3e7b9;color:#70591c;font-style:normal;font-weight:900
}
.sdm-ath-status-v517 strong{display:block;font-size:13px;color:#54451f}
.sdm-ath-status-v517 span,.sdm-ath-status-v517 small{display:block;margin-top:2px;font-size:10px;color:#7c6e48}
.sdm-ath-status-v517 p{margin:6px 0 0;font-size:10.5px;line-height:1.45}
.sdm-ath-status-v517.approved{border-color:#cbe4cf;background:#f2faf3}
.sdm-ath-status-v517.approved>i{background:#dcefe0;color:#3d7049}
.sdm-ath-status-v517.rejected{border-color:#efcdd1;background:#fff5f5}
.sdm-ath-status-v517.rejected>i{background:#f6dfe2;color:#9b3945}

.sdm-ath-loading-v517,.sdm-ath-error-v517{padding:36px 18px;text-align:center;color:#796b70}
.sdm-ath-error-v517{color:#9b3445}

@media(min-width:761px){
  body.sdm-storefront-v43 .sdm-checkout-actions-v514:has(.sdm-ath-pay-v517){
    grid-template-columns:1fr 1fr!important;
  }
  body.sdm-storefront-v43 .sdm-checkout-actions-v514 .sdm-checkout-pay-v42{
    grid-column:1;
  }
  body.sdm-storefront-v43 .sdm-checkout-actions-v514 .sdm-ath-pay-v517{
    grid-column:2;
  }
  body.sdm-storefront-v43 .sdm-checkout-actions-v514 .sdm-checkout-cancel-v42{
    grid-column:1/-1;
  }
}

@media(max-width:760px){
  .sdm-ath-overlay-v517{padding:0;place-items:end center}
  .sdm-ath-modal-v517{width:100vw;max-height:96dvh;border-radius:24px 24px 0 0}
  .sdm-ath-modal-v517>header{padding:18px}
  #sdmAthBodyV517{padding:16px}
  .sdm-ath-modal-v517>header h2{font-size:26px}
  .sdm-ath-steps-v517 article{grid-template-columns:32px 1fr}
  .sdm-ath-steps-v517 article>i{width:32px;height:32px}
}

/* ==================================================
   SDM_V517_R3_ATH_STRIPE_ALIGNMENT

   - Stripe y ATH Móvil como opciones hermanas alineadas
   - mismo alto, mismos radios y mejor balance visual
   - cancelar abajo a ancho completo
   - móvil: stack vertical
   ================================================== */

@media (min-width: 761px){
  body.sdm-storefront-v43
  .sdm-checkout-actions-v514{
    grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
    gap:14px !important;
    align-items:stretch !important;
  }

  body.sdm-storefront-v43
  .sdm-checkout-actions-v514
  .sdm-checkout-pay-v42,

  body.sdm-storefront-v43
  .sdm-checkout-actions-v514
  .sdm-ath-pay-v517{
    min-height:66px !important;
    height:66px !important;
    width:100% !important;
    margin:0 !important;
    border-radius:18px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    box-sizing:border-box !important;
  }

  body.sdm-storefront-v43
  .sdm-checkout-actions-v514
  .sdm-checkout-pay-v42{
    order:1 !important;
  }

  body.sdm-storefront-v43
  .sdm-checkout-actions-v514
  .sdm-ath-pay-v517{
    order:2 !important;
  }

  body.sdm-storefront-v43
  .sdm-checkout-actions-v514
  .sdm-checkout-cancel-v42{
    order:3 !important;
    grid-column:1 / -1 !important;
    width:100% !important;
    min-height:58px !important;
    margin:0 !important;
  }
}

body.sdm-storefront-v43
.sdm-ath-pay-v517{
  border-radius:18px !important;
  padding:14px 16px !important;
  min-height:66px !important;
  box-sizing:border-box !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:12px !important;
  text-align:left !important;
}

body.sdm-storefront-v43
.sdm-ath-pay-v517 > span{
  width:42px !important;
  height:42px !important;
  min-width:42px !important;
  border-radius:999px !important;
  display:grid !important;
  place-items:center !important;
  font-size:20px !important;
}

body.sdm-storefront-v43
.sdm-ath-pay-v517 > div{
  display:grid !important;
  gap:3px !important;
  min-width:0 !important;
}

body.sdm-storefront-v43
.sdm-ath-pay-v517 b{
  font-size:15px !important;
  line-height:1.15 !important;
}

body.sdm-storefront-v43
.sdm-ath-pay-v517 small{
  font-size:11px !important;
  line-height:1.25 !important;
}

body.sdm-storefront-v43
.sdm-ath-pay-v517:hover{
  transform:translateY(-1px) !important;
}

body.sdm-storefront-v43
.sdm-ath-pay-v517.pending,
body.sdm-storefront-v43
.sdm-ath-pay-v517.approved,
body.sdm-storefront-v43
.sdm-ath-pay-v517.rejected{
  min-height:66px !important;
}

@media (max-width: 760px){
  body.sdm-storefront-v43
  .sdm-checkout-actions-v514{
    grid-template-columns:1fr !important;
    gap:10px !important;
  }

  body.sdm-storefront-v43
  .sdm-checkout-actions-v514
  .sdm-checkout-pay-v42,

  body.sdm-storefront-v43
  .sdm-checkout-actions-v514
  .sdm-ath-pay-v517,

  body.sdm-storefront-v43
  .sdm-checkout-actions-v514
  .sdm-checkout-cancel-v42{
    width:100% !important;
    min-height:56px !important;
  }

  body.sdm-storefront-v43
  .sdm-ath-pay-v517{
    justify-content:flex-start !important;
  }
}

/* ==================================================
   SDM_V517_R4_ATH_COMPACT_RESPONSIVE

   SOLO PRESENTACION.
   No cambia API, upload, estados, aprobación ni Stripe.

   Desktop:
   - modal más ancho pero mucho menos alto;
   - total en una sola fila;
   - pasos 1/2/3 en columnas;
   - formulario en 2 columnas;
   - uploader y submit en una sola fila.

   Tablet:
   - pasos en 2 columnas;
   - formulario conserva buena legibilidad.

   Mobile:
   - una columna;
   - ancho completo;
   - scroll interno natural.
   ================================================== */

.sdm-ath-overlay-v517{
  padding:clamp(10px,2vh,18px) !important;
}

/* ---------- HEADER COMPACT ---------- */

.sdm-ath-modal-v517>header{
  padding:16px 20px 14px !important;
  gap:14px !important;
}

.sdm-ath-modal-v517>header small{
  font-size:9px !important;
}

.sdm-ath-modal-v517>header h2{
  margin:2px 0 2px !important;
  font-size:27px !important;
  line-height:1.05 !important;
}

.sdm-ath-modal-v517>header p{
  font-size:10.5px !important;
  line-height:1.35 !important;
}

.sdm-ath-modal-v517>header button{
  width:38px !important;
  height:38px !important;
  flex-basis:38px !important;
}

/* ---------- BODY ---------- */

#sdmAthBodyV517{
  padding:16px 18px 18px !important;
  overscroll-behavior:contain !important;
  scrollbar-gutter:stable;
}

/* ---------- TOTAL: SINGLE COMPACT ROW ---------- */

.sdm-ath-amount-v517{
  display:grid !important;
  grid-template-columns:auto auto minmax(0,1fr) !important;
  align-items:center !important;
  column-gap:14px !important;
  row-gap:2px !important;
  padding:12px 14px !important;
  margin-bottom:10px !important;
  border-radius:15px !important;
}

.sdm-ath-amount-v517 small{
  font-size:8.5px !important;
  white-space:nowrap !important;
}

.sdm-ath-amount-v517 strong{
  font-size:27px !important;
  line-height:1 !important;
  white-space:nowrap !important;
}

.sdm-ath-amount-v517 span{
  font-size:10px !important;
  line-height:1.35 !important;
}

/* ---------- STEPS ---------- */

.sdm-ath-steps-v517{
  gap:10px !important;
}

.sdm-ath-steps-v517 article{
  align-content:start !important;
  min-width:0 !important;
  padding:11px 12px !important;
  border-radius:14px !important;
}

.sdm-ath-steps-v517 article>i{
  width:32px !important;
  height:32px !important;
  font-size:11px !important;
}

.sdm-ath-steps-v517 strong{
  font-size:11.5px !important;
  line-height:1.25 !important;
}

.sdm-ath-steps-v517 p{
  margin:3px 0 !important;
  font-size:10px !important;
  line-height:1.35 !important;
}

.sdm-ath-steps-v517 code{
  margin:2px 0 !important;
  padding:5px 7px !important;
  font-size:10px !important;
}

.sdm-ath-steps-v517 small{
  font-size:9.5px !important;
  line-height:1.3 !important;
}

/* ---------- PENDING NOTE ---------- */

.sdm-ath-pending-note-v517,
.sdm-ath-wait-v517,
.sdm-ath-paid-v517{
  margin:10px 0 !important;
  padding:11px 13px !important;
  border-radius:14px !important;
}

.sdm-ath-pending-note-v517{
  gap:9px !important;
  align-items:center !important;
}

.sdm-ath-pending-note-v517>span{
  font-size:19px !important;
  flex:0 0 auto !important;
}

.sdm-ath-pending-note-v517 strong,
.sdm-ath-wait-v517 strong{
  font-size:11.5px !important;
}

.sdm-ath-pending-note-v517 p,
.sdm-ath-wait-v517 p{
  margin:2px 0 0 !important;
  font-size:10px !important;
  line-height:1.4 !important;
}

/* ---------- FORM ---------- */

.sdm-ath-form-v517{
  margin-top:10px !important;
  gap:10px 12px !important;
}

.sdm-ath-form-v517 label{
  gap:5px !important;
  min-width:0 !important;
}

.sdm-ath-form-v517 label>span{
  font-size:10px !important;
}

.sdm-ath-form-v517 input[type="text"],
.sdm-ath-form-v517 textarea{
  min-height:42px !important;
  padding:9px 11px !important;
  border-radius:11px !important;
  font-size:11.5px !important;
}

.sdm-ath-form-v517 textarea{
  min-height:64px !important;
  max-height:96px !important;
}

/* ---------- FILE UPLOAD ---------- */

.sdm-ath-file-v517{
  min-height:72px !important;
  padding:11px 13px !important;
  border-radius:14px !important;
  align-content:center !important;
}

.sdm-ath-file-v517>b{
  font-size:11.5px !important;
}

.sdm-ath-file-v517>small{
  font-size:9.5px !important;
}

/* ---------- PREVIEW ---------- */

.sdm-ath-preview-v517{
  border-radius:14px !important;
}

.sdm-ath-preview-v517 img{
  max-height:180px !important;
}

/* ---------- SUBMIT ---------- */

.sdm-ath-form-v517>[data-ath-submit]{
  min-height:72px !important;
  height:72px !important;
  border-radius:14px !important;
  padding:11px 14px !important;
  font-size:12px !important;
  line-height:1.25 !important;
}

/* ---------- RECEIPT STATUS COMPACT ---------- */

.sdm-ath-status-v517{
  gap:10px !important;
  margin-bottom:10px !important;
  padding:12px 13px !important;
  border-radius:15px !important;
}

.sdm-ath-status-v517>i{
  width:34px !important;
  height:34px !important;
  flex-basis:34px !important;
}

.sdm-ath-status-v517 strong{
  font-size:12px !important;
}

.sdm-ath-status-v517 span,
.sdm-ath-status-v517 small{
  font-size:9.5px !important;
}

/* ==================================================
   DESKTOP >= 900
   ================================================== */

@media (min-width:900px){

  .sdm-ath-modal-v517{
    width:min(900px,94vw) !important;
    max-height:min(86dvh,760px) !important;
    border-radius:26px !important;
  }

  .sdm-ath-steps-v517{
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  }

  .sdm-ath-steps-v517 article{
    grid-template-columns:32px minmax(0,1fr) !important;
  }

  .sdm-ath-form-v517{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }

  .sdm-ath-form-v517 > label:nth-of-type(1),
  .sdm-ath-form-v517 > label:nth-of-type(2){
    grid-column:auto !important;
  }

  .sdm-ath-form-v517 .sdm-ath-file-v517{
    grid-column:1 !important;
  }

  .sdm-ath-form-v517 .sdm-ath-preview-v517{
    grid-column:1 / -1 !important;
  }

  .sdm-ath-form-v517 > [data-ath-submit]{
    grid-column:2 !important;
    align-self:stretch !important;
  }
}

/* ==================================================
   TABLET 761-899
   ================================================== */

@media (min-width:761px) and (max-width:899px){

  .sdm-ath-modal-v517{
    width:min(760px,95vw) !important;
    max-height:90dvh !important;
  }

  .sdm-ath-steps-v517{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }

  .sdm-ath-steps-v517 article:last-child{
    grid-column:1 / -1 !important;
  }

  .sdm-ath-form-v517{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }

  .sdm-ath-form-v517 .sdm-ath-file-v517,
  .sdm-ath-form-v517 > [data-ath-submit]{
    min-height:68px !important;
  }

  .sdm-ath-form-v517 .sdm-ath-preview-v517{
    grid-column:1 / -1 !important;
  }
}

/* ==================================================
   MOBILE <= 760
   ================================================== */

@media (max-width:760px){

  .sdm-ath-overlay-v517{
    padding:0 !important;
    place-items:end center !important;
  }

  .sdm-ath-modal-v517{
    width:100vw !important;
    max-height:96dvh !important;
    border-radius:22px 22px 0 0 !important;
  }

  .sdm-ath-modal-v517>header{
    padding:15px 16px 13px !important;
  }

  .sdm-ath-modal-v517>header h2{
    font-size:25px !important;
  }

  #sdmAthBodyV517{
    padding:14px !important;
    scrollbar-gutter:auto !important;
  }

  .sdm-ath-amount-v517{
    grid-template-columns:1fr auto !important;
    column-gap:10px !important;
  }

  .sdm-ath-amount-v517 small{
    grid-column:1 !important;
  }

  .sdm-ath-amount-v517 strong{
    grid-column:2 !important;
    grid-row:1 / span 2 !important;
    font-size:25px !important;
  }

  .sdm-ath-amount-v517 span{
    grid-column:1 !important;
  }

  .sdm-ath-steps-v517{
    grid-template-columns:1fr !important;
    gap:8px !important;
  }

  .sdm-ath-steps-v517 article,
  .sdm-ath-steps-v517 article:last-child{
    grid-column:auto !important;
    grid-template-columns:30px minmax(0,1fr) !important;
    padding:10px 11px !important;
  }

  .sdm-ath-steps-v517 article>i{
    width:30px !important;
    height:30px !important;
  }

  .sdm-ath-form-v517{
    grid-template-columns:1fr !important;
    gap:10px !important;
  }

  .sdm-ath-form-v517 > *,
  .sdm-ath-form-v517 .sdm-ath-file-v517,
  .sdm-ath-form-v517 .sdm-ath-preview-v517,
  .sdm-ath-form-v517 > [data-ath-submit]{
    grid-column:1 !important;
  }

  .sdm-ath-form-v517 textarea{
    min-height:62px !important;
  }

  .sdm-ath-file-v517{
    min-height:68px !important;
  }

  .sdm-ath-form-v517>[data-ath-submit]{
    min-height:54px !important;
    height:auto !important;
  }

  .sdm-ath-preview-v517 img{
    max-height:150px !important;
  }
}
