/* 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.6); /* Oscurecido un poco más para mejor contraste */
    display: none;
    height: 100%;
    position: fixed;
    text-align: center;
    top: 0;
    left: 0; /* Asegurar posición izquierda */
    width: 100%;
    z-index: 99999; /* Asegurar que esté encima del menú del tema */
}

.popup-wrapper .helper {
    display: inline-block;
    height: 100%;
    vertical-align: middle;
}

.popup-wrapper > div {
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    display: inline-block;
    height: auto;
    max-width: 450px;
    min-height: 100px;
    vertical-align: middle;
    width: 90%; /* Mejor respuesta en móviles que 60% */
    position: relative;
    border-radius: 8px;
    padding: 25px;
    box-sizing: border-box; /* Importante para evitar desbordes */
    text-align: left; /* Resetear alineación interna */
}

.popup-main-wrapper {
    text-align: center;
}

.popup-wrapper .first-step img {
    margin-bottom: 20px;
    width: auto;
    max-width: 80%;
    height: auto;
    margin: 0 auto 15px auto;
}

.popup-wrapper .first-step p {
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 10px;
}

.popup-wrapper .first-step .price {
    font-size: 20px;
    display: block;
    margin: 10px 0 20px 0;
    color: #333;
    font-weight: bold;
}

.popup-wrapper .error {
    width: 100%;
    padding: 10px;
    border: 1px solid #ff0000;
    background-color: #ffe6e6;
    color: #d8000c;
    font-size: 14px;
    margin-bottom: 15px;
    display: none;
    box-sizing: border-box;
}

.popup-wrapper .loader {
    display: none;
    width: 30px;
    height: auto;
    margin: 10px auto;
}

.popupCloseButton {
    background-color: #fff;
    border: 2px solid #ccc;
    border-radius: 50%;
    cursor: pointer;
    display: block;
    font-family: Arial, sans-serif;
    font-weight: bold;
    position: absolute;
    top: -15px;
    right: -15px;
    font-size: 20px;
    line-height: 36px;
    width: 40px;
    height: 40px;
    text-align: center;
    color: #555;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.popupCloseButton:hover {
    background-color: #e74c3c;
    color: #fff;
    border-color: #e74c3c;
}

.popup-wrapper .btn_submit {
    background-color: #01b2b2;
    color: #ffffff;
    padding: 12px;
    width: 100%;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
    display: block;
    margin-top: 10px;
}

.popup-wrapper .btn_submit:hover {
    background-color: #008f8f;
}

/* Upload Box Styling */
.box {
    font-size: 16px;
    background-color: #f7f7f7;
    position: relative;
    padding: 20px;
    margin-bottom: 15px;
    border: 2px dashed #ccc;
    text-align: center;
    border-radius: 5px;
}

.box.has-advanced-upload {
    transition: all .15s ease-in-out;
}

.box.is-dragover {
    border-color: #01b2b2;
    background-color: #e0f7f7;
}

.box__input label {
    color: #666;
    font-size: 16px;
    cursor: pointer;
    display: block;
}

.box__input label strong {
    color: #01b2b2;
    transition: color 0.3s;
}

.box__input label:hover strong {
    color: #008f8f;
}

.box__file {
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    z-index: -1;
}

.box__button {
    background-color: transparent !important;
    color: #01b2b2 !important;
    border: 1px solid #01b2b2;
    font-size: 14px;
    font-weight: bold;
    padding: 8px 20px;
    border-radius: 4px;
    margin: 15px auto 0;
    display: inline-block;
    cursor: pointer;
}

.box__button:hover {
    background-color: #01b2b2 !important;
    color: #fff !important;
}

.second-step, .popup-price-wrapper {
    display: none;
}

.popup-wrapper .first-step .telephone-number {
    display: block;
    margin-top: 10px;
}

.popup-wrapper .first-step .telephone-number a {
    display: inline-block;
    border-radius: 5px;
    border: 1px dashed #01b2b2;
    background: #f0fbfc;
    color: #01b2b2;
    font-weight: bold;
    padding: 8px 15px;
    text-decoration: none;
    transition: background 0.3s;
}

.popup-wrapper .first-step .telephone-number a:hover {
    background: #d1f2f5;
}

.popup-wrapper .first-step .message-limit-amount {
    color: #e2401c;
    display: none;
    font-weight: bold;
    margin-top: 10px;
}

@media screen and (min-width: 481px) {
    .popup-wrapper > div {
        width: 450px; /* Ancho fijo en escritorio */
    }
}