/* Popup box BEGIN */
.payment_method_wocommerce_yape_peru img {
    max-height: 60px !important;
    margin-top: 15px;
    float: none !important;
}

.popup-wrapper {
    background: rgba(0, 0, 0, 0.7); /* Fondo más oscuro para el overlay */
    display: none;
    height: 100%;
    position: fixed;
    text-align: center;
    top: 0;
    width: 100%;
    z-index: 10000;
    backdrop-filter: blur(3px); /* Efecto de desenfoque moderno */
}

.popup-wrapper .helper {
    display: inline-block;
    height: 100%;
    vertical-align: middle;
}

.popup-wrapper > div {
    background-color: #1e1e1e; /* Fondo oscuro principal */
    color: #ffffff; /* Letras blancas */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5); /* Sombra más suave y realista */
    display: inline-block;
    height: auto;
    max-width: 400px;
    min-height: 100px;
    vertical-align: middle;
    width: 60%;
    position: relative;
    border-radius: 12px; /* Bordes un poco más redondeados */
    padding: 25px 20px; /* Un poco más de respiro interno */
}

.popup-wrapper .first-step img {
    margin-bottom: 20px;
    width: 75%;
    margin: 0 auto;
    display: block;
}

.popup-wrapper .first-step p {
    font-size: 15px;
    color: #e0e0e0; /* Blanco ligeramente apagado para textos secundarios */
}

.popup-wrapper .first-step .price {
    font-size: 20px;
    display: block;
    margin: 0 0 20px 0;
    color: #ffffff; /* Texto blanco puro */
    line-height: 40px;
}

.popup-wrapper .first-step .amount {
    font-size: 40px;
    display: block;
    font-weight: bold;
    color: #01b2b2; /* Color de acento para resaltar el monto */
}

.popup-wrapper .error {
    width: 100%;
    padding: 10px;
    border: 1px solid #ff4a4a;
    background-color: rgba(255, 74, 74, 0.1);
    color: #ff4a4a;
    font-size: 14px;
    margin-bottom: 15px;
    border-radius: 5px;
    display: none;
}

.popup-wrapper .loader {
    display: none;
    width: 25px;
    height: auto;
    margin: 0 auto;
    position: absolute;
    right: 60px;
    bottom: 23px;
}

.popupCloseButton {
    background-color: #2d2d2d;
    color: #ffffff;
    border: 2px solid #444;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: Arial, sans-serif;
    font-weight: bold;
    position: absolute;
    top: -15px;
    right: -15px;
    font-size: 18px;
    width: 36px;
    height: 36px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.popupCloseButton:hover {
    background-color: #ff4a4a; /* Rojo al pasar el mouse para indicar "Cerrar" */
    border-color: #ff4a4a;
    transform: scale(1.05);
}

.popup-wrapper .btn_submit {
    background-color: #01b2b2;
    color: #ffffff;
    font-weight: bold;
    padding: 12px;
    width: 100%;
    text-decoration: none;
    text-transform: capitalize;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.popup-wrapper .btn_submit:hover {
    background-color: #018f8f;
}

/* Área de Subida de Archivos (Drag & Drop Box) */
.box {
    font-size: 1.25rem;
    background-color: #121212; /* Fondo muy oscuro para contraste */
    position: relative;
    padding: 35px 20px;
    margin-bottom: 15px;
    border-radius: 8px;
}

.box.has-advanced-upload {
    outline: 2px dashed #444; /* Borde punteado oscuro */
    outline-offset: -10px;
    transition: outline-offset .15s ease-in-out, background-color .15s linear, outline-color .15s linear;
}

.box.is-dragover {
    outline-offset: -20px;
    outline-color: #01b2b2; /* Se ilumina con el color de acento al arrastrar */
    background-color: #1a1a1a;
}

.box__dragndrop,
.box__icon {
    display: none;
}

.box.has-advanced-upload .box__dragndrop {
    display: inline;
}

.box.has-advanced-upload .box__icon {
    width: 100%;
    height: 80px;
    fill: #01b2b2;
    display: block;
    margin-bottom: 20px;
}

.box.is-uploading .box__input,
.box.is-success .box__input,
.box.is-error .box__input {
    visibility: hidden;
}

.box__input label {
    color: #aaaaaa; /* Texto gris claro */
    font-size: 18px;
}

.box__uploading,
.box__success,
.box__error {
    display: none;
}

.box.is-uploading .box__uploading,
.box.is-success .box__success,
.box.is-error .box__error {
    display: block;
    position: absolute;
    top: 50%;
    right: 0;
    left: 0;
    transform: translateY(-50%);
    color: #ffffff;
}

.box__uploading {
    font-style: italic;
}

.box__success {
    animation: appear-from-inside .25s ease-in-out;
}

@keyframes appear-from-inside {
    from { transform: translateY(-50%) scale(0); }
    75%  { transform: translateY(-50%) scale(1.1); }
    to   { transform: translateY(-50%) scale(1); }
}

.box__restart {
    font-weight: 700;
    color: #01b2b2;
}

.box__restart:focus,
.box__restart:hover {
    color: #018f8f;
}

.box .box__file {
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    z-index: -1;
}

.box .box__file + label {
    max-width: 80%;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
    display: inline-block;
    overflow: hidden;
}

.box .box__file + label:hover strong,
.box__file:focus + label strong,
.box__file.has-focus + label strong {
    color: #01b2b2;
}

.no-js .box__file + label {
    display: none;
}

.no-js .box__button {
    display: block;
}

.box__button {
    background-color: transparent !important;
    color: #01b2b2 !important;
    border: 1px solid #01b2b2;
    font-size: 14px;
    text-decoration: none;
    text-transform: capitalize;
    border-radius: 5px;
    padding: 8px 16px;
    margin: 25px auto 0;
    display: block;
    transition: all 0.2s ease;
}

.box__button:hover,
.box__button:focus {
    background-color: #01b2b2 !important;
    color: #ffffff !important;
    text-decoration: none;
}

.second-step, .popup-price-wrapper {
    display: none;
}

.popup-wrapper .first-step .telephone-number {
    display: block;
    color: #e0e0e0;
    font-size: 18px;
    margin-bottom: 10px;
}

.popup-wrapper .first-step .telephone-number a {
    display: block;
    border-radius: 8px;
    border: 1px dashed #01b2b2; /* Cambiado a color de acento en lugar de morado */
    background: #2d2d2d; /* Fondo oscuro */
    color: #ffffff; /* Texto blanco */
    font-weight: bold;
    padding: 12px;
    outline: none !important;
    text-decoration: none;
    transition: background 0.2s ease;
}

.popup-wrapper .first-step .telephone-number a:hover {
    background: #383838;
}

.popup-wrapper .first-step .message-limit-amount {
    color: #aaaaaa;
    display: none;
}

@media screen and (max-width: 480px) {
    .popup-wrapper > div {
        width: 90%;
        padding: 20px 15px;
    }
}