/* Frontend Styles for PAI Plugin */
.pai-payment-instructions {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 20px;
    margin-top: 15px;
    font-family: inherit;
}

/* Lista de Opciones */
.pai-options-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    /* Espacio entre items del acordeón */
    margin-bottom: 20px;
}

.pai-payment-option {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #f9f9f9;
    position: relative;
    z-index: 2;
    /* Para estar sobre los detalles al desplegar */
}

.pai-payment-option:hover {
    background: #fff;
    border-color: #bbb;
}

.pai-payment-option.active {
    border-color: var(--pai-color, #007cba);
    background: #fff;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom: 1px solid transparent;
    /* Se funde con el detalle */
    box-shadow: 0 0 0 1px var(--pai-color, #007cba) inset;
    /* Borde interior extra para reforzar el color */
    border-left: 5px solid var(--pai-color, #007cba);
    /* Acento a la izquierda */
}

.pai-option-radio {
    margin-right: 15px !important;
    cursor: pointer;
}

.pai-option-logo {
    max-height: 24px;
    max-width: 40px;
    margin-right: 12px;
    object-fit: contain;
}

.pai-option-icon {
    font-size: 20px;
    margin-right: 12px;
    color: #555;
    display: flex;
    align-items: center;
}

.pai-option-title {
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

/* Detalles del Método (Acordeón) */
.pai-provider-details {
    display: none;
    /* JS lo mostrará */
    background: #fff;
    border: 1px solid var(--pai-color, #007cba);
    /* Borde coincide con activo */
    border-top: none;
    border-radius: 0 0 6px 6px;
    padding: 15px;
    margin-top: -10px;
    /* Subir para pegar con la opción */
    margin-bottom: 10px;
    /* Espacio extra abajo si está abierto */
    position: relative;
    z-index: 1;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.pai-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
    color: #555;
    padding: 8px;
    background: #f8f8f8;
    border-radius: 4px;
}

.pai-detail-label {
    font-weight: 500;
    color: #777;
}

.pai-detail-value {
    font-weight: 600;
    color: #333;
    text-align: right;
    word-break: break-all;
}

.pai-copy-btn {
    background: none;
    border: none;
    color: var(--pai-color, #007cba);
    cursor: pointer;
    font-size: 12px;
    margin-left: 8px;
    padding: 2px 6px;
    border: 1px solid transparent;
    border-radius: 3px;
}

.pai-copy-btn:hover {
    background: #eef;
    border-color: #ccf;
}

/* Crypto Rows */
.pai-crypto-row {
    flex-direction: column;
    align-items: flex-start;
}

.pai-crypto-info {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    width: 100%;
}

.pai-crypto-icon {
    margin-right: 8px;
    display: flex;
    align-items: center;
}

.pai-crypto-value-group {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 5px;
    border: 1px solid #eee;
    border-radius: 4px;
}

.pai-crypto-address {
    font-family: monospace;
    font-size: 12px;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px;
    /* Ajustar según necesidad */
}

/* QR Section */
.pai-qr-section {
    text-align: center;
    margin: 15px 0;
}

.pai-toggle-qr-btn {
    background: #f0f0f1;
    border: 1px solid #ccc;
    color: #333;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.pai-toggle-qr-btn:hover {
    background: #e5e5e5;
    border-color: #999;
}

.pai-qr-code {
    margin-top: 10px;
    animation: fadeIn 0.3s ease;
}

.pai-qr-code img {
    max-width: 180px;
    border-radius: 8px;
    border: 1px solid #eee;
    padding: 5px;
    background: #fff;
}

/* Action Button (WhatsApp) */
.pai-action-section {
    text-align: center;
    margin-top: 15px;
    margin-bottom: 10px;
}

.pai-action-btn {
    display: inline-block;
    background-color: #25D366;
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: background-color 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pai-action-btn:hover {
    background-color: #128C7E;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

.pai-action-btn .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 5px;
}

.pai-instructions-text {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 15px;
}

.pai-help-link {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.pai-help-link a {
    color: #25D366;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border: 1px solid #25D366;
    border-radius: 20px;
    transition: all 0.2s;
}

.pai-help-link a:hover {
    background: #25D366;
    color: #fff;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}