:root {
    --app-color: #bada55;
}

.bdig-gateway-active #place_order {
    display: none;
}

.woocommerce-checkout #payment ul.payment_methods li .bdig-checkout input,
.woocommerce-checkout #payment ul.payment_methods li .bdig-checkout img {
    margin: auto;
    margin-left: auto;
}

.pagomovil>.app-wrapper>.modal.in {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    overflow: hidden;
    margin: auto auto;
}
#payment .payment_methods label{
    margin-left: auto !important;
}

#payment .payment_methods li label{
    margin-left: auto;
}
#payment .payment_methods li label.upload-screenshot__btn {
    margin-left: 0 !important;
}
.bdig-checkout {
    padding-top: 0.3rem;
    box-sizing: border-box;
}

.bdig-checkout,
.bdig-checkout .pagomovil {
    letter-spacing: 0;
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    text-align: left;
}

.bdig-checkout .pagomovil__title {
    width: 100%;
    display: block;
    margin: 0 0 0.8rem;
    padding: 0;
    line-height: 1.4;
}

.bdig-checkout .pagomovil__title p {
    margin: 0;
    padding: 0;
    font-size: inherit;
    color: #6b7280;
    line-height: 1.4;
}

.bdig-checkout .pagomovil .app-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 0.5rem 0.95rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    text-align: left;
}

.bdig-checkout .pagomovil .app {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    flex: 0 0 auto;
    width: 4rem;
    min-width: 4rem;
    margin: 0;
    text-align: center;
}

#payment .payment_methods .bdig-checkout .pagomovil .app__name,
#payment .payment_methods .bdig-checkout .pagomovil .app__icon {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.bdig-checkout .pagomovil .app__name {
    margin: 0.35rem 0 0 !important;
    padding: 0;
    width: 100%;
    text-align: center;
    font-size: 0.875rem;
    line-height: 1.25;
    cursor: pointer;
    display: block;
}

.bdig-checkout .pagomovil .app__radio {
    display: block;
    margin: 0.4rem auto 0 !important;
    flex-shrink: 0;
    cursor: pointer;
}

.bdig-checkout .pagomovil .app:has(.app__radio:checked) .color-prueba {
    opacity: 0;
}

.bdig-checkout .pagomovil .app:has(.app__radio:checked) .app__icon {
    box-shadow: 0 0 0 2px rgba(17, 24, 39, 0.12);
}

.bdig-checkout .pagomovil .app__icon {
    margin: 0 !important;
    background-color: #b3b3b3;
    border-radius: 10px;
    height: 60px !important;
    width: 60px !important;
    position: relative !important;
    display: block;
    overflow: hidden;
    flex-shrink: 0;
    cursor: pointer;
}

#payment .payment_methods .bdig-checkout .pagomovil .app__icon img,
.bdig-blocks-payment-content .bdig-checkout .pagomovil .app__icon img,
.wc-block-checkout .bdig-checkout .pagomovil .app__icon img,
.bdig-checkout .pagomovil .app__icon img.icon {
    margin: 0 auto;
    background-color: transparent;
    border-radius: 10px;
    height: 60px;
    width: 60px;
    right: 0;
    top: 0;
    left: 0;
    bottom: 0;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow: hidden;
    position: absolute !important;
    max-height: 100% !important;
    object-fit: contain;
    z-index: 2;
}

.bdig-checkout .pagomovil .app__icon .color-prueba {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    z-index: 1;
    pointer-events: none;
    -webkit-transition: opacity .5s ease;
    transition: opacity .5s ease;
    justify-content: center;
}

.bdig-checkout #mask {
    position: absolute;
    z-index: 9000;
    background-color: #000;
    display: none;
}

.bdig-checkout #boxes .window {
    position: fixed;
    width: 440px;
    height: 200px;
    display: none;
    z-index: 9999;
    padding: 20px;
}

.bdig-checkout #boxes #dialog {
    width: 375px;
    height: 203px;
}

.modal-body-pagomovil .modal-nb {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: start;
    -ms-flex-pack: start;
    justify-content: flex-start;
    padding: 0;
    height: auto;
    min-height: 0;
    width: 100%;
    box-sizing: border-box;
}

.bdig-overlay .bdig-qr-card {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    margin: 0.5em 0 0.5em;
}

.bdig-overlay .bdig-qr-card__inner {
    padding: 14px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    line-height: 0;
}

.bdig-overlay .bdig-qr-card__inner img {
    display: block;
    max-width: min(150px, 52vw) !important;
    width: auto !important;
    height: auto !important;
    max-height: none !important;
    margin: 0 !important;
    object-fit: contain;
    flex-shrink: 0;
}

.modal-body-pagomovil .modal-nb__btn {
    cursor: pointer;
    border-radius: 8px;
    text-decoration: none!important;
    color: #FFF;
    border: none;
    font-weight: 600;
    font-size: small;
    text-transform: inherit!important;
    line-height: inherit!important;
}

.modal-body-pagomovil .modal-nb__btn-copy {
    color: white!important;
    height: auto;
    width: -webkit-min-content;
    width: -moz-min-content;
    width: auto;
    padding: 0.5em;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.modal-body-pagomovil .modal-nb__btn-copy:hover {
    opacity: 0.9;
}

.modal-body-pagomovil .modal-nb__btn-copy.bdig-btn-copy--done {
    opacity: 0.95;
    letter-spacing: 0.01em;
}

.upload-screenshot__btn:hover{
    opacity:0.9;
}

.modal-body-pagomovil .modal-nb__btn-next {
    text-align: center;
}

.modal-body-pagomovil .modal-nb__btn-next.disabled {
    background-color: #a3a3a39c;
}

.modal-body-pagomovil .modal-nb__btn-next:hover {
    opacity: 0.9;
}

.modal-body-pagomovil .modal-nb__btn-next--checkout {
    background-color: #b3b3b3;
    color: white!important;
    cursor: not-allowed;
}

.modal-body-pagomovil .modal-nb__btn-next--checkout.enabled {
    color: white;
    cursor: pointer;
    background-color: var(--app-color);
}

.modal-body-pagomovil .modal-nb__btn-next--checkout.is-loading {
    cursor: wait;
    opacity: 0.92;
    pointer-events: none;
    gap: 0.5rem;
}

.modal-body-pagomovil .modal-nb__btn-next--checkout.is-loading::after {
    content: "";
    flex-shrink: 0;
    width: 1.1rem;
    height: 1.1rem;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    -webkit-animation: spin 0.6s linear infinite;
    animation: spin 0.6s linear infinite;
}

.modal-body-pagomovil .modal-nb__btn-back {
    border: none;
    background: none;
    color: #000;
    font-weight: 600;
}

.modal-body-pagomovil .modal-nb__btn-back:hover {
    color: #b3b3b3;
}

.modal-body-pagomovil .modal-nb__text {
    margin-bottom: 0.35em;
    text-align: center;
    width: 100%;
    color: #000;
    font-weight: inherit;
}

.modal-body-pagomovil .modal-nb__text p {
    margin: 0;
}

.modal-body-pagomovil .modal-nb__number {
    border: 2px dashed color-mix(in srgb, var(--bdig-app-color, #9ca3af) 22%, #e5e7eb);
    border-radius: 8px;
    background: color-mix(in srgb, var(--bdig-app-color, #6366f1) 5%, transparent);
    width: fit-content;
    max-width: max-content;
    box-sizing: border-box;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    padding: .5rem;
    margin: 0 auto 0.8em;
}

.modal-body-pagomovil .modal-nb .modal-nb__imgInput {
    border: 2px dashed;
    border-radius: 8px;
    background: #EFEFEF;
    width: auto;
    max-width: 100%;
    box-sizing: border-box;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    padding: .5rem;
    margin-bottom: 0.8em;
}

.modal-body-pagomovil .modal-nb__number span,
.modal-body-pagomovil .modal-nb__imgInput span {
    font-weight: bold;
    color: #000;
    font-size: 1.3em;
    padding: 0 0.5em;
}

.modal-body-pagomovil .modal-nb__imgInput {
    height: 40%;
    border-radius: 10px;
    width: 100%;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    position: relative;
}

.modal-body-pagomovil .modal-nb__imgInput.disabled {
    border-color: #b3b3b3;
}

.modal-body-pagomovil .modal-nb__imgInput.active {
    border-color: var(--app-color)!important;
}

.modal-body-pagomovil .modal-nb a[href^="tel:"] {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    text-decoration: none;
    box-sizing: border-box;
}

.modal-body-pagomovil .modal-nb [id^="container-img"] {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    box-sizing: border-box;
}

.modal-body-pagomovil .modal-nb .upload-screenshot {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    background: none!important;
    margin-bottom: 0;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: stretch;
    -ms-flex-align: stretch;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    --bdig-action-height: 3.25rem;
}

.modal-body-pagomovil .modal-nb .upload-screenshot__btn,
.modal-body-pagomovil .modal-nb__btn-next.modal-nb__btn-next--checkout,
.modal-body-pagomovil .box-img {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0.9em 1em;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
    border-radius: 8px;
    margin: 0;
    min-height: var(--bdig-action-height);
}

.modal-body-pagomovil .modal-nb .upload-screenshot__btn,
.modal-body-pagomovil .modal-nb__btn-next.modal-nb__btn-next--checkout {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-body-pagomovil .box-img {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 1em;
    text-align: left;
    background: #efefef;
    gap: 0.5rem;
    overflow: hidden;
    min-width: 0;
}

.modal-body-pagomovil .box-img:not(.btn-finish) {
    margin-top: 0.65rem;
    display: flex !important;
    align-items: center;
    min-height: var(--bdig-action-height, 3.25rem);
    height: var(--bdig-action-height, 3.25rem);
    flex-shrink: 0;
    border: 1px solid #e5e7eb;
}

.modal-body-pagomovil .modal-nb .upload-screenshot span.nb-placeholder-text {
    font-weight: 600;
    font-size: small;
    width: 100%;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    box-sizing: border-box;
}

.modal-body-pagomovil .modal-nb .upload-screenshot span.nb-placeholder-text.disabled {
    color: #000;
}

.modal-body-pagomovil .modal-nb .upload-screenshot span.nb-placeholder-text.active {
    color: var(--bdig-app-color, var(--app-color)) !important;
}

.modal-body-pagomovil .box-img .nb-placeholder-text {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
    font-size: 0.8125rem;
    line-height: 1.3;
    color: inherit;
}

.modal-body-pagomovil .box-img .nb-placeholder-text.active {
    color: var(--bdig-app-color, var(--app-color)) !important;
}

.modal-body-pagomovil .box-img .thumb {
    flex: 0 0 2.35rem;
    width: 2.35rem;
    min-width: 2.35rem;
    max-width: 2.35rem;
    height: 2.35rem;
    object-fit: cover;
    border-radius: 4px;
}

.modal-body-pagomovil .box-img-dimiss {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    padding: 0;
    background: #ececec !important;
    border: none !important;
    border-radius: 50% !important;
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    color: #9ca3af;
    z-index: 1;
    cursor: pointer;
    box-shadow: none !important;
    transition: background 0.2s ease;
}

.modal-body-pagomovil .box-img-dimiss:hover {
    background: #e2e2e2 !important;
}

.modal-body-pagomovil .box-img-dimiss .bdig-close-svg--sm {
    width: 17px;
    height: 17px;
}

.thumb {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    object-fit: cover;
    margin: 0 !important;
}

.modal-body-pagomovil .modal-nb .upload-screenshot__btn {
    background-color: white;
    color: #fff;
    text-decoration: none!important;
    z-index: 100;
    transition: ease .5s background-color;
    cursor: pointer;
}

.bdig-upload-btn__inner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    max-width: 100%;
    min-height: 100%;
    pointer-events: none;
}

.bdig-upload-btn__label {
    line-height: 1.2;
}

.modal-body-pagomovil .bdig-attach-svg {
    display: block;
    flex-shrink: 0;
    color: currentColor;
    pointer-events: none;
}

.modal-body-pagomovil .bdig-attach-svg--sm {
    width: 18px;
    height: 18px;
}

.modal-body-pagomovil .modal-nb .upload-screenshot__btn:hover {
    transition: ease .5s background-color;
    color: white;
}

.modal-body-pagomovil .modal-nb .upload-screenshot__input {
    position: absolute;
    top: 0;
    height: 100%;
    width: 100%;
    opacity: 0;
    cursor: pointer;
}

.modal-body-pagomovil .modal-nb__number {
    position: relative;
    overflow: visible;
}

.modal-body-pagomovil .modal-nb__number .tooltip-name {
    flex: 0 0 auto;
    min-width: 0;
    text-align: center;
    white-space: nowrap;
}

.modal-body-pagomovil .modal-nb__number .modal-nb__btn-copy {
    flex-shrink: 0;
}

.modal-body-pagomovil .modal-nb__number .popuptext {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    border-radius: 8px;
    padding: 0.45em 0.65em;
    color: white;
    opacity: 0;
    visibility: hidden;
    white-space: nowrap;
    max-width: none;
    z-index: 20;
    pointer-events: none;
    -webkit-transition: opacity 0.2s ease, visibility 0.2s ease;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    font-weight: 600;
    font-size: 0.9em;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.modal-body-pagomovil .modal-nb__number.popup:hover .popuptext,
.modal-body-pagomovil .modal-nb__number.popup:focus-within .popuptext {
    opacity: 1;
    visibility: visible;
}


.modal-body-pagomovil .modal-nb__orderPrice {
    text-align: center;
    font-size: 2em;
    line-height: initial;
    margin: 0;
    margin-bottom: 0.4em;
    font-weight: bold;
    color: #000;
}

@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

.tooltip {
    position: relative;
    border-bottom: 1px dotted black;
}

.tooltip span {
    visibility: hidden;
    width: 10em;
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 5px 0;
    position: absolute;
    z-index: 9;
    top: -1em;
    left: 100%;
    margin-left: 1em;
    opacity: 0;
    transition: opacity 1s;
}

.tooltip input {
    display: none;
}

.tooltip input:checked+span {
    visibility: visible;
    opacity: 1;
}

.btn-finish {
    display: none!important;
}


/*MODAL NUEVO*/

div.modal-body-pagomovil {
    position: relative;
    padding: 0;
    background-color: #ffffff;
    width: 100%;
    max-width: 400px;
    box-shadow: 10px 10px 60px #00000026;
    border-radius: 12px;
    overflow: visible;
    box-sizing: border-box;
    flex-shrink: 0;
}

/* Cabecera del modal: nombre app + cerrar circular */
.bdig-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.8em 1.5em;
    background-color: #ffffff;
    border-radius: 12px 12px 0 0;
}

.bdig-modal-header__title {
    margin: 0;
    padding: 0;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.3;
    color: #111827;
    text-align: left;
}

.bdig-modal-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 420px;
    margin: auto;
    padding: 1rem;
    box-sizing: border-box;
}

.bdig-modal-nota {
    margin-top: 1rem;
    padding: 0 0.5rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #ffffff;
    text-align: center;
    width: 100%;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

.bdig-modal-nota p {
    margin: 0 0 0.35em;
}

.bdig-modal-nota p:last-child {
    margin-bottom: 0;
}

.bdig-modal-header__divider {
    height: 1px;
    background-color: #e3e3e3;
    margin: 0;
}

.modal-body-pagomovil .modal-nb {
    padding: 1.15em 1.5em 1.5em;
    background-color: #ffffff;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

/* Icono X lineal unificado (SVG) */
.modal-body-pagomovil .bdig-close-svg {
    display: block;
    flex-shrink: 0;
    color: #4b5563;
    pointer-events: none;
}

.modal-body-pagomovil .bdig-close-svg--sm {
    width: 17px;
    height: 17px;
}

.modal-body-pagomovil .bdig-close-svg--soft {
    color: black;
}

/* Cerrar en circulo (referencia Share Modal) */
.modal-body-pagomovil .modal-button-pagomovil__exit.bdig-modal-header__close {
    position: static;
    margin: 0 !important;
    padding: 0;
    border: none !important;
    border-radius: 50% !important;
    width: 30px;
    height: 30px;
    min-width: 28px;
    min-height: 28px;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
    z-index: 2;
    box-shadow: none !important;
    transition: background 0.2s ease;
}

.modal-body-pagomovil .modal-button-pagomovil__exit.bdig-modal-header__close:hover {
    background: #e2e2e2 !important;
}

.modal-body-pagomovil .modal-button-pagomovil__exit .bdig-close-svg,
.modal-body-pagomovil .box-img-dimiss .bdig-close-svg {
    background: transparent !important;
}

  /*Black background*/
  .bdig-overlay{
    top:0;
    left:0;
    width: 100%;
    height: 100%;
    min-height: 100dvh;
    justify-content: center;
    align-items: center;
    z-index: 99999!important;
    background: rgba(0, 0, 0, 0.62);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: none;
    position: fixed;
    padding:
      max(0.75rem, env(safe-area-inset-top, 0px))
      max(0.75rem, env(safe-area-inset-right, 0px))
      max(0.75rem, env(safe-area-inset-bottom, 0px))
      max(0.75rem, env(safe-area-inset-left, 0px));
    box-sizing: border-box;
  }

  .bdig-overlay[style*="flex"] .bdig-modal-wrap {
    animation: bdigModalIn 0.25s ease-out;
  }

  @keyframes bdigModalIn {
    from {
      opacity: 0;
      transform: translateY(8px) scale(0.98);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }


  @media (max-width: 768px) {
    .bdig-checkout .pagomovil .app-wrapper {
        gap: 0.45rem 0.8rem;
    }

    .bdig-checkout .pagomovil .app {
        width: 3.85rem;
        min-width: 3.85rem;
    }

    .bdig-checkout .pagomovil .app__icon {
        width: 56px !important;
        height: 56px !important;
    }

    #payment .payment_methods .bdig-checkout .pagomovil .app__icon img,
    .bdig-blocks-payment-content .bdig-checkout .pagomovil .app__icon img,
    .wc-block-checkout .bdig-checkout .pagomovil .app__icon img {
        width: 56px;
        height: 56px;
    }

    .bdig-modal-wrap {
        max-width: min(400px, 94vw);
        padding: 0.65rem;
    }

    .bdig-modal-header {
        padding: 0.85em 1.15em;
        gap: 0.65rem;
    }

    .bdig-modal-header__title {
        font-size: 1rem;
    }

    .modal-body-pagomovil .modal-nb {
        padding: 1em 1.15em 1.25em;
    }

    .modal-body-pagomovil .modal-nb__text {
        font-size: 0.9375rem;
        line-height: 1.4;
    }

    .modal-body-pagomovil .modal-nb__orderPrice {
        font-size: 1.65em;
        margin-bottom: 0.4em;
    }

    .bdig-overlay .bdig-qr-card__inner img {
        max-width: min(160px, 46vw) !important;
    }

    .modal-body-pagomovil .modal-nb__number span,
    .modal-body-pagomovil .modal-nb__imgInput span {
        font-size: clamp(1rem, 4.8vw, 1.35em);
        padding: 0 0.25em;
    }

    .bdig-modal-nota {
        font-size: 0.75rem;
        margin-top: 0.75rem;
    }

    .modal-body-pagomovil .modal-nb .upload-screenshot {
        --bdig-action-height: 3.15rem;
    }

    .modal-body-pagomovil .modal-nb .upload-screenshot__btn,
    .modal-body-pagomovil .modal-nb__btn-next.modal-nb__btn-next--checkout,
    .modal-body-pagomovil .box-img {
        padding: 0.85em 0.9em;
        font-size: 0.9375rem;
    }

    .modal-body-pagomovil .box-img {
        padding: 0 0.9em;
    }

    .modal-body-pagomovil .box-img .thumb {
        flex: 0 0 2.15rem;
        width: 2.15rem;
        min-width: 2.15rem;
        max-width: 2.15rem;
        height: 2.15rem;
    }
  }

  @media (max-width: 420px) {
    .bdig-checkout .pagomovil .app-wrapper {
        gap: 0.4rem 0.7rem;
    }

    .bdig-checkout .pagomovil .app {
        width: 3.65rem;
        min-width: 3.65rem;
    }

    .bdig-checkout .pagomovil .app__name {
        font-size: 0.8125rem;
    }

    .bdig-checkout .pagomovil .app__icon {
        width: 52px !important;
        height: 52px !important;
    }

    #payment .payment_methods .bdig-checkout .pagomovil .app__icon img,
    .bdig-blocks-payment-content .bdig-checkout .pagomovil .app__icon img,
    .wc-block-checkout .bdig-checkout .pagomovil .app__icon img {
        width: 52px;
        height: 52px;
    }

    .bdig-modal-wrap {
        max-width: 100%;
        padding: 0.5rem;
    }

    div.modal-body-pagomovil {
        border-radius: 10px;
    }

    .bdig-modal-header {
        padding: 0.75em 1em;
        border-radius: 10px 10px 0 0;
    }

    .modal-body-pagomovil .modal-nb {
        padding: 0.85em 1.3em 1.3em;
        border-radius: 0 0 10px 10px;
    }

    .bdig-overlay .bdig-qr-card__inner {
        padding: 12px;
    }

    .bdig-overlay .bdig-qr-card__inner img {
        max-width: min(150px, 42vw) !important;
    }

    .modal-body-pagomovil .modal-nb__number,
    .modal-body-pagomovil .modal-nb .modal-nb__imgInput {
        padding: 0.4rem;
        margin-bottom: 0.6em;
    }

    .modal-body-pagomovil .modal-nb__btn-copy {
        padding: 0.45em 0.65em;
        font-size: 0.8125rem;
    }

    .modal-body-pagomovil .modal-nb__orderPrice {
        font-size: 1.45em;
    }

    .modal-body-pagomovil .modal-nb .upload-screenshot {
        --bdig-action-height: 3.1rem;
    }

    .modal-body-pagomovil .modal-nb .upload-screenshot__btn,
    .modal-body-pagomovil .modal-nb__btn-next.modal-nb__btn-next--checkout,
    .modal-body-pagomovil .box-img {
        padding: 0.85em 0.85em;
    }

    .modal-body-pagomovil .box-img {
        margin-top: 10px;
        padding: 0 0.85em;
        gap: 0.4rem;
    }

    .modal-body-pagomovil .box-img .thumb {
        flex: 0 0 2.1rem;
        width: 2.1rem;
        min-width: 2.1rem;
        max-width: 2.1rem;
        height: 2.1rem;
    }

    .modal-body-pagomovil .box-img .nb-placeholder-text {
        font-size: 0.75rem;
    }
  }

  @media (max-height: 640px) and (orientation: landscape) {
    .bdig-overlay {
        align-items: flex-start;
    }

    .bdig-modal-wrap {
        padding-top: 0.4rem;
        padding-bottom: 0.4rem;
    }

    .modal-body-pagomovil .modal-nb {
        padding: 0.7em 1em 0.85em;
    }

    .bdig-overlay .bdig-qr-card__inner img {
        max-width: min(120px, 28vh) !important;
    }

    .modal-body-pagomovil .modal-nb__orderPrice {
        font-size: 1.25em;
        margin-bottom: 0.25em;
    }

    .modal-body-pagomovil .modal-nb__text {
        margin-bottom: 0.35em;
        font-size: 0.875rem;
    }

    .bdig-modal-nota {
        margin-top: 0.5rem;
    }
  }

/* Checkout Blocks: mismos estilos que checkout clásico sin #payment */
.bdig-blocks-payment-content .bdig-checkout,
.wc-block-checkout .bdig-checkout {
    width: 100%;
}

.bdig-blocks-payment-content .bdig-checkout input[type="radio"],
.wc-block-checkout .bdig-checkout input[type="radio"] {
    margin: 0.4rem auto 0 !important;
}

.bdig-blocks-payment-content .bdig-checkout .pagomovil .app__name,
.bdig-blocks-payment-content .bdig-checkout .pagomovil .app__icon,
.wc-block-checkout .bdig-checkout .pagomovil .app__name,
.wc-block-checkout .bdig-checkout .pagomovil .app__icon {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

body > .bdig-overlay {
    position: fixed !important;
}

/* Billeteras digitales — aviso de datos incompletos en modal */
.modal-body-pagomovil .bdig-modal-details {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.modal-body-pagomovil .bdig-details-empty {
    width: 100%;
    margin: 0.75rem 0 0.25rem;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    background: #f9fafb;
    border: 1px dashed #d1d5db;
    box-sizing: border-box;
}

.modal-body-pagomovil .bdig-details-empty p {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.45;
    color: #6b7280;
    text-align: center;
}

/* Billeteras — titular entre QR y número (mismo tamaño que el teléfono) */
.bdig-overlay .bdig-account-holder-wrap {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 0.80em 0 0.90em;
    box-sizing: border-box;
}

.bdig-overlay .bdig-account-holder {
    display: block;
    margin: 0;
    padding: 0;
    text-align: center;
    font-weight: bold;
    font-size: 1.3em;
    line-height: 1.2;
    color: #000;
}

/* Billeteras — caja teléfono + copiar: ancho al contenido, centrada */
.bdig-overlay .bdig-phone-copy-wrap {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 0.8em;
    box-sizing: border-box;
}

.bdig-overlay .bdig-phone-copy-row.modal-nb__number {
    display: inline-flex;
    width: max-content;
    max-width: max-content;
    margin: 0;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.5rem;
    box-sizing: border-box;
}

.bdig-overlay .bdig-phone-copy-row a[href^="tel:"],
.bdig-overlay .bdig-phone-copy-row .bdig-phone-link {
    display: inline-flex;
    flex: 0 0 auto;
    width: auto;
    max-width: none;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.3em;
    padding: 0 0.5em;
    white-space: nowrap;
    color: #000;
}

.bdig-overlay .bdig-phone-copy-row .tooltip-name {
    flex: 0 0 auto;
    min-width: 0;
    white-space: nowrap;
    font-weight: bold;
    font-size: 1.3em;
    padding: 0 0.5em;
    color: #000;
}

.bdig-overlay .bdig-phone-copy-row .modal-nb__btn-copy {
    flex: 0 0 auto;
}

/* Billeteras — caja vista previa: borde sutil (checkout clásico y Blocks) */
.bdig-overlay .modal-body-pagomovil .box-img:not(.btn-finish),
form.checkout .modal-body-pagomovil .box-img:not(.btn-finish),
#payment .modal-body-pagomovil .box-img:not(.btn-finish),
body.woocommerce-checkout .bdig-overlay .modal-body-pagomovil .box-img:not(.btn-finish),
.wc-block-checkout .bdig-overlay .modal-body-pagomovil .box-img:not(.btn-finish) {
    border: 1px solid #e5e7eb;
    box-sizing: border-box;
}

/* Checkout Blocks: gap entre "Finalizar pedido" y vista previa (modal portado a body) */
body:has(.wc-block-checkout) .bdig-overlay .modal-body-pagomovil .modal-nb .upload-screenshot,
.wc-block-checkout .bdig-overlay .modal-body-pagomovil .modal-nb .upload-screenshot,
.bdig-blocks-payment-content .modal-body-pagomovil .modal-nb .upload-screenshot {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    position: relative;
}

body:has(.wc-block-checkout) .bdig-overlay .modal-body-pagomovil .modal-nb .upload-screenshot__input,
.wc-block-checkout .bdig-overlay .modal-body-pagomovil .modal-nb .upload-screenshot__input,
.bdig-blocks-payment-content .modal-body-pagomovil .modal-nb .upload-screenshot__input {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
    opacity: 0 !important;
}

body:has(.wc-block-checkout) .bdig-overlay .modal-nb__btn-next.modal-nb__btn-next--checkout + .box-img:not(.btn-finish),
.wc-block-checkout .bdig-overlay .modal-nb__btn-next.modal-nb__btn-next--checkout + .box-img:not(.btn-finish),
.bdig-blocks-payment-content .modal-nb__btn-next.modal-nb__btn-next--checkout + .box-img:not(.btn-finish) {
    margin-top: 0.65rem !important;
}