/* Estilo para la línea cronológica */
.purchase-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    margin: 7rem auto 1rem auto;
    z-index: 10;
}

.step {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #fff;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.step.active {
    background: #7f00e7; /* Color llamativo para el paso actual */
    color: #fff;
}

.step-connector {
    width: 50px;
    height: 6px;
    background: #fff;
}
/* Contenedor principal centrado */
.purchase-summary-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1000px;
    margin: 1rem auto 2rem auto;
    gap: 20px;
    z-index: 10;
}

/* Estilos comunes para las secciones internas */
.purchase-summary-section {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 20px;
    flex: 1;
    min-width: 300px; /* Para asegurar el ancho mínimo en pantallas pequeñas */
}

.purchase-item-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Estilos específicos para la sección del ítem de compra */
.purchase-item-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.purchase-item-image {
    width: 100%; /* Ocupa el 50% del ancho */
    height: auto;
    margin-bottom: 15px;
    border-radius: 2rem
}

.purchase-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Espaciado entre precio y paw-coins */
    align-items: center;
    z-index: 2; /* Asegura que el texto esté sobre la imagen */
    pointer-events: none; /* Evita que interfiera con clics en la imagen */
    padding: 15px;
}

/* Estilo del texto Precio */
.purchase-item-price {
    font-size: 1.4rem;
    font-weight: bold;
    color: #fff;
    background-color: #6600d5;
    padding: 0px 8px;
    border-radius: 10px;
    text-align: center;
    margin-top: 6px;
}

/* Estilo del texto Paw-Coins */
.purchase-item-coins {
    font-size: 1.4rem;
    font-weight: bold;
    color: #fff;
    background-color: #6600d5; /* Fondo lila */
    padding: 0px 8px; /* Espaciado interno */
    border-radius: 10px; /* Bordes redondeados */
    text-align: center;
    margin-bottom: 18px;
}

.purchase-item-info {
    grid-column: 1; /* Primera columna */
    grid-row: 1;    /* Primera fila */
    padding: 10px;
    display: grid;    
    grid-template-rows: 1fr auto;
}

.item-text {
    display: block;
    width: 100%;
    text-align: left; /* Alinea el texto a la izquierda si es necesario */
    font-weight: bold;
}
/* Estilos específicos para la sección de detalles de la compra */
.purchase-details-section .detail-item {
    margin: 10px 0;
}

/* Opciones de pago */
.payment-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.payment-option {
    display: flex;
    align-items: center;
    position: relative;
}

.payment-radio {
    display: none;
}

.payment-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 10px;
    border-radius: 5px;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
}

.payment-label:hover {
    background: rgba(0, 0, 0, 0.1);
}

.payment-option {
    opacity: 1; /* Por defecto, todas las opciones tienen opacidad al 100% */
}

/* Cambiar la opacidad de las opciones no seleccionadas */
.payment-option:not(.payment-option-selected) {
    opacity: 0.5; /* Reducir opacidad de las opciones no seleccionadas */
}

.payment-radio:checked + .payment-label {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    background: rgba(0, 0, 0, 0.05);
}

.payment-option-image {
    width: 10rem; /* Ajustar el tamaño de la imagen según sea necesario */
    height: auto;
    margin: auto;
}

/* Botón de pagar */
.pay-button {
    width: 100%;
    padding: 15px;
    background: #1e064a;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: not-allowed;
    transition: background 0.3s ease;
    margin-top: 20px;
}

.pay-button.enabled {
    background: #1e064a;
    cursor: pointer;
}

.pay-button.enabled:hover {
    background: #ff6347;
}
.pay-button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}


/* Texto informativo */
.informative-text {
    color: #3f3f3f;
    text-align: center;
    margin: 10px 0;
    width: 16rem;
}

.informative-centered-text {
    text-align: center; /* Centra el texto horizontalmente */
    margin: 0 auto; /* Asegura que no haya margen lateral extra */
    display: flex; /* Habilita flexbox */
    flex-direction: column; /* Alinea los elementos en columna */
    align-items: center; /* Centra los elementos horizontalmente */
    justify-content: center; /* Centra los elementos verticalmente si hay más espacio */
}

.detail-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.detail-title {
    text-align: left;
    font-weight: bold;
}

.detail-amount {
    text-align: right;
}
/*----------------------------------checkout confirm-----------------*/
.confirmation-message-container {
    padding: 1rem;
    background-color: #66bb66;
    border-radius: 8px;
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
    margin-top: 3rem;
}

.error-message-container {
    padding: 1rem;
    background-color: #ff5d5d;
    border-radius: 8px;
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
    margin-top: 3rem;
}

.pending-message-container {
    padding: 1rem;
    background-color: #5d62ff;
    border-radius: 8px;
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
    margin-top: 3rem;
}

.confirmation-message {
    font-family: 'Arial', sans-serif;
    font-size: 1.2rem;
    color: #ffffff;
    line-height: 1.5;
    word-wrap: break-word;
}

.summary-title-container {
    text-align: center;
    margin-bottom: 20px;
    padding: 10px 0;
    border-bottom: 2px solid #ddd;
    width: 100%;
}

.summary-title {
    font-family: 'Arial', sans-serif;
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
}
/*----------------------------------checkout transferencia-----------------*/
.purchase-summary-section {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 20px;
    flex: 1;
    min-width: 300px;
}


.detail-title {
    font-weight: bold;
}

.summary-title-container {
    margin-bottom: 15px;
    text-align: center;
}

.summary-title {
    font-size: 20px;
    font-weight: bold;
}

.transfer-details {
    margin-top: 20px;
}
.transfer-details p{
    font-size: 14px;
    margin: 0px 0;
}

.transfer-info {
    font-size: 14px;
    font-weight: bold;
}
.transfer-info2 {
    font-size: 14px;
    font-weight: bold;
    margin: 20px 0;
    color: #380b8b;
}

.upload-section {
    margin-top: 20px;
}

.upload-input {
    margin-bottom: 10px;
}

.error-msg {
    color: red;
    margin-bottom: 10px;
    font-size: 14px;
}


/* Estructura visual del código 

*/
.code-input-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 300px;
    margin: 20px auto;
    cursor: text; /* Indicar que el contenedor es clickeable */
}

.code-char {
    font-size: 2rem;
    padding: 0 10px;
    color: #5d35bb; /* Color por defecto */
    border-bottom: 2px solid #ccc; /* Línea bajo el guion */
    transition: color 0.3s ease, border-color 0.3s ease; /* Transiciones suaves */
    font-weight: 700;
}

/* Estilo cuando un carácter es el que está activo (donde se está escribiendo) */
.code-char.active-char {
    color: #7f00e7; /* Cambiar el color de la barra cuando está activo */
    border-color: #7f00e7; /* Cambiar el color de la línea inferior */
}

/* Efecto al tener focus en el input oculto */
.hidden-code-input:focus .code-input-container .code-char {
    border-color: #7f00e7;
}

/* Input oculto para capturar la entrada */
.hidden-code-input {
    position: absolute;
    left: -9999px; /* Moverlo fuera de la vista */
}

.pay-button:enabled {
    cursor: pointer;
    background-color: #7f00e7;
}

.pay-button:enabled:hover {
    background-color: #5b00b0;
}
/* Estilos para el contenedor de mensajes */
.message-container {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    display: none; /* Por defecto, oculto */
}

.message-success {
    background-color: #66bb66;
    color: #ffffff;
}

.message-error {
    background-color: #ff9900;
    color: #ffffff;
}

.transf-btn-loader {
    display: none;
    border: 2px solid #f3f3f3; /* Light grey */
    border-top: 2px solid #1e064a; /* Dark blue */
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.transf-btn-loading .transf-btn-loader {
    display: inline-block;
}